From donald.kerr at dkerr.co.uk Wed Aug 1 00:08:00 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Wed, 1 Aug 2012 08:08:00 +0100 Subject: [mapserver-users] how to use attribute name in template with "_" In-Reply-To: <1343774524.60760.YahooMailNeo@web161805.mail.bf1.yahoo.com> Message-ID: <4B41F20BF8C64409988B84B0276D8963@DELLM4500> Try this line in the LAYER METADATA: LAYER METADATA "gml_featureid" "ogc_fid" END END Regards, Donald METADATA -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of alexkartatemp-1 at yahoo.com Sent: 31 July 2012 23:42 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] how to use attribute name in template with "_" Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you From thomas.bonfort at gmail.com Wed Aug 1 02:51:10 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 1 Aug 2012 11:51:10 +0200 Subject: [mapserver-users] MapServer 6.2.0 beta2 release Message-ID: The MapServer Team is pleased to announce the release of MapServer 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, and contains several fixes that we encourage you to test. Our initially planned date of a release beginning of August has slipped a bit, the updated release plan that can be viewed at https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan We however have only a few bugs left to resolve for our final release, so we hope this beta phase will be over in the next couple of weeks. The changelog since beta1 can be consulted here: http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html The source for this release can be downloaded at: http://mapserver.org/download.html or http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz The binary distributions listed in the download page should be updated with binaries for the new 6.2.0-beta2 release in the next couple of days. Once again we need your help to ensure a high quality product, so please help out by testing your applications with this new code base. Thanks! - The MapServer Team From alexkartatemp-1 at yahoo.com Wed Aug 1 04:49:20 2012 From: alexkartatemp-1 at yahoo.com (alexkartatemp-1 at yahoo.com) Date: Wed, 1 Aug 2012 04:49:20 -0700 (PDT) Subject: [mapserver-users] =?utf-8?b?0J7RgtCyLjogIGhvdyB0byB1c2UgYXR0cmli?= =?utf-8?q?ute_name_in_template_with_=22=5F=22?= In-Reply-To: <4B41F20BF8C64409988B84B0276D8963@DELLM4500> References: <1343774524.60760.YahooMailNeo@web161805.mail.bf1.yahoo.com> <4B41F20BF8C64409988B84B0276D8963@DELLM4500> Message-ID: <1343821760.37394.YahooMailNeo@web161804.mail.bf1.yahoo.com> Donald, thank you very much for your reply, I already have the string "gml_featureid" "ogc_fid" in the map file. Here is my template.html: *************** ???

AttributeValue
?????:[ogc_fid]
?? ???:[shem_mal]
?????:[tarih]
????:[unick_id]

*********** There are 2 more fields with "_", them work good. Problem only with [ogc_fid] (I tryed to change register - also don't work). here is schema of layer (spatialite myfile.sqlite -> .shema layername): *********** CREATE TABLE 'gves' (?? OGC_FID INTEGER PRIMARY KEY, "GEOMETRY" POINT, 'gush' VARCHAR, 'halka' FLOAT, 'ms_sh' FLOAT, 'ms_sh_1' FLOAT, 'mispar' FLOAT, 'shem' VARCHAR, 'mishpaha' VARCHAR, 'min' VARCHAR, 'tarih' VARCHAR, 'tarih_1' VARCHAR, 'x' FLOAT, 'y' FLOAT, 'tashlum' VARCHAR, 'ktovet' VARCHAR, 'moza' VARCHAR, 'ptira' VARCHAR, 'knia' VARCHAR, 'shem_mal' VARCHAR, 'gusheng' VARCHAR, 'kvarim' FLOAT, 'unick_id' VARCHAR); *********** May be OGC_FID is some sort of special field in spatialite files. As you see in schema it looks not as another fields. Of cource, I can create a new field and copy there values from OGC_FID, but I want to try to find the way without changing the struture of table.? Thank you for help Best regards, Alexey ________________________________ ??: Donald Kerr ????: alexkartatemp-1 at yahoo.com; mapserver-users at lists.osgeo.org ??????????: ?????, 1 ??????? 2012 10:08 ????: RE: [mapserver-users] how to use attribute name in template with "_" Try this line in the LAYER METADATA: LAYER ??? METADATA ??? ??? "gml_featureid" "ogc_fid" ??? END END Regards, Donald ? ? METADATA -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of alexkartatemp-1 at yahoo.com Sent: 31 July 2012 23:42 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] how to use attribute name in template with "_" Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at hydrotec.de Wed Aug 1 07:51:21 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Wed, 1 Aug 2012 16:51:21 +0200 Subject: [mapserver-users] Mapserver 6: Oracle & layerObj.queryByIndex Message-ID: Hi I'm porting an Java-Mapscript-application from Mapserver 5.4 to Mapserver 6.0. Data is stored in Oracle-Saptial. I have a problem with layerObj.queryByIndex. To illustrate, i use a small Java-Testprogram: import edu.umn.gis.mapscript.layerObj; import edu.umn.gis.mapscript.mapObj; import edu.umn.gis.mapscript.shapeObj; public class QueryExtent { public static void main(String argv []) { mapObj map = new mapObj("java_test\\umn.map"); layerObj l = map.getLayerByName("Gemeinden"); // Gemeinden is Oracle-Spatial-Layer int i = l.queryByIndex(map, 0, 2, 0); System.out.println(i); } } This program prints 1 - saying, that the queryByIndex-call was not successfull. Logfile: msOracleSpatialLayerGetShape(): OracleSpatial error. msOracleSpatialLayerGetShape record out of range By additional debugging I saw: In msOracleSpatialLayerGetShape Mapserver runs into the "if (resultindex >= 0)"-branch. In my case resultindex is an extra-ordinary big integer-number. I don't really understand ths query-layer-code in Mapserver. But I think in my case resultindex should by -1 and that Mapserver should initialize resultindex automatically. Therfore I changed code: int msQueryByIndex(mapObj *map) { ... resultObj record; record.resultindex = -1; // added line. } Is the fix correct or should I use Mapscript differently? Benedikt From Phil.Anzel at ftc.usda.gov Wed Aug 1 08:00:27 2012 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - NRCS, Fort Collins, CO) Date: Wed, 1 Aug 2012 15:00:27 +0000 Subject: [mapserver-users] How to handle unavailable data source in mapObj layer? Message-ID: Steve, Thanks for the suggestion. New ticket opened as: Skip layers with specified WMS errors https://github.com/mapserver/mapserver/issues/4411 - Phil On 7/31/2012 1:55 PM, Paolo Corti wrote: > On Tue, Jul 31, 2012 at 7:43 PM, Stephen Woodbridge > wrote: >> I'm not sure if this will help, but have you tried using: >> >> MAP >> ... >> CONFIG ON_MISSING_DATA "IGNORE" >> ... >> >> -Steve W >> > > Steve > I think that is only for missing data in tile index, according to the > documentation cheers p > Yeah, I was afraid that might be the case, because that is how I typically use it. You might want to open a ticket to add a feature like: CONFIG ON_WMS_ERROR "IGNORE" CONFIG ON_WMS_404 "IGNORE" If this would be helpful to users. -Steve W This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately. From luis.a.de.sousa at gmail.com Wed Aug 1 08:14:39 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Wed, 1 Aug 2012 08:14:39 -0700 (PDT) Subject: [mapserver-users] Getting introduced to MapScript Message-ID: <1343834079845-4992463.post@n6.nabble.com> Dear all, I'm starting to dive into MapScript but am feeling a bit lost. The documentation is scant and so far I haven't been able to find a proper API reference. Right now I'm just going through the code itself and things are going rather slowly. Is there a thorough API reference out there? And where is the right place to ask for help? Here at this forum? Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Wed Aug 1 08:38:32 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 01 Aug 2012 11:38:32 -0400 Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <1343834079845-4992463.post@n6.nabble.com> References: <1343834079845-4992463.post@n6.nabble.com> Message-ID: <50194D78.7020401@swoodbridge.com> On 8/1/2012 11:14 AM, Lu?s de Sousa wrote: > Dear all, > > I'm starting to dive into MapScript but am feeling a bit lost. The > documentation is scant and so far I haven't been able to find a proper API > reference. Right now I'm just going through the code itself and things are > going rather slowly. > > Is there a thorough API reference out there? And where is the right place to > ask for help? Here at this forum? I assume you are already looking at this: http://mapserver.org/mapscript/index.html#mapscript http://mapserver.org/mapscript/php/by_example.html Which flavor of mapscript are you using? PHP, C#, etc -Steve W From jeremyswilson at gmail.com Wed Aug 1 15:50:27 2012 From: jeremyswilson at gmail.com (mmmoatmeal) Date: Wed, 1 Aug 2012 15:50:27 -0700 (PDT) Subject: [mapserver-users] mssql with mapserver on red hat Message-ID: <1343861427229-4992557.post@n6.nabble.com> i am trying to create a mapserver layer from a spatial table in mssql on another server. the mapserver is running on a red hat linux server. i cannot get it to connect. i have setup unixodbc and freetds. i have a dsn setup, which i can successfully connect to and query using isql. in my mapfile i have connection for the layer like this ... ... CONNECTIONTYPE OGR CONNECTION "MSSQL:dsn=[mydsn];driver=FreeTDS;uid=[user];pwd=[pass];database=[mydb]" DATA "SELECT ... etc'" ... ... the error i get is this msDrawMap(): Image handling error. Failed to draw layer named test'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `test'. Unable to initialize connection to the server for MSSQL:dsn=[mydsn];driver=FreeTDS;uid=[user];pwd=[pass];database=[mydb], [unixODBC][Driver Manager]Data source name not found, and no default driver specified i have tried several variations for the connection string and with never any success. does anyone else use a setup this way? or possibly provide some assistance or some insight on how i can get this to work? or is there a better way? i have found a couple of posts searching but nothing that is working for me. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql-with-mapserver-on-red-hat-tp4992557.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Thu Aug 2 00:10:34 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Thu, 2 Aug 2012 00:10:34 -0700 (PDT) Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <50194D78.7020401@swoodbridge.com> References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> Message-ID: <1343891434685-4992604.post@n6.nabble.com> Hi Stephen, thank you for the reply. Yes I've went through those pages already. There you learn a few things, but not how to set up a MapFile entirely. How to set up the SHAPEPATH for a mapObj for instance, or the DATA and TYPE for a layerObj. I'm presently using Python, not that I like the language, but I've been learning quite a bit with the MapScript code in PyWPS. Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992604.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Aug 2 00:16:52 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 2 Aug 2012 09:16:52 +0200 Subject: [mapserver-users] Mapserver 6: Oracle & layerObj.queryByIndex In-Reply-To: References: Message-ID: Hi, Issues https://github.com/mapserver/mapserver/issues/4238 and https://github.com/mapserver/mapserver/issues/4076 seem closely related. I'm not a query expert, but I do know that part of the code has been quite heavily worked on for 6.2, any chance you could try with that version and confirm if it has been fixed or not? regards, thomas On Wed, Aug 1, 2012 at 4:51 PM, wrote: > > > Hi > > I'm porting an Java-Mapscript-application from Mapserver 5.4 to Mapserver > 6.0. > Data is stored in Oracle-Saptial. > > I have a problem with layerObj.queryByIndex. > > To illustrate, i use a small Java-Testprogram: > import edu.umn.gis.mapscript.layerObj; > import edu.umn.gis.mapscript.mapObj; > import edu.umn.gis.mapscript.shapeObj; > > public class QueryExtent { > public static void main(String argv []) { > mapObj map = new mapObj("java_test\\umn.map"); > layerObj l = map.getLayerByName("Gemeinden"); // Gemeinden is > Oracle-Spatial-Layer > int i = l.queryByIndex(map, 0, 2, 0); > System.out.println(i); > } > > } > > This program prints 1 - saying, that the queryByIndex-call was not > successfull. > Logfile: msOracleSpatialLayerGetShape(): OracleSpatial error. > msOracleSpatialLayerGetShape record out of range > > By additional debugging I saw: In msOracleSpatialLayerGetShape Mapserver > runs into the "if (resultindex >= 0)"-branch. > In my case resultindex is an extra-ordinary big integer-number. > > I don't really understand ths query-layer-code in Mapserver. But I think in > my case resultindex should by -1 and that Mapserver > should initialize resultindex automatically. > Therfore I changed code: > int msQueryByIndex(mapObj *map) { > ... > resultObj record; > record.resultindex = -1; // added line. > } > > Is the fix correct or should I use Mapscript differently? > > Benedikt > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Aug 2 00:22:57 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 2 Aug 2012 09:22:57 +0200 Subject: [mapserver-users] Polygon Fill with text in MapServer 6.0.3 [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Hi, Using multiple characters in trutype symbols was a grey area in pre-6.0/5.6 versions of mapserver: it worked for some drivers (Gd) but wasn't documented nor was it even really intended. I do not know of a setting that would allow you to fill a polygon with text, aside from creating a pixmap symbol where you've pre-rendered your text. regards, thomas On Thu, Jul 26, 2012 at 5:59 AM, Kathleen Hirst wrote: > Dear List, > > In MapServer 5.4.2, I had defined a symbol as follows: > > SYMBOL > NAME "IDR68" > TYPE TRUETYPE > FONT "arial" > CHARACTER "No data" > GAP 2 > END > > and used it as a polygon fill for a layer > > CLASS > STYLE > SYMBOL "IDR68" > COLOR 0 0 0 > OUTLINECOLOR 0 0 0 > SIZE 12 > END > END > > In migrating to MapServer 6.0.3, I have done the following: > > SYMBOL > NAME "IDR68" > TYPE TRUETYPE > FONT "arial" > CHARACTER "No data" > END > and in the layer > > CLASS > STYLE > SYMBOL "IDR68" > COLOR 0 0 0 > SIZE 12 > GAP 2 > END > STYLE > OUTLINECOLOR 0 0 0 > END > END > > Instead of filling the polygon with "No data", I only get a fill with the > first character ie "N". > Is there a way to fill a polygon with text in MapServer 6.0?? > > Thanks > > Kathleen > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umn-ms at hydrotec.de Thu Aug 2 01:34:30 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Thu, 2 Aug 2012 10:34:30 +0200 Subject: [mapserver-users] Antwort: Re: Mapserver 6: Oracle & layerObj.queryByIndex In-Reply-To: References: Message-ID: Hi Thomas The "Single Query Issue" is complex. I'll try to break this one down, because I think this one seams to be quite obvious and the code is unchanged in 6.2.0 beta1 DESCRIPTION: The function "msQueryByIndex(mapObj* map)" has a local variable "resultObj record;". The field "record.resultindex" is never initialized. In this function the uninitialized record-variable is passed to "msLayerGetShape(...,&record)". The Oracle-Implementation "msOracleSpatialLayerGetShape" of the msLayerGetShape-Function evaluates the uninitialized "record.resultindex". In my case "msOracleSpatialLayerGetShape" threw an error. SOLUTION (Suggestion): In msQueryByIndex resultObj record should be initialized. At least: record.resultindex = -1; >From a users point of view this error rises sporadic. Benedikt PS: I have some more frustrating issues of this kind. But this is the only one I can desribe precisly. thomas bonfort schrieb am 02.08.2012 09:16:52: > thomas bonfort > 02.08.2012 09:23 > > An > > umn-ms at hydrotec.de > > Kopie > > MapserverList OSGEO > > Thema > > Re: [mapserver-users] Mapserver 6: Oracle & layerObj.queryByIndex > > Hi, > Issues https://github.com/mapserver/mapserver/issues/4238 and > https://github.com/mapserver/mapserver/issues/4076 seem closely > related. I'm not a query expert, but I do know that part of the code > has been quite heavily worked on for 6.2, any chance you could try > with that version and confirm if it has been fixed or not? > > regards, > thomas > > On Wed, Aug 1, 2012 at 4:51 PM, wrote: > > > > > > Hi > > > > I'm porting an Java-Mapscript-application from Mapserver 5.4 to Mapserver > > 6.0. > > Data is stored in Oracle-Saptial. > > > > I have a problem with layerObj.queryByIndex. > > > > To illustrate, i use a small Java-Testprogram: > > import edu.umn.gis.mapscript.layerObj; > > import edu.umn.gis.mapscript.mapObj; > > import edu.umn.gis.mapscript.shapeObj; > > > > public class QueryExtent { > > public static void main(String argv []) { > > mapObj map = new mapObj("java_test\\umn.map"); > > layerObj l = map.getLayerByName("Gemeinden"); // Gemeinden is > > Oracle-Spatial-Layer > > int i = l.queryByIndex(map, 0, 2, 0); > > System.out.println(i); > > } > > > > } > > > > This program prints 1 - saying, that the queryByIndex-call was not > > successfull. > > Logfile: msOracleSpatialLayerGetShape(): OracleSpatial error. > > msOracleSpatialLayerGetShape record out of range > > > > By additional debugging I saw: In msOracleSpatialLayerGetShape Mapserver > > runs into the "if (resultindex >= 0)"-branch. > > In my case resultindex is an extra-ordinary big integer-number. > > > > I don't really understand ths query-layer-code in Mapserver. But I think in > > my case resultindex should by -1 and that Mapserver > > should initialize resultindex automatically. > > Therfore I changed code: > > int msQueryByIndex(mapObj *map) { > > ... > > resultObj record; > > record.resultindex = -1; // added line. > > } > > > > Is the fix correct or should I use Mapscript differently? > > > > Benedikt > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Thu Aug 2 05:21:23 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 2 Aug 2012 14:21:23 +0200 Subject: [mapserver-users] mssql with mapserver on red hat References: <1343861427229-4992557.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3DE@KS-EVS1.smi.sachsen.de> > [unixODBC][Driver Manager]Data source name not found, and no > default driver specified The ODBC driver cannot find your DSN. Have you configured it in your user account or in the system wide /etc/odbc.ini? MapServer might be running under a different account unable to read your odbc.ini. Also, before trying to use MSSQLSpatial you should first try with ODBC and ogrinfo from the command line: # ogrinfo -al -so 'ODBC:DSN=[dsn];UID=[user];PWD=[password];Database=[db]' From Andreas.Eichner at sid.sachsen.de Thu Aug 2 07:15:40 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 2 Aug 2012 16:15:40 +0200 Subject: [mapserver-users] Polygon Fill with text in MapServer 6.0.3[SEC=UNCLASSIFIED] References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3DF@KS-EVS1.smi.sachsen.de> > aside from > creating a pixmap symbol where you've pre-rendered your text. Any idea if a SVG symbol would do? From jeremyswilson at gmail.com Thu Aug 2 07:44:58 2012 From: jeremyswilson at gmail.com (mmmoatmeal) Date: Thu, 2 Aug 2012 07:44:58 -0700 (PDT) Subject: [mapserver-users] mssql with mapserver on red hat In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3DE@KS-EVS1.smi.sachsen.de> References: <1343861427229-4992557.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3DE@KS-EVS1.smi.sachsen.de> Message-ID: <1343918698994-4992717.post@n6.nabble.com> the dsn is setup in /etc/odbc.ini, like this [dsn] Server = [IP] Port = 1433 Driver = FreeTDS Description = Primary GIS Server Database = [DB] Trace = Yes User = [user] Password = [password] testing with ogrinfo that way seemed to work, giving this INFO: Open of `ODBC:DSN=[dsn];UID=[user];PWD=[password];Database=[db]' using driver `ODBC' successful. Layer name: dbo.countries Geometry...etc i tried changing permissions on /etc/odbc.ini but still not working in mapserver -- View this message in context: http://osgeo-org.1560.n6.nabble.com/mssql-with-mapserver-on-red-hat-tp4992557p4992717.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Thu Aug 2 09:35:38 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 02 Aug 2012 12:35:38 -0400 Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <1343891434685-4992604.post@n6.nabble.com> References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> <1343891434685-4992604.post@n6.nabble.com> Message-ID: <501AAC5A.5010507@swoodbridge.com> On 8/2/2012 3:10 AM, Lu?s de Sousa wrote: > Hi Stephen, thank you for the reply. > > Yes I've went through those pages already. There you learn a few things, but > not how to set up a MapFile entirely. How to set up the SHAPEPATH for a > mapObj for instance, or the DATA and TYPE for a layerObj. > > I'm presently using Python, not that I like the language, but I've been > learning quite a bit with the MapScript code in PyWPS. The rules for setting SHAPEPATH, DATA, and TYPE are all defined in the mapfile documentation. There are no separate rules because you are using mapscript. Typically if I were building a mapscript application, I would start with a static mapfile and make sure that works. Then you can load that and examine it using mapscript to see what various objects look like. From there you can start looking into building objects dynamically. I also think there is method that lets you save you mapfile to a file. This would be helpful if you are building a mapfile dynamically so you can see what you have built at any given moment that you save it. Beyond that, it have been I while since I have written an mapscript applications, so I'm not sure how much more help I can be. Please consider making patches to improve the docs and posting pull requests, or at least writing a ticket with you updated information. Thanks, -Steve W From Steve.Lime at state.mn.us Thu Aug 2 11:01:59 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 2 Aug 2012 18:01:59 +0000 Subject: [mapserver-users] =?utf-8?b?0J7RgtCyLjogIGhvdyB0byB1c2UgYXR0cmli?= =?utf-8?q?ute_name_in_template_with_=22=5F=22?= In-Reply-To: <1343821760.37394.YahooMailNeo@web161804.mail.bf1.yahoo.com> References: <1343774524.60760.YahooMailNeo@web161805.mail.bf1.yahoo.com> <4B41F20BF8C64409988B84B0276D8963@DELLM4500> <1343821760.37394.YahooMailNeo@web161804.mail.bf1.yahoo.com> Message-ID: Item names are case sensitive so try [OGC_FID] or try the [item ?] tag, e.g.: [item name=?ogc_fid?] Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of alexkartatemp-1 at yahoo.com Sent: Wednesday, August 01, 2012 6:49 AM To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: [mapserver-users] ???.: how to use attribute name in template with "_" Donald, thank you very much for your reply, I already have the string "gml_featureid" "ogc_fid" in the map file. Here is my template.html: *************** ???

AttributeValue
?????:[ogc_fid]
?? ???:[shem_mal]
?????:[tarih]
????:[unick_id]

*********** There are 2 more fields with "_", them work good. Problem only with [ogc_fid] (I tryed to change register - also don't work). here is schema of layer (spatialite myfile.sqlite -> .shema layername): *********** CREATE TABLE 'gves' ( OGC_FID INTEGER PRIMARY KEY, "GEOMETRY" POINT, 'gush' VARCHAR, 'halka' FLOAT, 'ms_sh' FLOAT, 'ms_sh_1' FLOAT, 'mispar' FLOAT, 'shem' VARCHAR, 'mishpaha' VARCHAR, 'min' VARCHAR, 'tarih' VARCHAR, 'tarih_1' VARCHAR, 'x' FLOAT, 'y' FLOAT, 'tashlum' VARCHAR, 'ktovet' VARCHAR, 'moza' VARCHAR, 'ptira' VARCHAR, 'knia' VARCHAR, 'shem_mal' VARCHAR, 'gusheng' VARCHAR, 'kvarim' FLOAT, 'unick_id' VARCHAR); *********** May be OGC_FID is some sort of special field in spatialite files. As you see in schema it looks not as another fields. Of cource, I can create a new field and copy there values from OGC_FID, but I want to try to find the way without changing the struture of table. Thank you for help Best regards, Alexey ________________________________ ??: Donald Kerr > ????: alexkartatemp-1 at yahoo.com; mapserver-users at lists.osgeo.org ??????????: ?????, 1 ??????? 2012 10:08 ????: RE: [mapserver-users] how to use attribute name in template with "_" Try this line in the LAYER METADATA: LAYER METADATA "gml_featureid" "ogc_fid" END END Regards, Donald METADATA -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of alexkartatemp-1 at yahoo.com Sent: 31 July 2012 23:42 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] how to use attribute name in template with "_" Hello, I use mapserver 6.0.3 I created template for getting info from (OpenLayers WMSGetFeatureInfo method) spatilite file. I can't get access to the field "ogc_fid" from template. I think it is because of symbol "_" in field name. What I can do to get [ogc_fid] value from template? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Thu Aug 2 13:03:00 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Thu, 2 Aug 2012 22:03:00 +0200 Subject: [mapserver-users] Using spatialite with mapserver Message-ID: Hi, I'm try-ing to use spatialite with mapserver. is this mapfile configuration ok for spatialite ? CONNECTIONTYPE OGR CONNECTION '/..path-to../spatialite_file.sqlite' DATA 'SELECT field1, field2, field3, geometry from table' It seem don't work. Instead work perfectly this other configuration: CONNECTIONTYPE OGR CONNECTION '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' DATA 'table' Unfortunately this second configuration don't allow to choose the geometry field , necessary when spatialite table as two or more geometry field. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at qcoherent.com Thu Aug 2 14:04:03 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Thu, 2 Aug 2012 16:04:03 -0500 Subject: [mapserver-users] Basic Templating Message-ID: <000f01cd70f2$5934c700$0b9e5500$@com> Hi , I am trying to implement templating taking the help of the mapserver tutorial. I created my own map file, which works fine. I get the output as desired when I use mode=map. Now I am trying to include a template for my example. I created a new template file 'gmapNew.html' . I added the reference to this template file in my map file. Yet When I am submitting a query, the template values are not being substituted correctly and so not getting my required result. ---------------------------------------------------------------------------- ------------------------------ The snippet of my map file where I am referencing my template file. MAP IMAGETYPE PNG EXTENT -9423052.40 4582638.15 -9414491.41 4589289.39 # extents of las file for 3875 using cs2cs #EXTENT 1525556.83 190608.70 1547770.63 207656.82 #las files #EXTENT -9435462.86 4562596.42 -9387971.96 4608897.38 # sbet lat lon to extent using cs2cs SIZE 1020 980 SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" #TRANSPARENT ON IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION #"init=epsg:2246" "init=epsg:3857" END WEB TEMPLATE "gmapNew.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://localhost:8080/keenland?" "wms_srs" "espg:32617" END END ..... ..... END ---------------------------------------------------------------------------- --------------------------------- My template file. Google/MapServer Tile Example


Map Controls
Set your zoom option:

Can anyone please help me . Any help is greatly appreciated. Thanks in advance! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at qcoherent.com Thu Aug 2 14:09:54 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Thu, 2 Aug 2012 16:09:54 -0500 Subject: [mapserver-users] changing opacity of a layer for a single client using map server Message-ID: <001a01cd70f3$2a5e7650$7f1b62f0$@com> Hi All, I have a question relating to opacity of a layer. My requirement is to change the opacity of a layer for a particular client. I thought, I can achieve this using map script. But, one thing which is not clear to me is : If I change the opacity of a layer through the map script , will the changes get reflected back in to the map file and then to any other clients accessing that map file? If I make changes to the existing map object using mapscript , will those changes be reflected back on to the map file? Please someone clarify me this point. Thanks in advance! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Aug 2 14:27:23 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Aug 2012 21:27:23 +0000 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A6346216C@suutari.haapa.mmm.fi> Hi, The SELECT alternative works fine for me but I do not have multiple geometries. I made a very fast test on Spatialite side and it seems to be possible to run "Recover geometry column" and "Create spatial index" for multiple geometries but I did not test the result with Mapserver. I would recommend you to check first your geometry_columns table and see it there is a line for the geometry you want to use and if spatial index is OK. If they are OK make a simplified test. Create a single geometry table as CREATE table test as SELECT geom1, attr1... FROM... Do "Recover geometry column" and "Create spatial index" things for the new table and have a try with Mapserver. GDAL version must be 1.9 or higher or things will be far too slow. This document may also be useful for you http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [aperi2007 at gmail.com] puolesta L?hetetty: 2. elokuuta 2012 23:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Using spatialite with mapserver Hi, I'm try-ing to use spatialite with mapserver. is this mapfile configuration ok for spatialite ? CONNECTIONTYPE OGR CONNECTION '/..path-to../spatialite_file.sqlite' DATA 'SELECT field1, field2, field3, geometry from table' It seem don't work. Instead work perfectly this other configuration: CONNECTIONTYPE OGR CONNECTION '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' DATA 'table' Unfortunately this second configuration don't allow to choose the geometry field , necessary when spatialite table as two or more geometry field. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From pcorti at gmail.com Thu Aug 2 14:32:55 2012 From: pcorti at gmail.com (Paolo Corti) Date: Thu, 2 Aug 2012 23:32:55 +0200 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: References: Message-ID: On Thu, Aug 2, 2012 at 10:03 PM, Andrea Peri wrote: > Hi, > I'm try-ing to use spatialite with mapserver. > > is this mapfile configuration ok for spatialite ? > > CONNECTIONTYPE OGR > CONNECTION '/..path-to../spatialite_file.sqlite' > DATA 'SELECT field1, field2, field3, geometry from table' > > It seem don't work. > I think you just need to select the geometry field in the DATA parameter (at least this is the case for PostGIS and Oracle Spatial), so for your case try: DATA 'SELECT geometry from table' cheers p -- Paolo Corti Geospatial software developer web: http://www.paolocorti.net twitter: @capooti skype: capooti From Steve.Lime at state.mn.us Thu Aug 2 14:45:27 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 2 Aug 2012 21:45:27 +0000 Subject: [mapserver-users] changing opacity of a layer for a single client using map server In-Reply-To: <001a01cd70f3$2a5e7650$7f1b62f0$@com> References: <001a01cd70f3$2a5e7650$7f1b62f0$@com> Message-ID: The mapfile is loaded into memory and then MapScript acts upon those structures. The original is unchanged. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Thursday, August 02, 2012 4:10 PM To: 'Mapserver-users' Subject: [mapserver-users] changing opacity of a layer for a single client using map server Hi All, I have a question relating to opacity of a layer. My requirement is to change the opacity of a layer for a particular client. I thought, I can achieve this using map script. But, one thing which is not clear to me is : If I change the opacity of a layer through the map script , will the changes get reflected back in to the map file and then to any other clients accessing that map file? If I make changes to the existing map object using mapscript , will those changes be reflected back on to the map file? Please someone clarify me this point. Thanks in advance! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Aug 2 14:46:27 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Aug 2012 21:46:27 +0000 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: <84446DEF76453C439E9E97E438E13A6346216C@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A6346216C@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A6346218F@suutari.haapa.mmm.fi> Hi again, Tried what ogrinfo sees in case of two geometries. It does not look good. FID Column = rowid Geometry Column = geom1 geom2: Binary (0.0) OGRFeature(test2):1 geom2 (Binary) = 0001110F0000958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412 6C76C9BD95A... POINT (1436841.2324912299 6908774.4285142776) OGRFeature(test2):2 geom2 (Binary) = 0001110F000081AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F B1B8FFA035B... POINT (1437614.9808758798 6908943.9149846984) So that means than only the first geometry can be user with OGR. Next I tried to create a spatial view with spatialite-gui by selecting only geom2 into the view. This fails too D:\ms4w\data>ogrinfo berlin.sqlite test3 INFO: Open of `berlin.sqlite' using driver `SQLite' successful. ERROR 1: Underlying layer test2 for view test3 has not expected geometry column name (geom1 instead of geom2) Layer name: test3 Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) FID Column = ROWID Geometry Column = geom2 This looks like an OGR bug, I have correct info in views_geometry_columns (refering to geom2 of the main table) and in geometry_columns (both geom1 and geom2 has records). For now, forget multiple geometries and create new single geometry tables and enjoy the speed of Spatialite and Mapserver. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta L?hetetty: 3. elokuuta 2012 0:27 Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Using spatialite with mapserver Hi, The SELECT alternative works fine for me but I do not have multiple geometries. I made a very fast test on Spatialite side and it seems to be possible to run "Recover geometry column" and "Create spatial index" for multiple geometries but I did not test the result with Mapserver. I would recommend you to check first your geometry_columns table and see it there is a line for the geometry you want to use and if spatial index is OK. If they are OK make a simplified test. Create a single geometry table as CREATE table test as SELECT geom1, attr1... FROM... Do "Recover geometry column" and "Create spatial index" things for the new table and have a try with Mapserver. GDAL version must be 1.9 or higher or things will be far too slow. This document may also be useful for you http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [aperi2007 at gmail.com] puolesta L?hetetty: 2. elokuuta 2012 23:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Using spatialite with mapserver Hi, I'm try-ing to use spatialite with mapserver. is this mapfile configuration ok for spatialite ? CONNECTIONTYPE OGR CONNECTION '/..path-to../spatialite_file.sqlite' DATA 'SELECT field1, field2, field3, geometry from table' It seem don't work. Instead work perfectly this other configuration: CONNECTIONTYPE OGR CONNECTION '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' DATA 'table' Unfortunately this second configuration don't allow to choose the geometry field , necessary when spatialite table as two or more geometry field. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Thu Aug 2 14:58:27 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Thu, 2 Aug 2012 16:58:27 -0500 Subject: [mapserver-users] changing opacity of a layer for a single client using map server In-Reply-To: References: <001a01cd70f3$2a5e7650$7f1b62f0$@com> Message-ID: <002801cd70f9$f2a63980$d7f2ac80$@com> Thank you very much Steve for clarifying me question. -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Thursday, August 02, 2012 4:45 PM To: Sowmya Tiramdasu; 'Mapserver-users' Subject: RE: [mapserver-users] changing opacity of a layer for a single client using map server The mapfile is loaded into memory and then MapScript acts upon those structures. The original is unchanged. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Thursday, August 02, 2012 4:10 PM To: 'Mapserver-users' Subject: [mapserver-users] changing opacity of a layer for a single client using map server Hi All, I have a question relating to opacity of a layer. My requirement is to change the opacity of a layer for a particular client. I thought, I can achieve this using map script. But, one thing which is not clear to me is : If I change the opacity of a layer through the map script , will the changes get reflected back in to the map file and then to any other clients accessing that map file? If I make changes to the existing map object using mapscript , will those changes be reflected back on to the map file? Please someone clarify me this point. Thanks in advance! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Aug 2 15:04:38 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 2 Aug 2012 22:04:38 +0000 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: <84446DEF76453C439E9E97E438E13A6346218F@suutari.haapa.mmm.fi> References: , <84446DEF76453C439E9E97E438E13A6346216C@suutari.haapa.mmm.fi>, <84446DEF76453C439E9E97E438E13A6346218F@suutari.haapa.mmm.fi> Message-ID: <84446DEF76453C439E9E97E438E13A634621A9@suutari.haapa.mmm.fi> I an writing this night faster than I am thinking, sorry for that. It came into my mind to delete the row for geom1 from the geometry_columns and now it is possible to use geom2. OGR takes the first matching row from geometry_columns and because row for geom1 does not exist row for geom2 is found and everything works fine. However, this workaround makes only one geometry at a time usable for OGR and Mapserver because the first registered geometry column must match. ogrinfo: FID Column = ROWID Geometry Column = geom2 OGRFeature(test3):1 POINT (1436841.2324912299 6908774.4285142776) OGRFeature(test3):2 POINT (1437614.9808758798 6908943.9149846984) OGRFeature(test3):3 POINT (1438331.5778339701 6909101.5655383449) -Jukka- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta L?hetetty: 3. elokuuta 2012 0:46 Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Using spatialite with mapserver Hi again, Tried what ogrinfo sees in case of two geometries. It does not look good. FID Column = rowid Geometry Column = geom1 geom2: Binary (0.0) OGRFeature(test2):1 geom2 (Binary) = 0001110F0000958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412 6C76C9BD95A... POINT (1436841.2324912299 6908774.4285142776) OGRFeature(test2):2 geom2 (Binary) = 0001110F000081AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F B1B8FFA035B... POINT (1437614.9808758798 6908943.9149846984) So that means than only the first geometry can be user with OGR. Next I tried to create a spatial view with spatialite-gui by selecting only geom2 into the view. This fails too D:\ms4w\data>ogrinfo berlin.sqlite test3 INFO: Open of `berlin.sqlite' using driver `SQLite' successful. ERROR 1: Underlying layer test2 for view test3 has not expected geometry column name (geom1 instead of geom2) Layer name: test3 Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) FID Column = ROWID Geometry Column = geom2 This looks like an OGR bug, I have correct info in views_geometry_columns (refering to geom2 of the main table) and in geometry_columns (both geom1 and geom2 has records). For now, forget multiple geometries and create new single geometry tables and enjoy the speed of Spatialite and Mapserver. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta L?hetetty: 3. elokuuta 2012 0:27 Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Using spatialite with mapserver Hi, The SELECT alternative works fine for me but I do not have multiple geometries. I made a very fast test on Spatialite side and it seems to be possible to run "Recover geometry column" and "Create spatial index" for multiple geometries but I did not test the result with Mapserver. I would recommend you to check first your geometry_columns table and see it there is a line for the geometry you want to use and if spatial index is OK. If they are OK make a simplified test. Create a single geometry table as CREATE table test as SELECT geom1, attr1... FROM... Do "Recover geometry column" and "Create spatial index" things for the new table and have a try with Mapserver. GDAL version must be 1.9 or higher or things will be far too slow. This document may also be useful for you http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [aperi2007 at gmail.com] puolesta L?hetetty: 2. elokuuta 2012 23:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Using spatialite with mapserver Hi, I'm try-ing to use spatialite with mapserver. is this mapfile configuration ok for spatialite ? CONNECTIONTYPE OGR CONNECTION '/..path-to../spatialite_file.sqlite' DATA 'SELECT field1, field2, field3, geometry from table' It seem don't work. Instead work perfectly this other configuration: CONNECTIONTYPE OGR CONNECTION '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' DATA 'table' Unfortunately this second configuration don't allow to choose the geometry field , necessary when spatialite table as two or more geometry field. Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- _______________________________________________ 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 luis.a.de.sousa at gmail.com Fri Aug 3 00:49:49 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 3 Aug 2012 00:49:49 -0700 (PDT) Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <501AAC5A.5010507@swoodbridge.com> References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> <1343891434685-4992604.post@n6.nabble.com> <501AAC5A.5010507@swoodbridge.com> Message-ID: <1343980189233-4992863.post@n6.nabble.com> Thank you Stephen, loading an existing MapFile and looking into its contents should help indeed, but it is a bit frustrating to see such basic things lacking in the documentation. In any case, I'd ask again if this is the right place to ask help for on MapScript, or if there's another forum dedicated to it. Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992863.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Fri Aug 3 00:55:41 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Fri, 3 Aug 2012 00:55:41 -0700 (PDT) Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <1343980189233-4992863.post@n6.nabble.com> References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> <1343891434685-4992604.post@n6.nabble.com> <501AAC5A.5010507@swoodbridge.com> <1343980189233-4992863.post@n6.nabble.com> Message-ID: <1343980541110-4992866.post@n6.nabble.com> Hi Cristiano, thank you for the reply. I'm precisely trying to build a wrapper API for the specific where you a GML file and want to automatically publish it through MapServer. If I understand correctly from your message there is no way set the layer TYPE attribute directly. Is this the same with the DATA attribute? In such case how can it be set? Thank you, Lu?s On 2 August 2012 14:37, Cristiano Sumariva wrote: > Well if you have time to do it, I strong suggest you to create a thin > wrapper about mapscript. This is for case you can have a safe, programmer > friendly API. > Or at least create a Factory class for some mapscript constructs. This > will > save you of much trouble in future when you going need change something. > > For your commented object layerObj the mapscript function or method to > creating a new layer would be new layer( parent ). > What would lead you to map draw failure because layerobj type was not set. > > So use a factory like LayerFactory.createPolygon( mapobj ) that will set > things properly. > > I guess the minimum mapfile stuff required are: > - map size output > - map ground coordinates position > - one layer obj( a lot of attributes set here ) > -- one class at layerobj( a few atrtibutes set here ) > --- one style at above class( presentation, color stuff here ) > > optional > if going work with different projections > - the map projetion attribute > - for each layer the projection attribute. > > Again would be very nice to have a wrapper that raise error you if have a > layer without projection attribute in presence of it at map object. -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Getting-introduced-to-MapScript-tp4992463p4992866.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aperi2007 at gmail.com Fri Aug 3 01:05:52 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 3 Aug 2012 10:05:52 +0200 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: <84446DEF76453C439E9E97E438E13A6346218F@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A6346216C@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6346218F@suutari.haapa.mmm.fi> Message-ID: >This looks like an OGR bug, I have correct info in views_geometry_columns (refering to >geom2 of the main table) and in geometry_columns (both geom1 and geom2 has >records). > >For now, forget multiple geometries and create new single geometry tables and enjoy the >speed of Spatialite and Mapserver. > >-Jukka Rahkonen- thx Jukka, Is an unpleasant situation this ogr bug. My table af many fields attribute . it is about 15 Gbyte (gasp!) so split it in two tables so separate the geometries is not a beatiful action. :) But I'm notice another question. Infact after remove the secondary geometries (sigh), I can see that there is a strange liit due to numer of elements. Infact Mapserver work with this sql: DATA 'SELECT field1, field2, field3, geometry from table LIMIT 20000' but don't work with this other sql: DATA 'SELECT field1, field2, field3, geometry from table LIMIT 200000' Seem there is a max number of elements retrieval. The strange is that with this second sql MapServer don't do nothing. Simply it end its work without generate no map. No error log report is write. Perhaps there is a setting to say how much memory mapserver (or ogr) must use for resultset from DB ? Thx. 2012/8/2 Rahkonen Jukka > Hi again, > > Tried what ogrinfo sees in case of two geometries. It does not look good. > > FID Column = rowid > Geometry Column = geom1 > geom2: Binary (0.0) > OGRFeature(test2):1 > geom2 (Binary) = > 0001110F0000958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412 > 6C76C9BD95A... > POINT (1436841.2324912299 6908774.4285142776) > > OGRFeature(test2):2 > geom2 (Binary) = > 0001110F000081AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F > B1B8FFA035B... > POINT (1437614.9808758798 6908943.9149846984) > > So that means than only the first geometry can be user with OGR. Next I > tried to create a spatial view with spatialite-gui by selecting only geom2 > into the view. This fails too > > D:\ms4w\data>ogrinfo berlin.sqlite test3 > INFO: Open of `berlin.sqlite' > using driver `SQLite' successful. > ERROR 1: Underlying layer test2 for view test3 has not expected geometry > column > name (geom1 instead of geom2) > > Layer name: test3 > Geometry: Unknown (any) > Feature Count: 0 > Layer SRS WKT: > (unknown) > FID Column = ROWID > Geometry Column = geom2 > > This looks like an OGR bug, I have correct info in views_geometry_columns > (refering to geom2 of the main table) and in geometry_columns (both geom1 > and geom2 has records). > > For now, forget multiple geometries and create new single geometry tables > and enjoy the speed of Spatialite and Mapserver. > > -Jukka Rahkonen- > > > ________________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] käyttäjän > Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta > L?hetetty: 3. elokuuta 2012 0:27 > Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Using spatialite with mapserver > > Hi, > > The SELECT alternative works fine for me but I do not have multiple > geometries. I made a very fast test on Spatialite side and it seems to be > possible to run "Recover geometry column" and "Create spatial index" for > multiple geometries but I did not test the result with Mapserver. > > I would recommend you to check first your geometry_columns table and see > it there is a line for the geometry you want to use and if spatial index is > OK. If they are OK make a simplified test. Create a single geometry table as > CREATE table test as > SELECT geom1, attr1... FROM... > Do "Recover geometry column" and "Create spatial index" things for the new > table and have a try with Mapserver. > > GDAL version must be 1.9 or higher or things will be far too slow. > This document may also be useful for you > http://latuviitta.org/documents/Super_easy_WMS_server.pdf > > -Jukka Rahkonen- > > > > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [ > aperi2007 at gmail.com] puolesta > L?hetetty: 2. elokuuta 2012 23:03 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Using spatialite with mapserver > > Hi, > I'm try-ing to use spatialite with mapserver. > > is this mapfile configuration ok for spatialite ? > > CONNECTIONTYPE OGR > CONNECTION '/..path-to../spatialite_file.sqlite' > DATA 'SELECT field1, field2, field3, geometry from table' > > It seem don't work. > > Instead work perfectly this other configuration: > > CONNECTIONTYPE OGR > CONNECTION > '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' > DATA 'table' > > Unfortunately this second configuration don't allow to choose the geometry > field , necessary when spatialite table as two or more geometry field. > > 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 Jukka.Rahkonen at mmmtike.fi Fri Aug 3 01:38:27 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 3 Aug 2012 08:38:27 +0000 Subject: [mapserver-users] Using spatialite with mapserver Message-ID: <84446DEF76453C439E9E97E438E13A634622A6@suutari.haapa.mmm.fi> Hi, I correct myself, support for multiple geometry columns is not a bug but a missing feature. I just wrote about it into GDAL-dev list. Let's see what happens. When it comes to error with 'limit 200000' I believe that the real problem is in a different place. I bet that there is a faulty geometry somewhere between 20000 and 200000 geometries. In that case OGR throws an error and stops. For Mapserver users it would be extremely much better if OGR in such case just skips the error and continues. I know the issue because it is common with OpenSteetMap polygons. As a workaround I have myself just deleted all the non-valid geometries from Spatialite with "delete from table where ST_IsValid(geometry)=0". -Jukka Rahkonen- Andrea Peri wrote: >This looks like an OGR bug, I have correct info in views_geometry_columns (refering to >geom2 of the main table) and in geometry_columns (both geom1 and geom2 has >records). > >For now, forget multiple geometries and create new single geometry tables and enjoy the >speed of Spatialite and Mapserver. > >-Jukka Rahkonen- thx Jukka, Is an unpleasant situation this ogr bug. My table af many fields attribute . it is about 15 Gbyte (gasp!) so split it in two tables so separate the geometries is not a beatiful action. :) But I'm notice another question. Infact after remove the secondary geometries (sigh), I can see that there is a strange liit due to numer of elements. Infact Mapserver work with this sql: DATA 'SELECT field1, field2, field3, geometry from table LIMIT 20000' but don't work with this other sql: DATA 'SELECT field1, field2, field3, geometry from table LIMIT 200000' Seem there is a max number of elements retrieval. The strange is that with this second sql MapServer don't do nothing. Simply it end its work without generate no map. No error log report is write. Perhaps there is a setting to say how much memory mapserver (or ogr) must use for resultset from DB ? Thx. 2012/8/2 Rahkonen Jukka > Hi again, Tried what ogrinfo sees in case of two geometries. It does not look good. FID Column = rowid Geometry Column = geom1 geom2: Binary (0.0) OGRFeature(test2):1 geom2 (Binary) = 0001110F0000958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412 6C76C9BD95A... POINT (1436841.2324912299 6908774.4285142776) OGRFeature(test2):2 geom2 (Binary) = 0001110F000081AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F B1B8FFA035B... POINT (1437614.9808758798 6908943.9149846984) So that means than only the first geometry can be user with OGR. Next I tried to create a spatial view with spatialite-gui by selecting only geom2 into the view. This fails too D:\ms4w\data>ogrinfo berlin.sqlite test3 INFO: Open of `berlin.sqlite' using driver `SQLite' successful. ERROR 1: Underlying layer test2 for view test3 has not expected geometry column name (geom1 instead of geom2) Layer name: test3 Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) FID Column = ROWID Geometry Column = geom2 This looks like an OGR bug, I have correct info in views_geometry_columns (refering to geom2 of the main table) and in geometry_columns (both geom1 and geom2 has records). For now, forget multiple geometries and create new single geometry tables and enjoy the speed of Spatialite and Mapserver. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta L?hetetty: 3. elokuuta 2012 0:27 Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Using spatialite with mapserver Hi, The SELECT alternative works fine for me but I do not have multiple geometries. I made a very fast test on Spatialite side and it seems to be possible to run "Recover geometry column" and "Create spatial index" for multiple geometries but I did not test the result with Mapserver. I would recommend you to check first your geometry_columns table and see it there is a line for the geometry you want to use and if spatial index is OK. If they are OK make a simplified test. Create a single geometry table as CREATE table test as SELECT geom1, attr1... FROM... Do "Recover geometry column" and "Create spatial index" things for the new table and have a try with Mapserver. GDAL version must be 1.9 or higher or things will be far too slow. This document may also be useful for you http://latuviitta.org/documents/Super_easy_WMS_server.pdf -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [aperi2007 at gmail.com] puolesta L?hetetty: 2. elokuuta 2012 23:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Using spatialite with mapserver Hi, I'm try-ing to use spatialite with mapserver. is this mapfile configuration ok for spatialite ? CONNECTIONTYPE OGR CONNECTION '/..path-to../spatialite_file.sqlite' DATA 'SELECT field1, field2, field3, geometry from table' It seem don't work. Instead work perfectly this other configuration: CONNECTIONTYPE OGR CONNECTION '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' DATA 'table' Unfortunately this second configuration don't allow to choose the geometry field , necessary when spatialite table as two or more geometry field. 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 umn-ms at hydrotec.de Fri Aug 3 04:22:31 2012 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Fri, 3 Aug 2012 13:22:31 +0200 Subject: [mapserver-users] Bug in Oracle-Spatial-Support Message-ID: Hi We are using Mapserver 6.0.3 We think there is a serious problem in the TRY-Method of maporaclespatial.c SHORT DIAGNOSIS: I think there is a serious problem in the TRY-Method of maporaclespatial.c. After the first error in the msOracleSpatialHandler this method will always return 0, which indicates an error. Therefore mapserver won't work with this msOracleSpatialHandler after the first OCI-error occured with it. COMPLEX DIAGNOSIS: A testcase where this becomes a problem is 1. Mapfile with 2 layers from the same Oracle-Spatial-Database 2. Java-Binding with mapObj map = new mapObj("small.map"); layerObj gemLayer = map.getLayerByName("Gemeinden"); gemLayer.queryByAttributes(map, null, "Gemeinde_id=2", mapscript .MS_SINGLE); imageObj img = map.drawQuery(); The layer Gemeinde must be the second layer. This will fail with the message: [Fri Aug 03 10:35:58 2012].64000 msOracleSpatialLayerGetShape(): OracleSpatial error. Shape type is null... this probably means a record number was requested that could not have beeen in a result set (as returned by NextShape). This message occurs while drawing the query-layer (of "Gemeinden"). This message indicates, that there is an error on converting a Spatial-Geometry to a Mapserver-Geometry in "osGetOrdinates". Inside "osGetOrdinates" there is an OCI-call surrounded with TRY and this TRY returns 0/error. In reality the OCI-error already occured while drawing another layer, which used the same msOracleSpatialHandler. And *every* layer will cause at least one OCI-Error in msOracleSpatialLayerNextShape when reaching the end of the Cursor! THERAPY: We are not quite shure what to do. Option 1: In TRY remove the "if (hand->last_oci_status == MS_FAILURE) ..." statement. Since sequences of OCI-Calls are usually made with TRY() && TRY() ... this statement seems superflous. Option 2: Reset hand->last_oci_status to MS_SUCCESS often. Example: Reset it in msOracleSpatialLayerNextShape Example: Rest at the beginning of osGetOrdinates Any of these patches will solve the problem of the testcase. I'm note shure, how to fix this general problem best. Could somebody take care? This one is a serious obstacle on using mapserver. We looked at Mapserver 6.2-Code. The problematic lines of codes seem to be unchanged. Bye Benedikt From stefan.schwarzer at unep.org Fri Aug 3 04:36:41 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Fri, 3 Aug 2012 13:36:41 +0200 Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 Message-ID: <080577E3-5146-4D30-BFDC-5A60BBE260E2@unep.org> Hi there, I am struggling with a few changes I need to go through in order to make my code working now with mapserver 6.x. This one concerns the query part, when a user clicks on the map and a window with some metadata is being displayed. An error message occurred: "Catchable fatal error: Argument 1 passed to layerObj::getShape() must be an instance of resultObj, integer given" When I changed the getShape command as indicated here [1], it says: "Fatal error: Call to a member function getShape() on a non-object" This is the code: //Query the Map at the point clicked if (!$imgbox) @$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $a = $map -> queryByRect($click_rt); if ($a == MS_SUCCESS) { $numResults = $Layer -> getNumResults(); $oLayer = $map -> getLayer($Layer -> index); // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer -> open(); $oRes = $oLayer -> getResult(0); //$oShape = $oLayer -> getShape($oRes->tileindex,$oRes->shapeindex); // before $oShape = $layer -> getShape($oLayer -> getResult(0)); // now ?? while(list($key, $val) = each($oShape -> values)) { //echo "
x - ".count($selFields)." - ".$key . " = " . $val; if (($key <> "META_DATA") AND ($key <> "oid") AND ($key <> "id") AND ($key <> "uid")) $selFields[count($selFields)] = $key; } Not sure what I should put there? Thanks for any hints, Stefan [1] http://mapserver.org/MIGRATION_GUIDE.html From woodbri at swoodbridge.com Fri Aug 3 06:35:43 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 03 Aug 2012 09:35:43 -0400 Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: <1343980189233-4992863.post@n6.nabble.com> References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> <1343891434685-4992604.post@n6.nabble.com> <501AAC5A.5010507@swoodbridge.com> <1343980189233-4992863.post@n6.nabble.com> Message-ID: <501BD3AF.7090002@swoodbridge.com> On 8/3/2012 3:49 AM, Lu?s de Sousa wrote: > Thank you Stephen, loading an existing MapFile and looking into its contents > should help indeed, but it is a bit frustrating to see such basic things > lacking in the documentation. > > In any case, I'd ask again if this is the right place to ask help for on > MapScript, or if there's another forum dedicated to it. Yes, there are a lot of mapscript developers here and I'm sure we will be happy to answer questions. FYI, since you are using Python mapscript you want to look at the SWIG mapscript API. There are small differences between SWIG and PHP flavors of mapscript so just be forewarned. -Steve W From Steve.Lime at state.mn.us Fri Aug 3 07:45:58 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 3 Aug 2012 14:45:58 +0000 Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 In-Reply-To: <080577E3-5146-4D30-BFDC-5A60BBE260E2@unep.org> References: <080577E3-5146-4D30-BFDC-5A60BBE260E2@unep.org> Message-ID: The query code underwent major changes between 5.6 and 6.0 and one casualty was query processing like you're doing. On the bright side it's much more straight forward now. The general steps for a layer-based query is now just: $layer->queryByRect($map, $rect); # layer is left open after a query operation for($i=0; $i<$layer->getNumResults(); $i++) { $shape = $layer->getShape($layer->getResult($)); # much simpler # do something with the shape } I see the MapScript/Swig query docs are woefully out of date. I'll file a ticket on that... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schwarzer Sent: Friday, August 03, 2012 6:37 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 Hi there, I am struggling with a few changes I need to go through in order to make my code working now with mapserver 6.x. This one concerns the query part, when a user clicks on the map and a window with some metadata is being displayed. An error message occurred: "Catchable fatal error: Argument 1 passed to layerObj::getShape() must be an instance of resultObj, integer given" When I changed the getShape command as indicated here [1], it says: "Fatal error: Call to a member function getShape() on a non-object" This is the code: //Query the Map at the point clicked if (!$imgbox) @$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $a = $map -> queryByRect($click_rt); if ($a == MS_SUCCESS) { $numResults = $Layer -> getNumResults(); $oLayer = $map -> getLayer($Layer -> index); // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer -> open(); $oRes = $oLayer -> getResult(0); //$oShape = $oLayer -> getShape($oRes->tileindex,$oRes->shapeindex); // before $oShape = $layer -> getShape($oLayer -> getResult(0)); // now ?? while(list($key, $val) = each($oShape -> values)) { //echo "
x - ".count($selFields)." - ".$key . " = " . $val; if (($key <> "META_DATA") AND ($key <> "oid") AND ($key <> "id") AND ($key <> "uid")) $selFields[count($selFields)] = $key; } Not sure what I should put there... Thanks for any hints, Stefan [1] http://mapserver.org/MIGRATION_GUIDE.html _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From smccabe at imgs.ie Fri Aug 3 08:19:37 2012 From: smccabe at imgs.ie (Simon McCabe) Date: Fri, 3 Aug 2012 15:19:37 +0000 Subject: [mapserver-users] MapServer and ArcSDE Message-ID: <7C041A1F34BEF8498407B4E4CD4F6B7011882BA0@AMSPRD0310MB387.eurprd03.prod.outlook.com> Hi All, I have an ArcSDE 10 database in SQL server. Can you let me know the best approach to viewing this data in MapServer - for example, should I compile SDE support into MapServer or alternatively use the OGR approach to viewing it? Any hints would be much appreciated - I don't have a lot of experience with ArcSDE but have a lot with MapServer. Regards Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Aug 3 10:22:08 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 3 Aug 2012 17:22:08 +0000 Subject: [mapserver-users] Mapserver Template - Conditionals In-Reply-To: References: <5945BFD8BD8B4E2E89E7EDE23D8B21B8@DELLM4500> Message-ID: Hi Donald: To answer your questions... 1. You can't do an AND with [item ...] tags. They are single item only. We'd really need to introduce true conditionals into the templates. It's done a bit for legend templates but I don't know how much work is necessary to extend that. One work around idea would be to create a compound item if using a RDMS data source and write patterns against that. 2. Consider filing ticket for that one. Covers item 4 too. 3. I actually had something along those lines in mind at one point. I'll have to check my old notes. Note that if the patterns are mutually exclusive you can just write: [item name="A" pattern="1" format="Output1"][item name="B" pattern="2" format="Output2"][item name="C" pattern="3" format="Output3" nullformat="Output4"] The default format would just be the null format for one of these. But I agree this has it's limits... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Wednesday, July 25, 2012 2:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver Template - Conditionals Hi List, A few questions/points on templating: 1. I know it's possible to use "item" in a template as follows: [item name="featurecode" pattern="10021" format="BuildingsBuilding" escape=none] But, is it possible to do something like: [item featurecode="10021" pattern="1" AND item lineitem="12345" pattern="2" format="....."] That is, returns true of both, or more, criteria are met. The only other way I can think of doing this is in the SQL query that runs on the layer. 2. Also, when I use use [item ...] and the criteria isn't met, it still causes an additional blank line to be created in the output file. It would be quite good if it did not create the cr/lf. Maybe nullformat could be used to enforce this in some way but nullformat="" still creates a blank line. 3. It would be nice if the item tag could also deal with a case/select statement e.g. [item name="A" pattern="1" format="Output1"] ELSE [item name="B" pattern="2" format="Output2"] ELSE [item name="C" pattern="3" format="Output3"] DEFAULT [item name="D" pattern="4" format="Output4"] 4. And finally, when using: [resultset layer=LayerName] [feature] Two blank lines are created in the output file. It would be good if these tags didn't do that. Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Aug 3 12:45:03 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 3 Aug 2012 19:45:03 +0000 Subject: [mapserver-users] Basic Templating In-Reply-To: <000f01cd70f2$5934c700$0b9e5500$@com> References: <000f01cd70f2$5934c700$0b9e5500$@com> Message-ID: If you're using templates to present query results the template should be referenced in a layer. TEMPLATE in the web object is for mode=browse only and is generally not used much anymore. What does your query URL look like? The template you pasted below doesn't look to contain any references to layer attributes. It looks like just a stock browse template. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sowmya Tiramdasu Sent: Thursday, August 02, 2012 4:04 PM To: 'Mapserver-users' Subject: [mapserver-users] Basic Templating Hi , I am trying to implement templating taking the help of the mapserver tutorial. I created my own map file, which works fine. I get the output as desired when I use mode=map. Now I am trying to include a template for my example. I created a new template file 'gmapNew.html' . I added the reference to this template file in my map file. Yet When I am submitting a query, the template values are not being substituted correctly and so not getting my required result. ---------------------------------------------------------------------------------------------------------- The snippet of my map file where I am referencing my template file. MAP IMAGETYPE PNG EXTENT -9423052.40 4582638.15 -9414491.41 4589289.39 # extents of las file for 3875 using cs2cs #EXTENT 1525556.83 190608.70 1547770.63 207656.82 #las files #EXTENT -9435462.86 4562596.42 -9387971.96 4608897.38 # sbet lat lon to extent using cs2cs SIZE 1020 980 SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" #TRANSPARENT ON IMAGECOLOR 0 0 0 FONTSET "../fonts/fonts.list" PROJECTION #"init=epsg:2246" "init=epsg:3857" END WEB TEMPLATE "gmapNew.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_enable_request" "*" "wms_title" "WMS Lidar Server" "wms_onlineresource" "http://localhost:8080/keenland?" "wms_srs" "espg:32617" END END ..... ..... END ------------------------------------------------------------------------------------------------------------- My template file. Google/MapServer Tile Example

Map Controls
Set your zoom option:

Can anyone please help me . Any help is greatly appreciated. Thanks in advance! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Fri Aug 3 13:15:23 2012 From: traviskirstine at gmail.com (Travis Kirstine) Date: Fri, 3 Aug 2012 16:15:23 -0400 Subject: [mapserver-users] Image quality Message-ID: I am having issues with the output image quality of MapServer. I have a mapserver set up as a wms server up high res orthophoto images. The images are in tiled geotiff format with JPEG / YCBCR compression with internal gaussen overviews and referenced using a tile index in the mapfile with the PROCESSING RESAMPLE=BILINEAR directive. Mapserver 5.6.7 is set up using AGG with imagemode RGBA. I have noticed that the images generated have aliasing in areas of high contrast when viewing at various scales (full res seems fine). What is the optimal setup to reduce this effect? Regards From donald.kerr at dkerr.co.uk Fri Aug 3 13:23:38 2012 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Fri, 3 Aug 2012 21:23:38 +0100 Subject: [mapserver-users] Mapserver Template - Conditionals In-Reply-To: Message-ID: Steve, Thanks for your input again. I've filed a ticket for 2 and 4 as I think that would tidy things up a good deal. Although blank lines don't really cause any problem, it's a bit untidy and, if there are a load of "item" declarations, there can be a lot of blank lines. See ticket here: https://github.com/mapserver/mapserver/issues/4415 As for 1 and 3, I can get around that with case statements in Postgres SQL but I was trying to do it all in either SQL or the template rather than a bit of both. Thanks again. Regards. Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 03 August 2012 18:22 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Mapserver Template - Conditionals Hi Donald: To answer your questions... 1. You can't do an AND with [item ...] tags. They are single item only. We'd really need to introduce true conditionals into the templates. It's done a bit for legend templates but I don't know how much work is necessary to extend that. One work around idea would be to create a compound item if using a RDMS data source and write patterns against that. 2. Consider filing ticket for that one. Covers item 4 too. 3. I actually had something along those lines in mind at one point. I'll have to check my old notes. Note that if the patterns are mutually exclusive you can just write: [item name="A" pattern="1" format="Output1"][item name="B" pattern="2" format="Output2"][item name="C" pattern="3" format="Output3" nullformat="Output4"] The default format would just be the null format for one of these. But I agree this has it's limits... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Wednesday, July 25, 2012 2:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver Template - Conditionals Hi List, A few questions/points on templating: 1. I know it's possible to use "item" in a template as follows: [item name="featurecode" pattern="10021" format="BuildingsBuilding" escape=none] But, is it possible to do something like: [item featurecode="10021" pattern="1" AND item lineitem="12345" pattern="2" format="....."] That is, returns true of both, or more, criteria are met. The only other way I can think of doing this is in the SQL query that runs on the layer. 2. Also, when I use use [item ...] and the criteria isn't met, it still causes an additional blank line to be created in the output file. It would be quite good if it did not create the cr/lf. Maybe nullformat could be used to enforce this in some way but nullformat="" still creates a blank line. 3. It would be nice if the item tag could also deal with a case/select statement e.g. [item name="A" pattern="1" format="Output1"] ELSE [item name="B" pattern="2" format="Output2"] ELSE [item name="C" pattern="3" format="Output3"] DEFAULT [item name="D" pattern="4" format="Output4"] 4. And finally, when using: [resultset layer=LayerName] [feature] Two blank lines are created in the output file. It would be good if these tags didn't do that. Many thanks. Regards, Donald _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From even.rouault at mines-paris.org Fri Aug 3 14:56:33 2012 From: even.rouault at mines-paris.org (Even Rouault) Date: Fri, 3 Aug 2012 23:56:33 +0200 Subject: [mapserver-users] [gdal-dev] Spatialite tables with multiple geometry columns In-Reply-To: <1343985459.501b9733af310@imp.free.fr> References: <1343985459.501b9733af310@imp.free.fr> Message-ID: <201208032356.33345.even.rouault@mines-paris.org> Andrea created http://trac.osgeo.org/gdal/ticket/4768 and I've just committed the code in trunk to add that support. I've tested it with a tiny sample just made for the unit test. No reason it should not work with more complex DBs, but testing appreciated. From aperi2007 at gmail.com Fri Aug 3 16:19:06 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 4 Aug 2012 01:19:06 +0200 Subject: [mapserver-users] Using spatialite with mapserver In-Reply-To: <84446DEF76453C439E9E97E438E13A634622A6@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A634622A6@suutari.haapa.mmm.fi> Message-ID: Hi the 200.000 limit was effectively an invalid geometries, thx. About the multi-geometry question. I'm try-ing the option DATA 'table(geometry)' but I have a secondary problem. Infact this sintax seem deny the access to other fields. So was impossible to set a label. I'm missing something ? Thx, Andrea 2012/8/3 Rahkonen Jukka > Hi,**** > > ** ** > > I correct myself, support for multiple geometry columns is not a bug but a > missing feature. I just wrote about it into GDAL-dev list. Let?s see what > happens.**** > > ** ** > > When it comes to error with ?limit 200000? I believe that the real problem > is in a different place. I bet that there is a faulty geometry somewhere > between 20000 and 200000 geometries. In that case OGR throws an error and > stops. For Mapserver users it would be extremely much better if OGR in such > case just skips the error and continues. I know the issue because it is > common with OpenSteetMap polygons. As a workaround I have myself just > deleted all the non-valid geometries from Spatialite with ?delete from > table where ST_IsValid(geometry)=0?.**** > > ** ** > > -Jukka Rahkonen-**** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > ** ** > > Andrea Peri wrote:**** > > ** ** > > > >This looks like an OGR bug, I have correct info in views_geometry_columns > (refering to > >geom2 of the main table) and in geometry_columns (both geom1 and geom2 > has > >records). > > > >For now, forget multiple geometries and create new single geometry tables > and enjoy the > >speed of Spatialite and Mapserver. > > > >-Jukka Rahkonen- > > thx Jukka, > > Is an unpleasant situation this ogr bug. > My table af many fields attribute . it is about 15 Gbyte (gasp!) > so split it in two tables so separate the geometries is not a beatiful > action. :) > > But I'm notice another question. > > Infact after remove the secondary geometries (sigh), I can see that there > is a strange liit due to numer of elements. > Infact Mapserver work with this sql: > > DATA 'SELECT field1, field2, field3, geometry from table LIMIT 20000' > > but don't work with this other sql: > > DATA 'SELECT field1, field2, field3, geometry from table LIMIT 200000' > > Seem there is a max number of elements retrieval. > The strange is that with this second sql MapServer don't do nothing. > Simply it end its work without generate no map. > No error log report is write. > > Perhaps there is a setting to say how much memory mapserver (or ogr) must > use for resultset from DB ? > > Thx. > > **** > > 2012/8/2 Rahkonen Jukka **** > > Hi again, > > Tried what ogrinfo sees in case of two geometries. It does not look good. > > FID Column = rowid > Geometry Column = geom1 > geom2: Binary (0.0) > OGRFeature(test2):1 > geom2 (Binary) = > 0001110F0000958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412 > 6C76C9BD95A... > POINT (1436841.2324912299 6908774.4285142776) > > OGRFeature(test2):2 > geom2 (Binary) = > 0001110F000081AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F > B1B8FFA035B... > POINT (1437614.9808758798 6908943.9149846984) > > So that means than only the first geometry can be user with OGR. Next I > tried to create a spatial view with spatialite-gui by selecting only geom2 > into the view. This fails too > > D:\ms4w\data>ogrinfo berlin.sqlite test3 > INFO: Open of `berlin.sqlite' > using driver `SQLite' successful. > ERROR 1: Underlying layer test2 for view test3 has not expected geometry > column > name (geom1 instead of geom2) > > Layer name: test3 > Geometry: Unknown (any) > Feature Count: 0 > Layer SRS WKT: > (unknown) > FID Column = ROWID > Geometry Column = geom2 > > This looks like an OGR bug, I have correct info in views_geometry_columns > (refering to geom2 of the main table) and in geometry_columns (both geom1 > and geom2 has records). > > For now, forget multiple geometries and create new single geometry tables > and enjoy the speed of Spatialite and Mapserver. > > -Jukka Rahkonen- > > > ________________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] käyttäjän > Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] puolesta > L?hetetty: 3. elokuuta 2012 0:27 > Vastaanottaja: Andrea Peri; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Using spatialite with mapserver**** > > > Hi, > > The SELECT alternative works fine for me but I do not have multiple > geometries. I made a very fast test on Spatialite side and it seems to be > possible to run "Recover geometry column" and "Create spatial index" for > multiple geometries but I did not test the result with Mapserver. > > I would recommend you to check first your geometry_columns table and see > it there is a line for the geometry you want to use and if spatial index is > OK. If they are OK make a simplified test. Create a single geometry table as > CREATE table test as > SELECT geom1, attr1... FROM... > Do "Recover geometry column" and "Create spatial index" things for the new > table and have a try with Mapserver. > > GDAL version must be 1.9 or higher or things will be far too slow. > This document may also be useful for you > http://latuviitta.org/documents/Super_easy_WMS_server.pdf > > -Jukka Rahkonen- > > > > > > ________________________________ > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [ > mapserver-users-bounces at lists.osgeo.org] k?ytt?j?n Andrea Peri [ > aperi2007 at gmail.com] puolesta > L?hetetty: 2. elokuuta 2012 23:03 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Using spatialite with mapserver > > Hi, > I'm try-ing to use spatialite with mapserver. > > is this mapfile configuration ok for spatialite ? > > CONNECTIONTYPE OGR > CONNECTION '/..path-to../spatialite_file.sqlite' > DATA 'SELECT field1, field2, field3, geometry from table' > > It seem don't work. > > Instead work perfectly this other configuration: > > CONNECTIONTYPE OGR > CONNECTION > '/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite' > DATA 'table' > > Unfortunately this second configuration don't allow to choose the geometry > field , necessary when spatialite table as two or more geometry field. > > 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 ????? > -----------------**** > > _______________________________________________ > 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 aperi2007 at gmail.com Sat Aug 4 02:54:31 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 4 Aug 2012 11:54:31 +0200 Subject: [mapserver-users] Spatialite tables with multiple geometry columns Message-ID: Hi Roualt, thx for patch, I'm go to test it. Just a question to understand how use it. the sintax 'TABLE(GEOMETRY)' should return also the attributes from table or only the geometry without attribute ? regards, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Aug 4 06:17:22 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 4 Aug 2012 13:17:22 +0000 Subject: [mapserver-users] Spatialite tables with multiple geometry columns In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63462595@suutari.haapa.mmm.fi> Hi, I can't test myself right now because I cannot access gisinternals.com for getting a fresh Windows build. However, I for using geom2 of a multigeom table would try with DATA 'SELECT geom2,attr1,attr2.... FROM table' You can also create a spatial view which selects geom2 on the Spatialite side and use then simply DATA 'view' Another advantage in creating spatial view is that they can be used directly in QGis once it will have fresh enough GDAL version. I am remembering that QGis cannot make layers from Spatialite with SQL queries. -Jukka Rahkonen- ________________________________ Andrea Peri wrote: > Hi Roualt, > thx for patch, > I'm go to test it. > Just a question to understand how use it. > the sintax 'TABLE(GEOMETRY)' should return also the attributes from table or only the geometry without attribute ? > regards, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From aperi2007 at gmail.com Sat Aug 4 07:08:02 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sat, 4 Aug 2012 16:08:02 +0200 Subject: [mapserver-users] Spatialite tables with multiple geometry columns In-Reply-To: <84446DEF76453C439E9E97E438E13A63462595@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63462595@suutari.haapa.mmm.fi> Message-ID: thx Jukka for response. I'll try it just now. >I am remembering that QGis cannot make layers from Spatialite with SQL queries. (sorry for OT) there is a plugin for this it is named RT_Sql_Layer (RT is for "Regiony Tuscany".) It allow to define a layer as sqlquery directly on the DB for Postgres and for Spatialite. You must define a spatialite connection using the spatialite provider and after you can launch the plugin choose that connection and define a sql layer to add to the canvas. Best regards, Andrea. 2012/8/4 Rahkonen Jukka > Hi, > > I can't test myself right now because I cannot access gisinternals.comfor getting a fresh Windows build. However, I for using geom2 of a > multigeom table would try with > > DATA 'SELECT geom2,attr1,attr2.... FROM table' > > You can also create a spatial view which selects geom2 on the Spatialite > side and use then simply > DATA 'view' > > Another advantage in creating spatial view is that they can be used > directly in QGis once it will have fresh enough GDAL version. I am > remembering that QGis cannot make layers from Spatialite with SQL queries. > > -Jukka Rahkonen- > > > ________________________________ > Andrea Peri wrote: > > > Hi Roualt, > > > thx for patch, > > > I'm go to test it. > > Just a question to understand how use it. > > > the sintax 'TABLE(GEOMETRY)' should return also the attributes from > table or only the geometry without attribute ? > > > regards, > > -- > ----------------- > 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 phloidster at yahoo.com Sat Aug 4 08:39:50 2012 From: phloidster at yahoo.com (phloidster at yahoo.com) Date: Sat, 4 Aug 2012 08:39:50 -0700 (PDT) Subject: [mapserver-users] (no subject) Message-ID: <1344094790.89356.YahooMailNeo@web124505.mail.ne1.yahoo.com> http://directhittest.com/images/wt2eqrit.php 8/4/2012 8:39:26 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Sun Aug 5 00:49:48 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 5 Aug 2012 09:49:48 +0200 Subject: [mapserver-users] Spatialite tables with multiple geometry columns Message-ID: Hi EDven, I try to use the your patch with gdal and mapserer. Now I'm able to choose the right geometry from a multi-geometry table. also I see that using this sintax CONNECTIONTYPE OGR CONNECTION '/path-to-splite/database.sqlite' DATA "select pk_uid,field1,field2,field3,geometry from table1" I'm able to see with mapserver a map with geometries and labels. I test it on a quite huge dataset with a spatial-index and it response really fast. All seem good. But I experience just a secondary no good effect: If I try to do an identify (a GetFeatureInfo request) on the map I'm having always a >GetFeatureInfo results: > > Search returned no results. I have verify that the pk_uid field was a primary key. So perhaps this could be a secondary effect of your patch ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at unep.org Mon Aug 6 04:48:18 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Mon, 6 Aug 2012 13:48:18 +0200 Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 In-Reply-To: References: <080577E3-5146-4D30-BFDC-5A60BBE260E2@unep.org> Message-ID: Thanks a lot, Steve. However, I had tried this out before, but "getResult($)"? I think this is Perl, no? In PHP this would be different? Sorry for a dumb question? Stefan > The query code underwent major changes between 5.6 and 6.0 and one casualty was query processing like you're doing. On the bright side it's much more straight forward now. The general steps for a layer-based query is now just: > > $layer->queryByRect($map, $rect); # layer is left open after a query operation > > for($i=0; $i<$layer->getNumResults(); $i++) { > $shape = $layer->getShape($layer->getResult($)); # much simpler > # do something with the shape > } > > I see the MapScript/Swig query docs are woefully out of date. I'll file a ticket on that... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schwarzer > Sent: Friday, August 03, 2012 6:37 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 > > Hi there, > > I am struggling with a few changes I need to go through in order to make my code working now with mapserver 6.x. This one concerns the query part, when a user clicks on the map and a window with some metadata is being displayed. > > An error message occurred: > > "Catchable fatal error: Argument 1 passed to layerObj::getShape() must be an instance of resultObj, integer given" > > When I changed the getShape command as indicated here [1], it says: > > "Fatal error: Call to a member function getShape() on a non-object" > > > This is the code: > > //Query the Map at the point clicked > if (!$imgbox) > @$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); > else > $a = $map -> queryByRect($click_rt); > > if ($a == MS_SUCCESS) > { > > $numResults = $Layer -> getNumResults(); > $oLayer = $map -> getLayer($Layer -> index); > > // Open layer's table... take the list of fields to display from > // the "HEADERRESULT_FIELDS" metadata in the layer object. > $oLayer -> open(); > > $oRes = $oLayer -> getResult(0); > //$oShape = $oLayer -> getShape($oRes->tileindex,$oRes->shapeindex); // before > $oShape = $layer -> getShape($oLayer -> getResult(0)); // now ?? > > > while(list($key, $val) = each($oShape -> values)) > { > //echo "
x - ".count($selFields)." - ".$key . " = " . $val; > if (($key <> "META_DATA") AND ($key <> "oid") AND ($key <> "id") AND ($key <> "uid")) > $selFields[count($selFields)] = $key; > } > > > > Not sure what I should put there... > > Thanks for any hints, > > Stefan > > > [1] http://mapserver.org/MIGRATION_GUIDE.html > _______________________________________________ > 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 Aug 6 05:56:51 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 6 Aug 2012 12:56:51 +0000 Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 In-Reply-To: References: <080577E3-5146-4D30-BFDC-5A60BBE260E2@unep.org> , Message-ID: Yup, sorry it's Perl. The getResult($) should be getResult($i). Syntax for PHP should be pretty close I think, method names are the same. Steve ________________________________________ From: Stefan Schwarzer [stefan.schwarzer at unep.org] Sent: Monday, August 06, 2012 6:48 AM To: mapserver-users at lists.osgeo.org Cc: Lime, Steve D (DNR) Subject: Re: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 Thanks a lot, Steve. However, I had tried this out before, but "getResult($)"? I think this is Perl, no? In PHP this would be different? Sorry for a dumb question? Stefan > The query code underwent major changes between 5.6 and 6.0 and one casualty was query processing like you're doing. On the bright side it's much more straight forward now. The general steps for a layer-based query is now just: > > $layer->queryByRect($map, $rect); # layer is left open after a query operation > > for($i=0; $i<$layer->getNumResults(); $i++) { > $shape = $layer->getShape($layer->getResult($)); # much simpler > # do something with the shape > } > > I see the MapScript/Swig query docs are woefully out of date. I'll file a ticket on that... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stefan Schwarzer > Sent: Friday, August 03, 2012 6:37 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] getShape failing; changes from mapserver 5.6 to 6.0 > > Hi there, > > I am struggling with a few changes I need to go through in order to make my code working now with mapserver 6.x. This one concerns the query part, when a user clicks on the map and a window with some metadata is being displayed. > > An error message occurred: > > "Catchable fatal error: Argument 1 passed to layerObj::getShape() must be an instance of resultObj, integer given" > > When I changed the getShape command as indicated here [1], it says: > > "Fatal error: Call to a member function getShape() on a non-object" > > > This is the code: > > //Query the Map at the point clicked > if (!$imgbox) > @$a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); > else > $a = $map -> queryByRect($click_rt); > > if ($a == MS_SUCCESS) > { > > $numResults = $Layer -> getNumResults(); > $oLayer = $map -> getLayer($Layer -> index); > > // Open layer's table... take the list of fields to display from > // the "HEADERRESULT_FIELDS" metadata in the layer object. > $oLayer -> open(); > > $oRes = $oLayer -> getResult(0); > //$oShape = $oLayer -> getShape($oRes->tileindex,$oRes->shapeindex); // before > $oShape = $layer -> getShape($oLayer -> getResult(0)); // now ?? > > > while(list($key, $val) = each($oShape -> values)) > { > //echo "
x - ".count($selFields)." - ".$key . " = " . $val; > if (($key <> "META_DATA") AND ($key <> "oid") AND ($key <> "id") AND ($key <> "uid")) > $selFields[count($selFields)] = $key; > } > > > > Not sure what I should put there... > > Thanks for any hints, > > Stefan > > > [1] http://mapserver.org/MIGRATION_GUIDE.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From radim.blazek at gmail.com Mon Aug 6 12:15:39 2012 From: radim.blazek at gmail.com (Radim Blazek) Date: Mon, 6 Aug 2012 21:15:39 +0200 Subject: [mapserver-users] demo.mapserver.org source Message-ID: Hi, where can I find data and mapfiles used by services running on demo.mapserver.org? Radim From Bob.Bistrais at maine.gov Mon Aug 6 12:21:08 2012 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 6 Aug 2012 19:21:08 +0000 Subject: [mapserver-users] Probelms with GM in Fast CGI Message-ID: We have been experiencing problems with GeoMoose 2.6 when MapServer is running in Fast CGI mode. This relates to problems I've reported in the past, we finally figured out that it was the Fast CGI. When we have MapServer in Fast CGI mode, my queries and Identify operations have failed, timed out, and did not return results. We can set MapServer to run in the normal mode, but this causes significant issues with the draw times of our WMS services. It's important that we resolve this problem as soon as possible. Is there a solution or workaround to this issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Aug 6 12:49:41 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 06 Aug 2012 16:49:41 -0300 Subject: [mapserver-users] demo.mapserver.org source In-Reply-To: References: Message-ID: <50201FD5.50300@gatewaygeomatics.com> On 12-08-06 4:15 PM, Radim Blazek wrote: > Hi, > where can I find data and mapfiles used by services running on > demo.mapserver.org? > > Radim Hello Radim, Through the years I have been posting demos on demo.mapserver.org and you can see that it is has become a wonderful resource. The files are not available for download, but I will try to post them. If anyone wonders, this important site is actually hosted on OSGeo's "AdhocVM" (http://wiki.osgeo.org/wiki/MapServer_at_AdhocVM); unfortunately there is no backup for this virtual machine and we've lost many files over the years. But I do my best to maintain it. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From richard.greenwood at gmail.com Mon Aug 6 20:06:55 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 6 Aug 2012 21:06:55 -0600 Subject: [mapserver-users] MapServer 6.2.0 beta2 release In-Reply-To: References: Message-ID: I'm having a problem with the rendering of one of my layers with 6.2. It's probably not a bug but rather that I'm doing something wrong. My map file: SYMBOL NAME 'solid' TYPE ellipse POINTS 1 1 END FILLED true END LAYER ..... CLASS NAME "Zone X Shaded" EXPRESSION /^X, SHADED/ STYLE SYMBOL 'solid' COLOR 128 128 128 GAP 1 END END END See the two attached images for the different renderings. mapserv-6.0.gif is the desired rendering, mapserv-6.2.gif is the rendering of the same map file with MapServer 6.2 beta2. Any suggestions as to what I'm doing wrong? Thanks, Rich On Wed, Aug 1, 2012 at 3:51 AM, thomas bonfort wrote: > The MapServer Team is pleased to announce the release of MapServer > 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, > and contains several fixes that we encourage you to test. Our initially > planned date of a release beginning of August has slipped a bit, the > updated release plan that can be viewed at > > https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan > > We however have only a few bugs left to resolve for our final release, > so we hope this beta phase will be over in the next couple of weeks. > > The changelog since beta1 can be consulted here: > > http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html > > The source for this release can be downloaded at: > > http://mapserver.org/download.html > or > http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz > > The binary distributions listed in the download page should be updated > with binaries for the new 6.2.0-beta2 release in the next couple of days. > > Once again we need your help to ensure a high quality product, so > please help out by testing your applications with this new code base. > > Thanks! - The MapServer Team > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-6.0.gif Type: image/gif Size: 2219 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-6.2.gif Type: image/gif Size: 1382 bytes Desc: not available URL: From woodbri at swoodbridge.com Mon Aug 6 21:16:56 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 07 Aug 2012 00:16:56 -0400 Subject: [mapserver-users] MapServer 6.2.0 beta2 release In-Reply-To: References: Message-ID: <502096B8.4070403@swoodbridge.com> What does your OUTPUTFORMAT block(s) look like? are you using the sameone for both? -Steve W On 8/6/2012 11:06 PM, Richard Greenwood wrote: > I'm having a problem with the rendering of one of my layers with 6.2. > It's probably not a bug but rather that I'm doing something wrong. My > map file: > > SYMBOL > NAME 'solid' > TYPE ellipse > POINTS 1 1 END > FILLED true > END > > LAYER > ..... > CLASS > NAME "Zone X Shaded" > EXPRESSION /^X, SHADED/ > STYLE > SYMBOL 'solid' > COLOR 128 128 128 > GAP 1 > END > END > END > > See the two attached images for the different renderings. > mapserv-6.0.gif is the desired rendering, mapserv-6.2.gif is the > rendering of the same map file with MapServer 6.2 beta2. > > Any suggestions as to what I'm doing wrong? > > Thanks, > Rich > > > > On Wed, Aug 1, 2012 at 3:51 AM, thomas bonfort wrote: >> The MapServer Team is pleased to announce the release of MapServer >> 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, >> and contains several fixes that we encourage you to test. Our initially >> planned date of a release beginning of August has slipped a bit, the >> updated release plan that can be viewed at >> >> https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan >> >> We however have only a few bugs left to resolve for our final release, >> so we hope this beta phase will be over in the next couple of weeks. >> >> The changelog since beta1 can be consulted here: >> >> http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html >> >> The source for this release can be downloaded at: >> >> http://mapserver.org/download.html >> or >> http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz >> >> The binary distributions listed in the download page should be updated >> with binaries for the new 6.2.0-beta2 release in the next couple of days. >> >> Once again we need your help to ensure a high quality product, so >> please help out by testing your applications with this new code base. >> >> Thanks! - The MapServer Team >> _______________________________________________ >> 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 radim.blazek at gmail.com Tue Aug 7 03:38:25 2012 From: radim.blazek at gmail.com (Radim Blazek) Date: Tue, 7 Aug 2012 12:38:25 +0200 Subject: [mapserver-users] WCS 1.1 TimeSequence Message-ID: Hi, it seems that WCS 1.1 (mapserver 6.0.3) completely ignores TemporalDomain. Some code (copy-pasted from 1.0) is commented in msWCSDescribeCoverage_CoverageDescription11() and GetCoverage TimeSequence param is not supported at all. If a coverage is defined with timeposition in mapfile, the result of GetCoverage is empty raster (all values 0). Anybody was able to get WCS 1.1 with timeposition working? Unfortunately 3 of 4 coverages on http://demo.mapserver.org/cgi-bin/wcs are using timeposition and those coverages do not work with WCS 1.1. I am working on WCS client in QGIS, it supports WCS 1.0 and 1.1 and prefers 1.1. One of the most obvious first tests - demo.mapserver.org fails. Would not it be better to set demo.mapserver.org to default in 1.0 if one of features configured in mapfile is not fully supported by 1.1? Radim From luis.a.de.sousa at gmail.com Tue Aug 7 07:33:44 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 7 Aug 2012 16:33:44 +0200 Subject: [mapserver-users] Getting introduced to MapScript In-Reply-To: References: <1343834079845-4992463.post@n6.nabble.com> <50194D78.7020401@swoodbridge.com> <1343891434685-4992604.post@n6.nabble.com> <501AAC5A.5010507@swoodbridge.com> <1343980189233-4992863.post@n6.nabble.com> <1343980541110-4992866.post@n6.nabble.com> Message-ID: On 3 August 2012 13:34, Cristiano Sumariva wrote: > You can set the type and data attributes directly, in fact you need do that > for the layerobj works properly. > After you create the layerobj you need set those attributes directly. > > How to set them depends on language you use. > With PHP Mapscript you can do this ( that would be similar to other > languages ): > $layer = ms_newLayerObj( mapOwner ); > // here the weird thing the layerObj constructor did not set the layer type > not even required it to initialize the layerobj. > $layer->set( 'type', MS_LAYER_POLYGON ); > $layer->set( 'data', '/absolute/or/../relative/toyourfile.gml' ); > Dear Cristiano, thank you for the reply. As you can see below, the set method is raising exceptions when I invoke it the way you suggest. Apparently, attributes like NAME or SHAPEPATH are unknown to MapScript. This was run directly in the Python console. Any other suggestions are welcome. Thank you, Lu?s >>> from mapscript import * >>> mapObj = mapObj() >>> mapObj.setExtent(91979,436326,92617,437659.5) 0 >>> mapObj.setProjection("epsg:28992") 0 >>> newLayer = layerObj(mapObj) >>> newLayer.setMetaData("DESCRIPTION", "MyLayer") 0 >>> newLayer.setMetaData("ows_title", "MyLayer") 0 >>> newLayer.set("NAME", "MyLayer") Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py", line 1192, in __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name) File "/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py", line 34, in _swig_getattr raise AttributeError,name AttributeError: set NameError: name 'self' is not defined >>> mapObj.set("SHAPEPATH", "/tmp/shapes") Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py", line 1434, in __getattr__ = lambda self, name: _swig_getattr(self, mapObj, name) File "/usr/local/lib/python2.7/dist-packages/MapScript-6.0.1-py2.7-linux-x86_64.egg/mapscript.py", line 34, in _swig_getattr raise AttributeError,name AttributeError: set >>> From gisyangli at gmail.com Tue Aug 7 07:36:07 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Tue, 7 Aug 2012 22:36:07 +0800 Subject: [mapserver-users] MapServer configure question with PHP/MapScript Module Message-ID: Hi, Everyone. I want to compile mapserver from source. Both the mapserver readme.configure file and the instuctionpost here ( http://www.mapserver.org/installation/php.html) tell me "pass the *?with-php=DIR* argument to the configure script", As the guide say, the "DIR" will be PHP sourcecode folder, but in my ubuntu 12.04 platform, it take aPHP5, no need to compile PHP from source. So I am confused, which folder should I assign? by the way, I "locate php5" on the shell and got the result below: /etc/php5 /etc/apache2/mods-available/php5.conf /etc/apache2/mods-available/php5.load /etc/apache2/mods-enabled/php5.conf /etc/apache2/mods-enabled/php5.load /etc/apparmor.d/abstractions/php5 /etc/cron.d/php5 /etc/php5/apache2 /etc/php5/cli /etc/php5/conf.d /etc/php5/apache2/conf.d /etc/php5/apache2/php.ini /etc/php5/cli/conf.d /etc/php5/cli/php.ini /etc/php5/conf.d/curl.ini /etc/php5/conf.d/mysql.ini /etc/php5/conf.d/mysqli.ini /etc/php5/conf.d/pdo.ini /etc/php5/conf.d/pdo_mysql.ini /usr/bin/php5 /usr/lib/php5 /usr/lib/apache2/modules/libphp5.so /usr/lib/php5/20090626 /usr/lib/php5/libexec /usr/lib/php5/maxlifetime /usr/lib/php5/20090626/curl.so /usr/lib/php5/20090626/mysql.so /usr/lib/php5/20090626/mysqli.so /usr/lib/php5/20090626/pdo.so /usr/lib/php5/20090626/pdo_mysql.so /usr/share/php5 /usr/share/apport/package-hooks/source_php5.py /usr/share/doc/libapache2-mod-php5 /usr/share/doc/php5-cli /usr/share/doc/php5-common /usr/share/doc/php5-curl /usr/share/doc/php5-mysql /usr/share/doc/php5-common/CODING_STANDARDS.gz /usr/share/doc/php5-common/CREDITS /usr/share/doc/php5-common/EXTENSIONS.gz /usr/share/doc/php5-common/NEWS.Debian.gz /usr/share/doc/php5-common/README.Debian.gz /usr/share/doc/php5-common/README.Debian.security /usr/share/doc/php5-common/README.EXT_SKEL.gz /usr/share/doc/php5-common/README.PHP4-TO-PHP5-THIN-CHANGES.gz /usr/share/doc/php5-common/README.SELF-CONTAINED-EXTENSIONS.gz /usr/share/doc/php5-common/README.SVN-RULES.gz /usr/share/doc/php5-common/README.Zeus.gz /usr/share/doc/php5-common/TODO.gz /usr/share/doc/php5-common/changelog.Debian.gz /usr/share/doc/php5-common/copyright /usr/share/doc/php5-common/examples /usr/share/doc/php5-common/test-results.txt.gz /usr/share/doc/php5-common/examples/php.ini-development /usr/share/lintian/overrides/libapache2-mod-php5 /usr/share/lintian/overrides/php5-cli /usr/share/lintian/overrides/php5-common /usr/share/man/man1/php5.1.gz /usr/share/php5/php.ini-production /usr/share/php5/php.ini-production-dist /usr/share/php5/php.ini-production.cli /var/cache/apt/archives/libapache2-mod-php5_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-cli_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-common_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.2_amd64.deb /var/cache/apt/archives/php5-mysql_5.3.10-1ubuntu3.2_amd64.deb /var/lib/php5 /var/lib/dpkg/info/libapache2-mod-php5.conffiles /var/lib/dpkg/info/libapache2-mod-php5.list /var/lib/dpkg/info/libapache2-mod-php5.md5sums /var/lib/dpkg/info/libapache2-mod-php5.postinst /var/lib/dpkg/info/libapache2-mod-php5.postrm /var/lib/dpkg/info/libapache2-mod-php5.prerm /var/lib/dpkg/info/libapache2-mod-php5.triggers /var/lib/dpkg/info/php5-cli.list /var/lib/dpkg/info/php5-cli.md5sums /var/lib/dpkg/info/php5-cli.postinst /var/lib/dpkg/info/php5-cli.postrm /var/lib/dpkg/info/php5-cli.prerm /var/lib/dpkg/info/php5-common.conffiles /var/lib/dpkg/info/php5-common.list /var/lib/dpkg/info/php5-common.md5sums /var/lib/dpkg/info/php5-common.postrm /var/lib/dpkg/info/php5-curl.conffiles /var/lib/dpkg/info/php5-curl.list /var/lib/dpkg/info/php5-curl.md5sums /var/lib/dpkg/info/php5-mysql.conffiles /var/lib/dpkg/info/php5-mysql.list /var/lib/dpkg/info/php5-mysql.md5sums Best Regards, -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlarouche at mapgears.com Tue Aug 7 07:39:09 2012 From: jlarouche at mapgears.com (Jerome Villeneuve Larouche) Date: Tue, 07 Aug 2012 10:39:09 -0400 Subject: [mapserver-users] MapServer configure question with PHP/MapScript Module In-Reply-To: References: Message-ID: <5021288D.4010708@mapgears.com> Hello, I'm pretty sure that you could just write --with-php without any arguments and it would work. On 12-08-07 10:36 AM, ?? wrote: > Hi, Everyone. > > I want to compile mapserver from source. > > Both the mapserver readme.configure file and the instuctionpost here > (http://www.mapserver.org/installation/php.html) tell me > "pass the /--with-php=DIR/ argument to the configure script", > > As the guide say, the "DIR" will be PHP sourcecode folder, but in my > ubuntu 12.04 platform, it take aPHP5, no need to compile PHP from > source. So I am confused, which folder should I assign? > > by the way, I "locate php5" on the shell and got the result below: > /etc/php5 > /etc/apache2/mods-available/php5.conf > /etc/apache2/mods-available/php5.load > /etc/apache2/mods-enabled/php5.conf > /etc/apache2/mods-enabled/php5.load > /etc/apparmor.d/abstractions/php5 > /etc/cron.d/php5 > /etc/php5/apache2 > /etc/php5/cli > /etc/php5/conf.d > /etc/php5/apache2/conf.d > /etc/php5/apache2/php.ini > /etc/php5/cli/conf.d > /etc/php5/cli/php.ini > /etc/php5/conf.d/curl.ini > /etc/php5/conf.d/mysql.ini > /etc/php5/conf.d/mysqli.ini > /etc/php5/conf.d/pdo.ini > /etc/php5/conf.d/pdo_mysql.ini > /usr/bin/php5 > /usr/lib/php5 > /usr/lib/apache2/modules/libphp5.so > /usr/lib/php5/20090626 > /usr/lib/php5/libexec > /usr/lib/php5/maxlifetime > /usr/lib/php5/20090626/curl.so > /usr/lib/php5/20090626/mysql.so > /usr/lib/php5/20090626/mysqli.so > /usr/lib/php5/20090626/pdo.so > /usr/lib/php5/20090626/pdo_mysql.so > /usr/share/php5 > /usr/share/apport/package-hooks/source_php5.py > /usr/share/doc/libapache2-mod-php5 > /usr/share/doc/php5-cli > /usr/share/doc/php5-common > /usr/share/doc/php5-curl > /usr/share/doc/php5-mysql > /usr/share/doc/php5-common/CODING_STANDARDS.gz > /usr/share/doc/php5-common/CREDITS > /usr/share/doc/php5-common/EXTENSIONS.gz > /usr/share/doc/php5-common/NEWS.Debian.gz > /usr/share/doc/php5-common/README.Debian.gz > /usr/share/doc/php5-common/README.Debian.security > /usr/share/doc/php5-common/README.EXT_SKEL.gz > /usr/share/doc/php5-common/README.PHP4-TO-PHP5-THIN-CHANGES.gz > /usr/share/doc/php5-common/README.SELF-CONTAINED-EXTENSIONS.gz > /usr/share/doc/php5-common/README.SVN-RULES.gz > /usr/share/doc/php5-common/README.Zeus.gz > /usr/share/doc/php5-common/TODO.gz > /usr/share/doc/php5-common/changelog.Debian.gz > /usr/share/doc/php5-common/copyright > /usr/share/doc/php5-common/examples > /usr/share/doc/php5-common/test-results.txt.gz > /usr/share/doc/php5-common/examples/php.ini-development > /usr/share/lintian/overrides/libapache2-mod-php5 > /usr/share/lintian/overrides/php5-cli > /usr/share/lintian/overrides/php5-common > /usr/share/man/man1/php5.1.gz > /usr/share/php5/php.ini-production > /usr/share/php5/php.ini-production-dist > /usr/share/php5/php.ini-production.cli > /var/cache/apt/archives/libapache2-mod-php5_5.3.10-1ubuntu3.2_amd64.deb > /var/cache/apt/archives/php5-cli_5.3.10-1ubuntu3.2_amd64.deb > /var/cache/apt/archives/php5-common_5.3.10-1ubuntu3.2_amd64.deb > /var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.2_amd64.deb > /var/cache/apt/archives/php5-mysql_5.3.10-1ubuntu3.2_amd64.deb > /var/lib/php5 > /var/lib/dpkg/info/libapache2-mod-php5.conffiles > /var/lib/dpkg/info/libapache2-mod-php5.list > /var/lib/dpkg/info/libapache2-mod-php5.md5sums > /var/lib/dpkg/info/libapache2-mod-php5.postinst > /var/lib/dpkg/info/libapache2-mod-php5.postrm > /var/lib/dpkg/info/libapache2-mod-php5.prerm > /var/lib/dpkg/info/libapache2-mod-php5.triggers > /var/lib/dpkg/info/php5-cli.list > /var/lib/dpkg/info/php5-cli.md5sums > /var/lib/dpkg/info/php5-cli.postinst > /var/lib/dpkg/info/php5-cli.postrm > /var/lib/dpkg/info/php5-cli.prerm > /var/lib/dpkg/info/php5-common.conffiles > /var/lib/dpkg/info/php5-common.list > /var/lib/dpkg/info/php5-common.md5sums > /var/lib/dpkg/info/php5-common.postrm > /var/lib/dpkg/info/php5-curl.conffiles > /var/lib/dpkg/info/php5-curl.list > /var/lib/dpkg/info/php5-curl.md5sums > /var/lib/dpkg/info/php5-mysql.conffiles > /var/lib/dpkg/info/php5-mysql.list > /var/lib/dpkg/info/php5-mysql.md5sums > > Best Regards, > > > > -- > Yang Li > GIS Developer > P.R.China > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Jerome Villeneuve Larouche Mapgears www.mapgears.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Tue Aug 7 08:04:14 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 7 Aug 2012 15:04:14 +0000 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> Hello, I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees anything wrong with this layer let me know. LAYER NAME 'Townships' TYPE POLYGON DATA './LyonCounty/Boundaries/Townships' MINSCALEDENOM 15000 STATUS DEFAULT TRANSPARENCY 100 CLASSITEM "COLOR" CLASS NAME 'Townships' EXPRESSION 'T' STYLE ####### THIS IS WHERE MS CRASHED DUE TO "Unknown identifier. Parsing error near (STYLE):(line 109)" #SYMBOL 'hatch-test' COLOR 170 170 170 SIZE 2 WIDTH 1 END #STYLE END #class END # townships layer Thank you for your help Mark From richard.greenwood at gmail.com Tue Aug 7 08:52:14 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 7 Aug 2012 09:52:14 -0600 Subject: [mapserver-users] MapServer 6.2.0 beta2 release In-Reply-To: <502096B8.4070403@swoodbridge.com> References: <502096B8.4070403@swoodbridge.com> Message-ID: Steve - Same OUTPUTFORMAT for both, and I don't even have an OUTPUTFORMAT definition for GIF so I'm using whatever the defaults are. Might my issue be related to GD versus AGG rendering? In other words, is the default GIF rendering done with GD in 6.0 and AGG in 6.2? Thanks, Rich On Mon, Aug 6, 2012 at 10:16 PM, Stephen Woodbridge wrote: > What does your OUTPUTFORMAT block(s) look like? are you using the sameone > for both? > > -Steve W > > > On 8/6/2012 11:06 PM, Richard Greenwood wrote: >> >> I'm having a problem with the rendering of one of my layers with 6.2. >> It's probably not a bug but rather that I'm doing something wrong. My >> map file: >> >> SYMBOL >> NAME 'solid' >> TYPE ellipse >> POINTS 1 1 END >> FILLED true >> END >> >> LAYER >> ..... >> CLASS >> NAME "Zone X Shaded" >> EXPRESSION /^X, SHADED/ >> STYLE >> SYMBOL 'solid' >> COLOR 128 128 128 >> GAP 1 >> END >> END >> END >> >> See the two attached images for the different renderings. >> mapserv-6.0.gif is the desired rendering, mapserv-6.2.gif is the >> rendering of the same map file with MapServer 6.2 beta2. >> >> Any suggestions as to what I'm doing wrong? >> >> Thanks, >> Rich >> >> >> >> On Wed, Aug 1, 2012 at 3:51 AM, thomas bonfort >> wrote: >>> >>> The MapServer Team is pleased to announce the release of MapServer >>> 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, >>> and contains several fixes that we encourage you to test. Our initially >>> planned date of a release beginning of August has slipped a bit, the >>> updated release plan that can be viewed at >>> >>> >>> https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan >>> >>> We however have only a few bugs left to resolve for our final release, >>> so we hope this beta phase will be over in the next couple of weeks. >>> >>> The changelog since beta1 can be consulted here: >>> >>> >>> http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html >>> >>> The source for this release can be downloaded at: >>> >>> http://mapserver.org/download.html >>> or >>> http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz >>> >>> The binary distributions listed in the download page should be updated >>> with binaries for the new 6.2.0-beta2 release in the next couple of days. >>> >>> Once again we need your help to ensure a high quality product, so >>> please help out by testing your applications with this new code base. >>> >>> Thanks! - The MapServer Team >>> _______________________________________________ >>> 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 -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From thomas.bonfort at gmail.com Tue Aug 7 08:56:41 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 7 Aug 2012 17:56:41 +0200 Subject: [mapserver-users] MapServer 6.2.0 beta2 release In-Reply-To: References: <502096B8.4070403@swoodbridge.com> Message-ID: If you haven't specifically enabled GD (--enable-gd) then GIF will be rendered with AGG in 6.2. -- thomas On Tue, Aug 7, 2012 at 5:52 PM, Richard Greenwood wrote: > Steve - > > Same OUTPUTFORMAT for both, and I don't even have an OUTPUTFORMAT > definition for GIF so I'm using whatever the defaults are. Might my > issue be related to GD versus AGG rendering? In other words, is the > default GIF rendering done with GD in 6.0 and AGG in 6.2? > > Thanks, > Rich > > On Mon, Aug 6, 2012 at 10:16 PM, Stephen Woodbridge > wrote: >> What does your OUTPUTFORMAT block(s) look like? are you using the sameone >> for both? >> >> -Steve W >> >> >> On 8/6/2012 11:06 PM, Richard Greenwood wrote: >>> >>> I'm having a problem with the rendering of one of my layers with 6.2. >>> It's probably not a bug but rather that I'm doing something wrong. My >>> map file: >>> >>> SYMBOL >>> NAME 'solid' >>> TYPE ellipse >>> POINTS 1 1 END >>> FILLED true >>> END >>> >>> LAYER >>> ..... >>> CLASS >>> NAME "Zone X Shaded" >>> EXPRESSION /^X, SHADED/ >>> STYLE >>> SYMBOL 'solid' >>> COLOR 128 128 128 >>> GAP 1 >>> END >>> END >>> END >>> >>> See the two attached images for the different renderings. >>> mapserv-6.0.gif is the desired rendering, mapserv-6.2.gif is the >>> rendering of the same map file with MapServer 6.2 beta2. >>> >>> Any suggestions as to what I'm doing wrong? >>> >>> Thanks, >>> Rich >>> >>> >>> >>> On Wed, Aug 1, 2012 at 3:51 AM, thomas bonfort >>> wrote: >>>> >>>> The MapServer Team is pleased to announce the release of MapServer >>>> 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, >>>> and contains several fixes that we encourage you to test. Our initially >>>> planned date of a release beginning of August has slipped a bit, the >>>> updated release plan that can be viewed at >>>> >>>> >>>> https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan >>>> >>>> We however have only a few bugs left to resolve for our final release, >>>> so we hope this beta phase will be over in the next couple of weeks. >>>> >>>> The changelog since beta1 can be consulted here: >>>> >>>> >>>> http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html >>>> >>>> The source for this release can be downloaded at: >>>> >>>> http://mapserver.org/download.html >>>> or >>>> http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz >>>> >>>> The binary distributions listed in the download page should be updated >>>> with binaries for the new 6.2.0-beta2 release in the next couple of days. >>>> >>>> Once again we need your help to ensure a high quality product, so >>>> please help out by testing your applications with this new code base. >>>> >>>> Thanks! - The MapServer Team >>>> _______________________________________________ >>>> 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 > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From MarkVolz at co.lyon.mn.us Tue Aug 7 09:13:21 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Tue, 7 Aug 2012 16:13:21 +0000 Subject: [mapserver-users] label all parts of a multi-part polygon Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA31499AD@swmail01.r8nssis.local> Hello Is it possible to label all parts of a multi-part polygon? Please see geomoose.lyonco.org/geomoose2/ArcMapLabel.jpg for an example of what I would like to do. Thanks Mark Volz GIS Specialist From woodbri at swoodbridge.com Tue Aug 7 10:01:58 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 07 Aug 2012 13:01:58 -0400 Subject: [mapserver-users] label all parts of a multi-part polygon In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA31499AD@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA31499AD@swmail01.r8nssis.local> Message-ID: <50214A06.6080507@swoodbridge.com> On 8/7/2012 12:13 PM, Mark Volz wrote: > Hello > > Is it possible to label all parts of a multi-part polygon? Please > see geomoose.lyonco.org/geomoose2/ArcMapLabel.jpg for an example of > what I would like to do. Mark, I don't think you can do this directly, you might want to open a new ticket to add this as an enhancement. It should be triggered by some optional tag in the label block so it can be turned on. One work-around if you are using PostGIS is: DATA "the_geom from (select gid, attr1, attr2, etc (st_dump(the_geom)).geom as the_geom from mytable) using unique gid" This has a problem in that gid will not be unique so you may will have a problem if you use this in a query instead of a draw. Otherwise you may need to modify the SQL to generate a unique id maybe doing some thing like gid*100+path where path is the count of which geom in the multipolygon geom represents. -Steve From richard.greenwood at gmail.com Tue Aug 7 11:04:27 2012 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 7 Aug 2012 12:04:27 -0600 Subject: [mapserver-users] MapServer 6.2.0 beta2 release In-Reply-To: References: <502096B8.4070403@swoodbridge.com> Message-ID: thomas, So are the differences between the two images attached to my OP expected/intended when switching from GD to AGG rendering? Thanks, Rich On Tue, Aug 7, 2012 at 9:56 AM, thomas bonfort wrote: > If you haven't specifically enabled GD (--enable-gd) then GIF will be > rendered with AGG in 6.2. > > -- > thomas > > On Tue, Aug 7, 2012 at 5:52 PM, Richard Greenwood > wrote: >> Steve - >> >> Same OUTPUTFORMAT for both, and I don't even have an OUTPUTFORMAT >> definition for GIF so I'm using whatever the defaults are. Might my >> issue be related to GD versus AGG rendering? In other words, is the >> default GIF rendering done with GD in 6.0 and AGG in 6.2? >> >> Thanks, >> Rich >> >> On Mon, Aug 6, 2012 at 10:16 PM, Stephen Woodbridge >> wrote: >>> What does your OUTPUTFORMAT block(s) look like? are you using the sameone >>> for both? >>> >>> -Steve W >>> >>> >>> On 8/6/2012 11:06 PM, Richard Greenwood wrote: >>>> >>>> I'm having a problem with the rendering of one of my layers with 6.2. >>>> It's probably not a bug but rather that I'm doing something wrong. My >>>> map file: >>>> >>>> SYMBOL >>>> NAME 'solid' >>>> TYPE ellipse >>>> POINTS 1 1 END >>>> FILLED true >>>> END >>>> >>>> LAYER >>>> ..... >>>> CLASS >>>> NAME "Zone X Shaded" >>>> EXPRESSION /^X, SHADED/ >>>> STYLE >>>> SYMBOL 'solid' >>>> COLOR 128 128 128 >>>> GAP 1 >>>> END >>>> END >>>> END >>>> >>>> See the two attached images for the different renderings. >>>> mapserv-6.0.gif is the desired rendering, mapserv-6.2.gif is the >>>> rendering of the same map file with MapServer 6.2 beta2. >>>> >>>> Any suggestions as to what I'm doing wrong? >>>> >>>> Thanks, >>>> Rich >>>> >>>> >>>> >>>> On Wed, Aug 1, 2012 at 3:51 AM, thomas bonfort >>>> wrote: >>>>> >>>>> The MapServer Team is pleased to announce the release of MapServer >>>>> 6.2.0 beta2. This is the second beta on our way to a final 6.2 release, >>>>> and contains several fixes that we encourage you to test. Our initially >>>>> planned date of a release beginning of August has slipped a bit, the >>>>> updated release plan that can be viewed at >>>>> >>>>> >>>>> https://github.com/mapserver/mapserver/wiki/MapServer-6.2-Release-Plan >>>>> >>>>> We however have only a few bugs left to resolve for our final release, >>>>> so we hope this beta phase will be over in the next couple of weeks. >>>>> >>>>> The changelog since beta1 can be consulted here: >>>>> >>>>> >>>>> http://www.mapserver.org/en/development/changelog/changelog-6-2-0-beta2.html >>>>> >>>>> The source for this release can be downloaded at: >>>>> >>>>> http://mapserver.org/download.html >>>>> or >>>>> http://download.osgeo.org/mapserver/mapserver-6.2.0-beta2.tar.gz >>>>> >>>>> The binary distributions listed in the download page should be updated >>>>> with binaries for the new 6.2.0-beta2 release in the next couple of days. >>>>> >>>>> Once again we need your help to ensure a high quality product, so >>>>> please help out by testing your applications with this new code base. >>>>> >>>>> Thanks! - The MapServer Team >>>>> _______________________________________________ >>>>> 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 >> >> >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Steve.Lime at state.mn.us Tue Aug 7 23:07:25 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 8 Aug 2012 06:07:25 +0000 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> Message-ID: Nothing jumps out. Are you using INCLUDES or and external symbol file? Wonder if the line number is off or referencing another file. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Mark Volz [MarkVolz at co.lyon.mn.us] Sent: Tuesday, August 07, 2012 10:04 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 Hello, I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees anything wrong with this layer let me know. LAYER NAME 'Townships' TYPE POLYGON DATA './LyonCounty/Boundaries/Townships' MINSCALEDENOM 15000 STATUS DEFAULT TRANSPARENCY 100 CLASSITEM "COLOR" CLASS NAME 'Townships' EXPRESSION 'T' STYLE ####### THIS IS WHERE MS CRASHED DUE TO "Unknown identifier. Parsing error near (STYLE):(line 109)" #SYMBOL 'hatch-test' COLOR 170 170 170 SIZE 2 WIDTH 1 END #STYLE END #class END # townships layer Thank you for your help Mark _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Aug 8 05:25:30 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 08 Aug 2012 08:25:30 -0400 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> Message-ID: <50225ABA.5060804@swoodbridge.com> Mark, Can you run this request in gdb and do a backtrace after it crashes? Hopefully your executable is compiled with --enable-debug gdb /path/to/mapserv run QUERY_STRING='everything after the ? in the url request' backtrace quit And post the output. This will probably be more useful at identifying the problem. -Steve W On 8/8/2012 2:07 AM, Lime, Steve D (DNR) wrote: > Nothing jumps out. Are you using INCLUDES or and external symbol file? Wonder if the line number is off or referencing another file. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Mark Volz [MarkVolz at co.lyon.mn.us] > Sent: Tuesday, August 07, 2012 10:04 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 > > Hello, > > I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees anything wrong with this layer let me know. > > LAYER > NAME 'Townships' > TYPE POLYGON > DATA './LyonCounty/Boundaries/Townships' > MINSCALEDENOM 15000 > STATUS DEFAULT > TRANSPARENCY 100 > CLASSITEM "COLOR" > CLASS > NAME 'Townships' > EXPRESSION 'T' > STYLE ####### THIS IS WHERE MS CRASHED DUE TO "Unknown identifier. Parsing error near (STYLE):(line 109)" > #SYMBOL 'hatch-test' > COLOR 170 170 170 > SIZE 2 > WIDTH 1 > END #STYLE > END #class > END # townships layer > > Thank you for your help > > Mark > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Wed Aug 8 07:02:37 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 08 Aug 2012 11:02:37 -0300 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> Message-ID: <5022717D.2030705@gatewaygeomatics.com> On 12-08-07 12:04 PM, Mark Volz wrote: > Hello, > > I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees anything wrong with this layer let me know. Interesting problem. If I was in this situation I would: - make a copy of the mapfile and use that copy - remove all other layers (by remove I mean delete it from the file) - after each removal/delete I would test with the shp2img utility with -all_debug 5 switch - remove all fontset and symbolset parameters - remove all projection objects - remove all objects that are not needed (reference, scalebar, etc) - remove all commented lines - remove expression from problem layer - remove scales from problem layer - remove width from problem style - remove size from problem style - still a problem with Style? Remove the whole style object and re-run shp2img Basically my goal would be to have the shortest mapfile and still throw the error - much easier to debug that tiny single mapfile. Isn't debugging fun? :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From astrid.emde at wheregroup.com Wed Aug 8 07:19:31 2012 From: astrid.emde at wheregroup.com (Astrid Emde) Date: Wed, 08 Aug 2012 16:19:31 +0200 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 In-Reply-To: <5022717D.2030705@gatewaygeomatics.com> References: <36CA828A36E29F45B7CF0A1766E5DFA3149932@swmail01.r8nssis.local> <5022717D.2030705@gatewaygeomatics.com> Message-ID: <50227573.6010205@wheregroup.com> Am 08.08.2012 16:02, schrieb Jeff McKenna: > On 12-08-07 12:04 PM, Mark Volz wrote: >> Hello, >> >> I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees anything wrong with this layer let me know. > Interesting problem. If I was in this situation I would: > > - make a copy of the mapfile and use that copy > - remove all other layers (by remove I mean delete it from the file) > - after each removal/delete I would test with the shp2img utility with > -all_debug 5 switch > - remove all fontset and symbolset parameters > - remove all projection objects > - remove all objects that are not needed (reference, scalebar, etc) > - remove all commented lines > - remove expression from problem layer > - remove scales from problem layer > - remove width from problem style > - remove size from problem style > - still a problem with Style? Remove the whole style object and re-run > shp2img > > Basically my goal would be to have the shortest mapfile and still throw > the error - much easier to debug that tiny single mapfile. > > Isn't debugging fun? :) > > -jeff > > > Hello, do you know the migration guide? http://mapserver.org/MIGRATION_GUIDE.html#mapserver-5-6-to-6-0-migration To me it looks like you have an error in your symbol-file The old SYMBOL definition for a dashed line was like this: Symbol NAME "dashed_line" Filled TRUE Type VECTOR POINTS 0 1 0 0 1 0 1 1 0 1 END STYLE # <--------------------------------------- 5 10 2 10 END END Then the parameter STYLE changed to PATTERN in the symbol definition. And now in 6.x you define the PATTERN in the mapfile itself and not in the SYMBOL-definition. -- Best regards Astrid From MarkVolz at co.lyon.mn.us Wed Aug 8 09:28:17 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Aug 2012 16:28:17 +0000 Subject: [mapserver-users] transitioning between mapservers - port forwarding Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA314AECC@swmail01.r8nssis.local> Hello, I would like to see if I can run both MS4W 3.0 beta 7 (mapserver 5) and MS4W 3.x (mapserver 6). Background: Currently I am using an older version of MS4W to host our GeoMOOSE 2.2 applications, which are not compatible with the newer versions of MS4W. In addition to using the older MS4W application, I would also like to add a new version of MS4W. This way I can transition to GeoMOOSE 2.6 (which runs on the newer MS4W distribution), and take advantage of MapCache without having to completely change all the applications at once. The server I have has two partitions and by renaming the service in Apache-install.bat I can run both both the old MS4W applications and the new MS4W applications. Questions: Has anyone else done anything similar to this? Is there a way to only use one IP address or port? For example could I make: http://mysite/myOldApp go to the old version of MS4W and http://mysite/myNewApp go to the new version of MS4W? Thanks for any ideas Mark Volz GIS Specialist From Dominique.Langlois at RNCan-NRCan.gc.ca Wed Aug 8 10:16:45 2012 From: Dominique.Langlois at RNCan-NRCan.gc.ca (Langlois, Dominique) Date: Wed, 8 Aug 2012 17:16:45 +0000 Subject: [mapserver-users] transitioning between mapservers - port forwarding In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA314AECC@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA314AECC@swmail01.r8nssis.local> Message-ID: Hi, We are currently serving many WMS and WFS services through a single IP address. To do so, we use Apache mod_rewrite module which permit to set some redirection based on rules in the configuration file. Google for 'Apache mod_rewrite' to find how to set rules. Regards. Dominique Langlois Ressources naturelles Canada Natural Resources Canada Centre d'information topographique Centre for Topographic Information Sherbrooke, Canada -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: August 8, 2012 12:28 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] transitioning between mapservers - port forwarding Hello, I would like to see if I can run both MS4W 3.0 beta 7 (mapserver 5) and MS4W 3.x (mapserver 6). Background: Currently I am using an older version of MS4W to host our GeoMOOSE 2.2 applications, which are not compatible with the newer versions of MS4W. In addition to using the older MS4W application, I would also like to add a new version of MS4W. This way I can transition to GeoMOOSE 2.6 (which runs on the newer MS4W distribution), and take advantage of MapCache without having to completely change all the applications at once. The server I have has two partitions and by renaming the service in Apache-install.bat I can run both both the old MS4W applications and the new MS4W applications. Questions: Has anyone else done anything similar to this? Is there a way to only use one IP address or port? For example could I make: http://mysite/myOldApp go to the old version of MS4W and http://mysite/myNewApp go to the new version of MS4W? Thanks for any ideas Mark Volz GIS Specialist _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stiramdasu at qcoherent.com Wed Aug 8 11:06:14 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 8 Aug 2012 13:06:14 -0500 Subject: [mapserver-users] mapscript example Message-ID: <00cb01cd7590$800d7b40$802871c0$@com> Hi, I am trying to run the gmap tutorial for map server which uses mapscript. I am getting the following error. Can anyone please suggest me , where I am going wrong . I made sure the .map file is present at the location it is referring. Warning: ms_newMapObj(): [MapServer Error]: msLoadMap(): (gmap75.map) in C:\ms4w\apps\tutorial\htdocs\gmap75.phtml on line 66 Fatal error: Uncaught exception 'MapScriptException' with message 'Failed to open map file "gmap75.map"' in C:\ms4w\apps\tutorial\htdocs\gmap75.phtml:66 Stack trace: #0 C:\ms4w\apps\tutorial\htdocs\gmap75.phtml(66): ms_newMapObj('gmap75.map') #1 {main} thrown in C:\ms4w\apps\tutorial\htdocs\gmap75.phtml on line 66 Thanks , Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkVolz at co.lyon.mn.us Wed Aug 8 13:50:39 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 8 Aug 2012 20:50:39 +0000 Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA314AFE8@swmail01.r8nssis.local> Hello, Thank you for all your replies on helping me figure out why a mapfile was working in 5.x and not 6.x. It turns out that the problem was with an included symbol.sym file. I realized that I am not even using this file on this particular map so I removed the reference. So now everything is working, and this particular map will now run a little faster. As Astrid mentioned I will take a closer look at the migration guide when I move other maps over that depend on the included symbol file. Thanks again Mark Volz > > Message: 1 > Date: Wed, 8 Aug 2012 06:07:25 +0000 > From: "Lime, Steve D (DNR)" > To: Mark Volz , > "mapserver-users at lists.osgeo.org" users at lists.osgeo.org> > Subject: Re: [mapserver-users] issue when upgrading layer from 5.x to > 6.0 > Message-ID: > 042.055d.mgd.msft.net> > > Content-Type: text/plain; charset="us-ascii" > > Nothing jumps out. Are you using INCLUDES or and external symbol file? > Wonder if the line number is off or referencing another file. > > Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users- > bounces at lists.osgeo.org] on behalf of Mark Volz [MarkVolz at co.lyon.mn.us] > Sent: Tuesday, August 07, 2012 10:04 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] issue when upgrading layer from 5.x to 6.0 > > Hello, > > I am upgrading a mapfile from Mapserver 5.x to Mapserver 6.0. This map > works fine in 5.x, however it crashes on the "STYLE" line. If anyone sees > anything wrong with this layer let me know. > > LAYER > NAME 'Townships' > TYPE POLYGON > DATA './LyonCounty/Boundaries/Townships' > MINSCALEDENOM 15000 > STATUS DEFAULT > TRANSPARENCY 100 > CLASSITEM "COLOR" > CLASS > NAME 'Townships' > EXPRESSION 'T' > STYLE ####### THIS IS WHERE MS CRASHED DUE TO "Unknown > identifier. Parsing error near (STYLE):(line 109)" > #SYMBOL 'hatch-test' > COLOR 170 170 170 > SIZE 2 > WIDTH 1 > END #STYLE > END #class > END # townships layer > > Thank you for your help > > Mark > > _______________________________________________ > 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 Thu Aug 9 07:37:54 2012 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 9 Aug 2012 14:37:54 +0000 Subject: [mapserver-users] Mapserver / Mapcache performance question - file format Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA314B0D8@swmail01.r8nssis.local> Hello, I am optimize a cache in mapcache that uses mapserver to create images for an air photo service. I was just wondering if I could get some feedback about optimizing the service. Here is what I have thus far: * All of the images and services are in a single projection * The Original four images are in a compresses geotiff file. (The uncompressed geotiffs are too large) * Tileindexes and Overviews were built using gdal at the same resolutions that mapcache will use. * A shapefile tile index was created * My Mapfile uses PROCESSING "OVERSAMPLE_RATIO =1.0", "GDAL_FORCE_CACHING =YES" and "RESAMPLE=NEAREST" * Mapserver is serving tiff files * Mapcache is using a 4*4 metatile - I am assuming that this will make about four instances of mapserver run at once, which matches the number of cores I have. Would it be quicker to use a 16* 16 metatile so that mapserver only needs to open the image once? * I am serving the cache in a jpeg, which should keep the cache size small, and the bandwidth down as well. * Each tile is 256*256. I have also seen 512*512 tiles, but I think 256 seems quicker. I appreciate any thoughts. Thanks Mark Volz GIS Specialist p.s. I noticed PROCESSING "OVERSAMPLE_RATIO =1.0" makes a big difference, however I could not find the parameter in any of the official documentation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ipammee at hotmail.com Thu Aug 9 07:48:43 2012 From: ipammee at hotmail.com (Shri I) Date: Thu, 9 Aug 2012 09:48:43 -0500 Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer... Message-ID: Hello All, I have been trying to read a custom GDAL raster format via MapServer. (Unfortunately, I'm unable to share the file itself here, as it is a proprietary format). MapServer is unable to read the raster and display it. However, GDAL is able to read (gdalinfo, etc), translate (gdal_translate), transform (gdalwarp) the raster. Any ideas how to solve this? MapServer is compiled with GDAL support and everything looks OK. The "gdalinfo --formats " command shows the format is supported. Here are the errors in my log: msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawRasterLayerLow(testLayer): entering. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. Image handling error. Failed to draw layer named 'testLayer'. msFreeMap(): freeing map at 0xf8b8f0. And here's the MapServer error included in the image or shown on the command prompt (when ran using mapserv command): msDrawMap(): Image handling error. Failed to draw layer named 'testLayer'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. GDAL: GDALDeregister_GTiff() called. Here's how my layer definition looks like: LAYER NAME "testLayer" TYPE RASTER DATA "/path/to/myfile.ext" # <<-- Tested with realtive path from shapepath and also direct path, as in this case. STATUS ON END Thank you for your helpful pointers. Regards, Shri. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Aug 9 08:00:31 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 9 Aug 2012 15:00:31 +0000 Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer... In-Reply-To: References: Message-ID: Is MapServer using the same GDAL as the commandline GDAL that can successfully open the file? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shri I Sent: Thursday, August 09, 2012 9:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer... Hello All, I have been trying to read a custom GDAL raster format via MapServer. (Unfortunately, I'm unable to share the file itself here, as it is a proprietary format). MapServer is unable to read the raster and display it. However, GDAL is able to read (gdalinfo, etc), translate (gdal_translate), transform (gdalwarp) the raster. Any ideas how to solve this? MapServer is compiled with GDAL support and everything looks OK. The "gdalinfo --formats " command shows the format is supported. Here are the errors in my log: msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawRasterLayerLow(testLayer): entering. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. Image handling error. Failed to draw layer named 'testLayer'. msFreeMap(): freeing map at 0xf8b8f0. And here's the MapServer error included in the image or shown on the command prompt (when ran using mapserv command): msDrawMap(): Image handling error. Failed to draw layer named 'testLayer'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. GDAL: GDALDeregister_GTiff() called. Here's how my layer definition looks like: LAYER NAME "testLayer" TYPE RASTER DATA "/path/to/myfile.ext" # <<-- Tested with realtive path from shapepath and also direct path, as in this case. STATUS ON END Thank you for your helpful pointers. Regards, Shri. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ipammee at hotmail.com Thu Aug 9 08:25:58 2012 From: ipammee at hotmail.com (Windows Live Mail) Date: Thu, 9 Aug 2012 11:25:58 -0400 Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer... In-Reply-To: References: Message-ID: Hello, yes. There's only one version/instance of gdal running on the machine. Thanks, Shri On Aug 9, 2012, at 11:00 AM, "Fawcett, David (MPCA)" wrote: > Is MapServer using the same GDAL as the commandline GDAL that can successfully open the file? > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shri I > Sent: Thursday, August 09, 2012 9:49 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer... > > Hello All, > > I have been trying to read a custom GDAL raster format via MapServer. (Unfortunately, I'm unable to share the file itself here, as it is a proprietary format). MapServer is unable to read the raster and display it. However, GDAL is able to read (gdalinfo, etc), translate (gdal_translate), transform (gdalwarp) the raster. Any ideas how to solve this? MapServer is compiled with GDAL support and everything looks OK. The "gdalinfo --formats " command shows the format is supported. > > Here are the errors in my log: > > msDrawMap(): rendering using outputformat named png (AGG/PNG). > msDrawMap(): WMS/WFS set-up and query, 0.000s > msDrawRasterLayerLow(testLayer): entering. > msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. > Image handling error. Failed to draw layer named 'testLayer'. > msFreeMap(): freeing map at 0xf8b8f0. > > > And here's the MapServer error included in the image or shown on the command prompt (when ran using mapserv command): > > msDrawMap(): Image handling error. Failed to draw layer named 'testLayer'. > msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. > GDAL: GDALDeregister_GTiff() called. > > > > Here's how my layer definition looks like: > > LAYER > NAME "testLayer" > TYPE RASTER > DATA "/path/to/myfile.ext" # <<-- Tested with realtive path from shapepath and also direct path, as in this case. > STATUS ON > END > > > Thank you for your helpful pointers. > > Regards, > Shri. -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Thu Aug 9 12:52:44 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Thu, 9 Aug 2012 21:52:44 +0200 (CEST) Subject: [mapserver-users] mapcache_seed ogr In-Reply-To: <974898870.64929608.1344541837588.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <1624945596.64931087.1344541964172.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I would like to use mapcache_seed to generate tiles with ogr datasource. Mapcache is installed on linux and database is installed on windows. I modify pg_hba.conf to allow connection between mapcache and database with line : host all all 170.56.4.100/32 md5 I try this command line but it's doesn't work : ./util/mapcache_seed -c mapcache.xml -t test -g WGS84 -z 0,1 -d PG:"dbname='170.56.4.100' port='5432' user='user' password='password'" -s "select * from test" Mapcache_seed seems try to connect to database server but it's doesn't work. I don't know if problem come from command line or pg_hba.conf ? Can I insert a filter with -l "id = 234" ? Thanks From hsansegundo at meteo.cat Fri Aug 10 00:42:05 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Fri, 10 Aug 2012 09:42:05 +0200 Subject: [mapserver-users] Mapserver ignores classgroup parameters for raster layers? In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de><56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> Message-ID: <5024BB4D.1070309@meteo.cat> I'm using mapserver 6.0.2 and I've defined a raster layer with different classgroup styles. When I invoke the different styles only uses the first defined in the mapfile. I've seen some tickets whith this problem, anybody knows how to make classgroup work with raster layers? Thanks, Helen From Andreas.Eichner at sid.sachsen.de Fri Aug 10 01:24:38 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 10 Aug 2012 10:24:38 +0200 Subject: [mapserver-users] mapcache_seed ogr References: <1624945596.64931087.1344541964172.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3F1@KS-EVS1.smi.sachsen.de> > I would like to use mapcache_seed to generate tiles with ogr > datasource. OGR datasources in MapCache are used for clippers, ie. seed only tiles that intersect those features which should be polygons. > -d PG:"dbname='170.56.4.100' port='5432' user='user' > password='password'" According to http://www.gdal.org/ogr/drv_pg.html it should be PG:"dbname='databasename' host='addr' port='5432' user='x' password='y'" > I don't know if problem come from command > line or pg_hba.conf ? Command line. > Can I insert a filter with -l "id = 234" ? Nope, -l is the layername which is in this case the table or view. Should be -w for the WHERE clause. But note that (-l layer + -w where) and (-s sql) are mutually exclusive. From Andreas.Eichner at sid.sachsen.de Fri Aug 10 02:03:18 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 10 Aug 2012 11:03:18 +0200 Subject: [mapserver-users] Mapserver / Mapcache performance question - fileformat References: <36CA828A36E29F45B7CF0A1766E5DFA314B0D8@swmail01.r8nssis.local> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3F2@KS-EVS1.smi.sachsen.de> > * The Original four images are in a compresses > geotiff file. (The uncompressed geotiffs are too large) What compression are you using? JPEG and YCbCr colorspace should do for your case. > * Tileindexes and Overviews were built using gdal at > the same resolutions that mapcache will use. Hopefully your TIFFs are tiled too?! > Mapserver is serving tiff files MapCache should request JPEGs from MapServer if your cache is JPEG. > Mapcache is using a 4*4 metatile - I am assuming > that this will make about four instances of mapserver run at > once, which matches the number of cores I have. Would it be > quicker to use a 16* 16 metatile so that mapserver only needs > to open the image once? Metatiling is used to reduce the workload on the backend server. Instead of requesting 16 tiles with 16 requests, MapCache will request a single tile with a single request from the backend large enough to cover those tiles and cuts them into 16 tiles on it's own. Since on a single tile request probability is high that neighboring tiles will be requested soon this will result in a kind of prefetch. > I am serving the cache in a jpeg, which should keep > the cache size small, and the bandwidth down as well. JPEG is very good for aerial photos - fast and small. > Each tile is 256*256. I have also seen 512*512 > tiles, but I think 256 seems quicker. Larger tiles have a smaller overhead, usually a better compression ratio and cover a larger area per tile so less tiles are required by client and therefore reduce the number of HTTP request that need to be made. On the other hand the client gets data he probaly never needs since the tiles at the border are clipped by the view, it takes more time to transfer and decode the larger data so clients need to wait longer until they see anything which looks unresponsive and larger tiles are uncommon so simple clients might fail. > p.s. I noticed PROCESSING "OVERSAMPLE_RATIO =1.0" makes a > big difference, however I could not find the parameter in any > of the official documentation. http://mapserver.org/input/raster.html#special-processing-directives HTH From aperi2007 at gmail.com Fri Aug 10 05:47:19 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 10 Aug 2012 14:47:19 +0200 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. Message-ID: Hi, doing a GetFeatureInfo of GML type I see the MapServer send this kind of response. Unfortunately this response don't has a schemaLocation with a xsd for validation available. I try with the DescribeFeatureType, but it return an xsd for a featureCollection (for GML from WFS) don't for the msGMLOutput. Is possible to set the GetFeatureInfo from mapserver to have a GML response validable with the xsd from DescribeFeatureType ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Aug 10 07:49:33 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 10 Aug 2012 14:49:33 +0000 Subject: [mapserver-users] Mapserver ignores classgroup parameters for raster layers? In-Reply-To: <5024BB4D.1070309@meteo.cat> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de><56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> <5024BB4D.1070309@meteo.cat> Message-ID: I believe this has been fixed in 6.2. Can you try the latest beta? --Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Helen San Segundo Navazo Sent: Friday, August 10, 2012 2:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver ignores classgroup parameters for raster layers? I'm using mapserver 6.0.2 and I've defined a raster layer with different classgroup styles. When I invoke the different styles only uses the first defined in the mapfile. I've seen some tickets whith this problem, anybody knows how to make classgroup work with raster layers? Thanks, Helen _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Fri Aug 10 07:52:58 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Aug 2012 14:52:58 +0000 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. Message-ID: <84446DEF76453C439E9E97E438E13A63463733@suutari.haapa.mmm.fi> Hi, Would it work as you hope if the creation option "XSISCHEMAURI" could be set as described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html? "XSISCHEMAURI: If provided, this URI will be inserted as the schema location. Note that the schema file isn't actually accessed by OGR, so it is up to the user to ensure it will match the schema of the OGR produced GML data file." -Jukka Rahkonen- Andrea Peri wrote: Hi, doing a GetFeatureInfo of GML type I see the MapServer send this kind of response. Unfortunately this response don't has a schemaLocation with a xsd for validation available. I try with the DescribeFeatureType, but it return an xsd for a featureCollection (for GML from WFS) don't for the msGMLOutput. Is possible to set the GetFeatureInfo from mapserver to have a GML response validable with the xsd from DescribeFeatureType ? Thx, -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Fri Aug 10 08:22:18 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Fri, 10 Aug 2012 17:22:18 +0200 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. In-Reply-To: <84446DEF76453C439E9E97E438E13A63463733@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63463733@suutari.haapa.mmm.fi> Message-ID: Hi Jukka, That option ask the user to produce itself all the schemas for all the layers I see instead that a getFeature request on the WFS section will produce automatically an xsd of the GML it return using the DescribeFeatureType request. I hope to find a solution to have this automatically produce also on the GetFeatureInfo. 2012/8/10 Rahkonen Jukka > Hi,**** > > ** ** > > Would it work as you hope if the creation option ?XSISCHEMAURI? could be > set as described in the OGR GML driver page > http://gdal.org/ogr/drv_gml.html? ** ** > > ** ** > > *?XSISCHEMAURI*: If provided, this URI will be inserted as the schema > location. Note that the schema file isn't actually accessed by OGR, so it > is up to the user to ensure it will match the schema of the OGR produced > GML data file.?**** > > ** ** > > -Jukka Rahkonen-**** > > ** ** > > Andrea Peri wrote: > > **** > > ** ** > > Hi, > > doing a GetFeatureInfo of GML type I see the MapServer send this kind of > response. > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Unfortunately this response don't has a schemaLocation with a xsd for > validation available. > > I try with the DescribeFeatureType, but it return an xsd for a > featureCollection (for GML from WFS) don't for the msGMLOutput. > > Is possible to set the GetFeatureInfo from mapserver to have a GML > response validable with the xsd from DescribeFeatureType ? > > 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 Jukka.Rahkonen at mmmtike.fi Fri Aug 10 08:58:31 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 10 Aug 2012 15:58:31 +0000 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. Message-ID: <84446DEF76453C439E9E97E438E13A63463761@suutari.haapa.mmm.fi> Hi, DescribeFeatureType is compulsory part of WSF so it is no wonder that it works automatically. I try to think what could be done. DecribeFeatureType must match with WFS GetFeature. It you would like to use DFT with WMS GetFeatureInfo then GetFeatureInfo could not be separately configurable. It should always use the schema defined for WFS. I suppose that this is how Geoserver works. I also believe that there are Mapserver users who want to get different GML from WFS GetFeature and WMS GetFeatureInfo. If GetFeatureInfo would produce GML with different schema than WFS GetFeature, how the users are supposed to read it? WMS does not have request "DescribeGetFeatureInfoSchema" and building such for Mapserver does not feel optimal. So the GetFeatureInfo GML should have a link to a static schema file that could be accessed through the web. OGR GML driver seems to be able to create such schema file automatically with XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html. Problem is that probably you do not want to send two files for the WMS client doing GetFeatureInfo calls (xml + xsd), not even zipped into one archive file. So OGR should generate .xsd file, store it into some place on the server and write a corresponging URL into the GML part of response so that client could read the file through the web. It feels complicated but probably it could be done. XSISCHEMA=INTERNAL would be much more simple both on the server and client side but documentation tells that it does not work. How about forgetting GML and use something that does not need separate schema file, perhaps GeoJSON? -Jukka- Andrea Peri wrote: Hi Jukka, That option ask the user to produce itself all the schemas for all the layers I see instead that a getFeature request on the WFS section will produce automatically an xsd of the GML it return using the DescribeFeatureType request. I hope to find a solution to have this automatically produce also on the GetFeatureInfo. 2012/8/10 Rahkonen Jukka > Hi, Would it work as you hope if the creation option "XSISCHEMAURI" could be set as described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html? "XSISCHEMAURI: If provided, this URI will be inserted as the schema location. Note that the schema file isn't actually accessed by OGR, so it is up to the user to ensure it will match the schema of the OGR produced GML data file." -Jukka Rahkonen- Andrea Peri wrote: Hi, doing a GetFeatureInfo of GML type I see the MapServer send this kind of response. Unfortunately this response don't has a schemaLocation with a xsd for validation available. I try with the DescribeFeatureType, but it return an xsd for a featureCollection (for GML from WFS) don't for the msGMLOutput. Is possible to set the GetFeatureInfo from mapserver to have a GML response validable with the xsd from DescribeFeatureType ? 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 MichaelS at abag.ca.gov Fri Aug 10 11:44:15 2012 From: MichaelS at abag.ca.gov (Michael Smith) Date: Fri, 10 Aug 2012 11:44:15 -0700 Subject: [mapserver-users] MapCache configuration issue Message-ID: <5024F40F020000CB0005066F@gwia1.abag.ca.gov> I have MapServer installed and configured to act as a WMS and it is working fine. The problem I am having comes when I try to enable MapCache. When I uncomment the MapCache line in httpd.conf to enable the module and restart Apache it fails with the error 'failed to parse file... unexpected closing tag .' This seems odd as I have an opening tag in mapcache.xml. My guess is that I made an error when configuring mapcache.xml for my service. Unfortunately, since Apache will not start with MapCache enabled, there is nothing in error.log describing what is going on. I am running MapServer 6.1-dev, from MS4W 3.0.4-dev, on Windows Server 2003 Service Pack 2. The images being served are JPEG hillshades using the NAD83 UTM Zone10N projection. I am not trying to reproject the image. The httpd.conf was modified to load the module and points to the location of mapcache.xml and the directory where the tiles will be saved is open to all users to read, write, and execute. I have attached the GetCapabilities output for the server and the mapcache.xml config file. Did I completely miss something in the documentation when building the cache config? - Michael -------------- next part -------------- A non-text attachment was scrubbed... Name: mapcache.xml Type: text/xml Size: 2245 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapServer_GetCapabilities_request.xml Type: text/xml Size: 4529 bytes Desc: not available URL: From thomas.bonfort at gmail.com Fri Aug 10 12:16:02 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 10 Aug 2012 21:16:02 +0200 Subject: [mapserver-users] MapCache configuration issue In-Reply-To: <5024F40F020000CB0005066F@gwia1.abag.ca.gov> References: <5024F40F020000CB0005066F@gwia1.abag.ca.gov> Message-ID: Hi, you're missing the closing / in => -- thomas On Fri, Aug 10, 2012 at 8:44 PM, Michael Smith wrote: > I have MapServer installed and configured to act as a WMS and it is working fine. The problem I am having comes when I try to enable MapCache. When I uncomment the MapCache line in httpd.conf to enable the module and restart Apache it fails with the error 'failed to parse file... unexpected closing tag .' This seems odd as I have an opening tag in mapcache.xml. > > My guess is that I made an error when configuring mapcache.xml for my service. Unfortunately, since Apache will not start with MapCache enabled, there is nothing in error.log describing what is going on. > > I am running MapServer 6.1-dev, from MS4W 3.0.4-dev, on Windows Server 2003 Service Pack 2. The images being served are JPEG hillshades using the NAD83 UTM Zone10N projection. I am not trying to reproject the image. The httpd.conf was modified to load the module and points to the location of mapcache.xml and the directory where the tiles will be saved is open to all users to read, write, and execute. > > I have attached the GetCapabilities output for the server and the mapcache.xml config file. Did I completely miss something in the documentation when building the cache config? > > - Michael > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From MichaelS at abag.ca.gov Fri Aug 10 12:19:57 2012 From: MichaelS at abag.ca.gov (Michael Smith) Date: Fri, 10 Aug 2012 12:19:57 -0700 Subject: [mapserver-users] MapCache configuration issue In-Reply-To: References: <5024F40F020000CB0005066F@gwia1.abag.ca.gov> Message-ID: <5024FC6D020000CB00050673@gwia1.abag.ca.gov> Thank you very much Thomas! I looked at that file a dozen times yesterday and never noticed that. That is embarrassing. - Michael >>> thomas bonfort 8/10/2012 12:16 PM >>> Hi, you're missing the closing / in => -- thomas From aperi2007 at gmail.com Sat Aug 11 16:53:10 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Sun, 12 Aug 2012 01:53:10 +0200 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. In-Reply-To: <84446DEF76453C439E9E97E438E13A63463761@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63463761@suutari.haapa.mmm.fi> Message-ID: Hi, >If GetFeatureInfo would produce GML with different schema than WFS GetFeature, how the users are supposed to read it? WMS does not have request >?DescribeGetFeatureInfoSchema? and building such for Mapserver does not feel optimal. So the GetFeatureInfo GML should have a link to a static >schema file that could be accessed through the web. Yes this was an option, but it is not the only. Another option could be an "Inline XML". It is an XML with it xsd embedded. http://www.herongyang.com/XML/XSD-Statements-Embedded-in-XML-File.html >How about forgetting GML and use something that does not need separate schema file, perhaps GeoJSON? I guess GeoJSon is no a consolidated standard. So I guess the GeoJSON generated from geoServer is different from the GeoJSON of MapServer or of other products. Our goal is to write routines able to speak with MapServer mainly with MapServer but also with GeoServer or others WMS systems. The routins must be able to retrieve attributes and geometry. We don't want use the WFS because it is too much oriented to a download. It is not lockable to give one only instance (one only geometry) 2012/8/10 Rahkonen Jukka > Hi,**** > > ** ** > > DescribeFeatureType is compulsory part of WSF so it is no wonder that it > works automatically.**** > > ** ** > > I try to think what could be done. DecribeFeatureType must match with WFS > GetFeature. It you would like to use DFT with WMS GetFeatureInfo then > GetFeatureInfo could not be separately configurable. It should always use > the schema defined for WFS.**** > > I suppose that this is how Geoserver works. I also believe that there are > Mapserver users who want to get different GML from WFS GetFeature and WMS > GetFeatureInfo.**** > > ** ** > > If GetFeatureInfo would produce GML with different schema than WFS > GetFeature, how the users are supposed to read it? WMS does not have > request ?DescribeGetFeatureInfoSchema? and building such for Mapserver does > not feel optimal. So the GetFeatureInfo GML should have a link to a static > schema file that could be accessed through the web.**** > > ** ** > > OGR GML driver seems to be able to create such schema file automatically > with XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html. > Problem is that probably you do not want to send two files for the WMS > client doing GetFeatureInfo calls (xml + xsd), not even zipped into one > archive file. So OGR should generate .xsd file, store it into some place on > the server and write a corresponging URL into the GML part of response so > that client could read the file through the web. It feels complicated but > probably it could be done. XSISCHEMA=INTERNAL would be much more simple > both on the server and client side but documentation tells that it does not > work.**** > > ** ** > > How about forgetting GML and use something that does not need separate > schema file, perhaps GeoJSON?**** > > ** ** > > ** ** > > -Jukka-**** > > ** ** > > Andrea Peri wrote:**** > > ** ** > > Hi Jukka, > > That option ask the user to produce itself all the schemas for all the > layers > > I see instead that a getFeature request on the WFS section will produce > automatically an xsd of the GML it return using the DescribeFeatureType > request. > > I hope to find a solution to have this automatically produce also on the > GetFeatureInfo. > > **** > > 2012/8/10 Rahkonen Jukka **** > > Hi,**** > > **** > > Would it work as you hope if the creation option ?XSISCHEMAURI? could be > set as described in the OGR GML driver page > http://gdal.org/ogr/drv_gml.html? **** > > **** > > *?XSISCHEMAURI*: If provided, this URI will be inserted as the schema > location. Note that the schema file isn't actually accessed by OGR, so it > is up to the user to ensure it will match the schema of the OGR produced > GML data file.?**** > > **** > > -Jukka Rahkonen-**** > > **** > > Andrea Peri wrote:**** > > **** > > Hi, > > doing a GetFeatureInfo of GML type I see the MapServer send this kind of > response. > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Unfortunately this response don't has a schemaLocation with a xsd for > validation available. > > I try with the DescribeFeatureType, but it return an xsd for a > featureCollection (for GML from WFS) don't for the msGMLOutput. > > Is possible to set the GetFeatureInfo from mapserver to have a GML > response validable with the xsd from DescribeFeatureType ? > > 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 ????? > -----------------**** > > _______________________________________________ > 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 surahmanputra at gmail.com Sun Aug 12 21:21:42 2012 From: surahmanputra at gmail.com (Surahman Putra) Date: Mon, 13 Aug 2012 11:21:42 +0700 Subject: [mapserver-users] postgis layer - postgresql table join eror Message-ID: <0fc901cd790b$28fa8400$7aef8c00$@gmail.com> Hi I'm new mapserver-user. I have problem to join postgis layer to postgre table. Here my map file data: DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, Pipeline.gid AS gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk LEFT JOIN Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery USING UNIQUE gid USING srid=32648' And I get this message: msDrawMap(): Image handling error. Failed to draw layer named 'Pipeline'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "LEFT" LINE 1: ...".status AS status, "Kondur_block".id_wk AS id_wk LEFT JOIN ... ^ Can annyone sugget what's wrong with that? For Information I use mapserver version 6.03 and postgis version 1.5.1 Thanks, Surahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Aug 13 00:26:01 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 13 Aug 2012 09:26:01 +0200 Subject: [mapserver-users] postgis layer - postgresql table join eror In-Reply-To: <0fc901cd790b$28fa8400$7aef8c00$@gmail.com> References: <0fc901cd790b$28fa8400$7aef8c00$@gmail.com> Message-ID: You're missing a FROM clause, probably something like: > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, Pipeline.gid AS > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk FROM Pipeline > LEFT JOIN > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery USING > UNIQUE gid USING srid=32648' -- thomas On Mon, Aug 13, 2012 at 6:21 AM, Surahman Putra wrote: > Hi > > > > I?m new mapserver-user. I have problem to join postgis layer to postgre > table. > > Here my map file data: > > > > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, Pipeline.gid AS > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk LEFT JOIN > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery USING > UNIQUE gid USING srid=32648' > > > > And I get this message: > > > > msDrawMap(): Image handling error. Failed to draw layer named 'Pipeline'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > syntax error at or near "LEFT" LINE 1: ...".status AS status, > "Kondur_block".id_wk AS id_wk LEFT JOIN ... ^ > > > > Can annyone sugget what?s wrong with that? > > For Information I use mapserver version 6.03 and postgis version 1.5.1 > > > > Thanks, > > Surahman > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From surahmanputra at gmail.com Mon Aug 13 01:24:09 2012 From: surahmanputra at gmail.com (surahman putra) Date: Mon, 13 Aug 2012 15:24:09 +0700 Subject: [mapserver-users] postgis layer - postgresql table join eror In-Reply-To: References: <0fc901cd790b$28fa8400$7aef8c00$@gmail.com> Message-ID: Thanks Thomas, But After I add FROM clause, it still give same message. Do you have any idea what should I do to fix this problem? Surahman On Mon, Aug 13, 2012 at 2:26 PM, thomas bonfort wrote: > You're missing a FROM clause, probably something like: > > > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, Pipeline.gid > AS > > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk > FROM Pipeline > > LEFT JOIN > > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery USING > > UNIQUE gid USING srid=32648' > > -- > thomas > > On Mon, Aug 13, 2012 at 6:21 AM, Surahman Putra > wrote: > > Hi > > > > > > > > I?m new mapserver-user. I have problem to join postgis layer to postgre > > table. > > > > Here my map file data: > > > > > > > > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, Pipeline.gid > AS > > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk LEFT JOIN > > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery USING > > UNIQUE gid USING srid=32648' > > > > > > > > And I get this message: > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named 'Pipeline'. > > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: > > syntax error at or near "LEFT" LINE 1: ...".status AS status, > > "Kondur_block".id_wk AS id_wk LEFT JOIN ... ^ > > > > > > > > Can annyone sugget what?s wrong with that? > > > > For Information I use mapserver version 6.03 and postgis version 1.5.1 > > > > > > > > Thanks, > > > > Surahman > > > > > > _______________________________________________ > > 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 hsansegundo at meteo.cat Mon Aug 13 01:54:20 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Mon, 13 Aug 2012 10:54:20 +0200 Subject: [mapserver-users] RV: Mapserver ignores classgroup parameters for raster layers? In-Reply-To: References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de><56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> <5024BB4D.1070309@meteo.cat>, Message-ID: <5028C0BC.5070409@meteo.cat> ok, I would try the 6.2, thanks > ________________________________________ > De: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] > Enviado el: viernes, 10 de agosto de 2012 16:49 > Para: San Segundo Navazo, Helen; mapserver-users at lists.osgeo.org > Asunto: RE: [mapserver-users] Mapserver ignores classgroup parameters for raster layers? > > I believe this has been fixed in 6.2. Can you try the latest beta? --Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Helen San Segundo Navazo > Sent: Friday, August 10, 2012 2:42 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver ignores classgroup parameters for raster layers? > > I'm using mapserver 6.0.2 and I've defined a raster layer with different classgroup styles. When I invoke the different styles only uses the first defined in the mapfile. > I've seen some tickets whith this problem, anybody knows how to make classgroup work with raster layers? > Thanks, > Helen > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > From Jukka.Rahkonen at mmmtike.fi Mon Aug 13 04:14:02 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 13 Aug 2012 11:14:02 +0000 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. Message-ID: <84446DEF76453C439E9E97E438E13A634639FA@suutari.haapa.mmm.fi> Andrea Peri wrote: > Hi, >>If GetFeatureInfo would produce GML with different schema than WFS GetFeature, how the users are supposed to read it? WMS does not have request >>"DescribeGetFeatureInfoSchema" and building such for Mapserver does not feel optimal. So the GetFeatureInfo GML should have a link to a static >>schema file that could be accessed through the web. > Yes this was an option, but it is not the only. > Another option could be an "Inline XML". It is an XML with it xsd embedded. > http://www.herongyang.com/XML/XSD-Statements-Embedded-in-XML-File.html GDAL/OGR can write such GML files but documentation warns that they may not be valid. You can try with ogr2ogr for example with the following command. If there is some troubles with my WFS you can use any other vector format as input. ogr2ogr -f GML -dsco XSISCHEMA=INTERNAL test.gml "wfs:http://hip.latuviitta.org/cgi-bin/tinyows" -sql "select * from municipalities where kunta_ni1='Helsinki'" If the resulting GML seems good to you I would guess that someone here can tell how to configure Mapserver to use that kind of output for GetFeatureInfo. Formatoptions in OGR output settings seem promising to me http://mapserver.org/output/ogr_output.html >>How about forgetting GML and use something that does not need separate schema file, perhaps ?GeoJSON? > I guess GeoJSon is no a consolidated standard. > So I guess the GeoJSON generated from geoServer is different from the GeoJSON of MapServer or of other products. > Our goal is to write routines able to speak with MapServer mainly with MapServer but also with GeoServer or others WMS systems. > The routins must be able to retrieve attributes and geometry. > We don't want use the WFS because it is too much oriented to a download. It is not lockable to give one only instance (one only > geometry) I am not a specialist with standards but if GeoJSON and JSON standards together take something like 430 pages less than GML it is possible that there are less possibilities for different interpretations. http://geojson.org/geojson-spec.html http://www.ietf.org/rfc/rfc4627.txt http://www.opengeospatial.org/standards/gml If you are going to discuss with servers which are not managed by yourself you may meet some troubles with WMS GetFeatureInfo. WMS standard says very little about GetFeatureInfo output formats. Mainly it is just that the formats must be advertised in the WMS GetCapabilities. Limiting results from WFS to only one result is not a problem, you need just add &MAXFEATURES=1 to the request. The main problem when it comes to interactive web mapping use is that WFS does not have request for getting the closest feature from a given coordinate. -Jukka Rahkonen- >>2012/8/10 Rahkonen Jukka >>Hi, ? >>DescribeFeatureType is compulsory part of WSF so it is no wonder that it works automatically. ? >>I try to think what could be done. DecribeFeatureType must match with WFS GetFeature. It you would like to use DFT with WMS GetFeatureInfo then GetFeatureInfo could not be separately configurable. It should always use the schema defined for WFS. I suppose that this is how Geoserver works. I also believe that there are Mapserver users who want to get different GML from WFS GetFeature and WMS GetFeatureInfo. ? >>If GetFeatureInfo would produce GML with different schema than WFS GetFeature, how the users are supposed to read it? WMS does not have request "DescribeGetFeatureInfoSchema" and building such for Mapserver does not feel optimal. So the GetFeatureInfo GML should have a link to a static schema file that could be accessed through the web. ? >>OGR GML driver seems to be able to create such schema file automatically with XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html. ??Problem is that probably you do not want to send two files for the WMS client doing GetFeatureInfo calls (xml + xsd), not even zipped into one archive file. So OGR should generate .xsd file, store it into some place on the server and write a corresponging URL into the GML part of response so that client could read the file through the web. It feels complicated but probably it could be done.? XSISCHEMA=INTERNAL would be much more simple both on the server and client side but documentation tells that it does not work. ? >>How about forgetting GML and use something that does not need separate schema file, perhaps ?GeoJSON? ? ? -Jukka- ? Andrea Peri wrote: ? Hi Jukka, That option ask the user to produce itself all the schemas for all the layers I see instead that a getFeature request on the WFS section will produce automatically an xsd of the GML it return using the DescribeFeatureType request. I hope to find a solution to have this automatically produce also on the GetFeatureInfo. 2012/8/10 Rahkonen Jukka Hi, ? Would it work as you hope if the creation option "XSISCHEMAURI" could be set as described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html? ? "XSISCHEMAURI: If provided, this URI will be inserted as the schema location. Note that the schema file isn't actually accessed by OGR, so it is up to the user to ensure it will match the schema of the OGR produced GML data file." ? -Jukka Rahkonen- ? Andrea Peri wrote: ? Hi, doing a GetFeatureInfo of GML type I see the MapServer send this kind of response. ??? Unfortunately this response don't has a schemaLocation with a xsd for validation available. I try with the DescribeFeatureType, but it return an xsd for a featureCollection (for GML from WFS) don't for the msGMLOutput. Is possible to set the GetFeatureInfo from mapserver to have a GML response validable with the xsd from DescribeFeatureType ? 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 ????? ----------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- From hsansegundo at meteo.cat Mon Aug 13 05:48:35 2012 From: hsansegundo at meteo.cat (Helen San Segundo Navazo) Date: Mon, 13 Aug 2012 14:48:35 +0200 Subject: [mapserver-users] RV: Mapserver ignores classgroup parameters for raster layers? In-Reply-To: <5028C0BC.5070409@meteo.cat> References: <56B587E7C40D2F43B54FDC1BA897AC6D037AF3CF@KS-EVS1.smi.sachsen.de><56B587E7C40D2F43B54FDC1BA897AC6D037AF3D1@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF3D7@KS-EVS1.smi.sachsen.de> <5024BB4D.1070309@meteo.cat>, <5028C0BC.5070409@meteo.cat> Message-ID: <5028F7A3.4070701@meteo.cat> hi, with the 6.2 beta2 version the classgroup with raster layers works. Helen El 13/08/12 10:54, Helen San Segundo Navazo escribi?: > ok, I would try the 6.2, thanks >> ________________________________________ >> De: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] >> Enviado el: viernes, 10 de agosto de 2012 16:49 >> Para: San Segundo Navazo, Helen; mapserver-users at lists.osgeo.org >> Asunto: RE: [mapserver-users] Mapserver ignores classgroup parameters >> for raster layers? >> >> I believe this has been fixed in 6.2. Can you try the latest beta? >> --Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Helen >> San Segundo Navazo >> Sent: Friday, August 10, 2012 2:42 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Mapserver ignores classgroup parameters >> for raster layers? >> >> I'm using mapserver 6.0.2 and I've defined a raster layer with >> different classgroup styles. When I invoke the different styles only >> uses the first defined in the mapfile. >> I've seen some tickets whith this problem, anybody knows how to make >> classgroup work with raster layers? >> Thanks, >> Helen >> _______________________________________________ >> 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 Mon Aug 13 05:56:57 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 13 Aug 2012 08:56:57 -0400 Subject: [mapserver-users] postgis layer - postgresql table join eror In-Reply-To: References: <0fc901cd790b$28fa8400$7aef8c00$@gmail.com> Message-ID: <5028F999.1070007@swoodbridge.com> Make sure you sub-query works ins psql or pgadmin first. You care getting a SQL error not a mapserver error. SELECT Pipeline.the_geom AS the_geom, Pipeline.gid AS gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk FROM Pipeline LEFT JOIN Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk If this does wotk there it will not work in mapserver. -Steve W On 8/13/2012 4:24 AM, surahman putra wrote: > Thanks Thomas, > > But After I add FROM clause, it still give same message. > Do you have any idea what should I do to fix this problem? > > Surahman > > On Mon, Aug 13, 2012 at 2:26 PM, thomas bonfort > > wrote: > > You're missing a FROM clause, probably something like: > > > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, > Pipeline.gid AS > > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk > FROM Pipeline > > LEFT JOIN > > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery > USING > > UNIQUE gid USING srid=32648' > > -- > thomas > > On Mon, Aug 13, 2012 at 6:21 AM, Surahman Putra > > wrote: > > Hi > > > > > > > > I?m new mapserver-user. I have problem to join postgis layer to > postgre > > table. > > > > Here my map file data: > > > > > > > > DATA 'the_geom FROM (SELECT Pipeline.the_geom AS the_geom, > Pipeline.gid AS > > gid, Pipeline.status AS status, Kondur_block.id_wk AS id_wk LEFT JOIN > > Kondur_block ON Pipeline.id_wk = Kondur_block.id_wk) as subquery > USING > > UNIQUE gid USING srid=32648' > > > > > > > > And I get this message: > > > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > 'Pipeline'. > > msPostGISLayerWhichShapes(): Query error. Error executing query: > ERROR: > > syntax error at or near "LEFT" LINE 1: ...".status AS status, > > "Kondur_block".id_wk AS id_wk LEFT JOIN ... ^ > > > > > > > > Can annyone sugget what?s wrong with that? > > > > For Information I use mapserver version 6.03 and postgis version > 1.5.1 > > > > > > > > Thanks, > > > > Surahman > > > > > > _______________________________________________ > > 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 admin at michiganwxsystem.com Mon Aug 13 06:19:34 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Mon, 13 Aug 2012 09:19:34 -0400 Subject: [mapserver-users] php extension Message-ID: <5028FEE6.4000107@michiganwxsystem.com> mapserver is working, decided to give the php extension a whirl but this error has me baffled PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mapscript.so' - /usr/lib64/php/modules/php_mapscript.so: undefined symbol: DGifGetScreenDesc in Unknown on line 0 -- -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com From jmckenna at gatewaygeomatics.com Mon Aug 13 06:25:38 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 13 Aug 2012 10:25:38 -0300 Subject: [mapserver-users] php extension In-Reply-To: <5028FEE6.4000107@michiganwxsystem.com> References: <5028FEE6.4000107@michiganwxsystem.com> Message-ID: <50290052.4080600@gatewaygeomatics.com> On 12-08-13 10:19 AM, Jeff Lake wrote: > mapserver is working, > decided to give the php extension a whirl > but this error has me baffled > > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib64/php/modules/php_mapscript.so' - > /usr/lib64/php/modules/php_mapscript.so: undefined symbol: > DGifGetScreenDesc in Unknown on line 0 > > Maybe your system requires the Giflib package as well? Not sure. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From akrherz at iastate.edu Mon Aug 13 09:20:56 2012 From: akrherz at iastate.edu (Daryl Herzmann) Date: Mon, 13 Aug 2012 11:20:56 -0500 Subject: [mapserver-users] php extension In-Reply-To: <5028FEE6.4000107@michiganwxsystem.com> References: <5028FEE6.4000107@michiganwxsystem.com> Message-ID: On Mon, Aug 13, 2012 at 8:19 AM, Jeff Lake wrote: > mapserver is working, > decided to give the php extension a whirl > but this error has me baffled > > PHP Warning: PHP Startup: Unable to load dynamic library > '/usr/lib64/php/modules/php_mapscript.so' - > /usr/lib64/php/modules/php_mapscript.so: undefined symbol: DGifGetScreenDesc > in Unknown on line 0 Jeff, Which operating system? What does ldd /usr/lib64/php/modules/php_mapscript.so report? daryl From admin at michiganwxsystem.com Mon Aug 13 09:32:59 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Mon, 13 Aug 2012 12:32:59 -0400 Subject: [mapserver-users] php extension In-Reply-To: References: <5028FEE6.4000107@michiganwxsystem.com> Message-ID: <50292C3B.9020909@michiganwxsystem.com> hey Daryl... centos 5.8 64bit ldd /usr/lib64/php/modules/php_mapscript.so linux-vdso.so.1 => (0x00007fff1e29a000) libexpat.so.0 => /lib64/libexpat.so.0 (0x00002aef63c38000) libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aef63e5b000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aef640b0000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aef642d1000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aef64555000) libz.so.1 => /lib64/libz.so.1 (0x00002aef6477a000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aef6498e000) libm.so.6 => /lib64/libm.so.6 (0x00002aef64c8e000) libc.so.6 => /lib64/libc.so.6 (0x00002aef64f12000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aef65269000) libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x00002aef65477000) libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002aef65689000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aef65995000) /lib64/ld-linux-x86-64.so.2 (0x000000310ce00000) libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002aef65bca000) libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002aef65dcc000) libdl.so.2 => /lib64/libdl.so.2 (0x00002aef65fd1000) -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com On 8/13/2012 12:20, Daryl Herzmann wrote: > ldd /usr/lib64/php/modules/php_mapscript.so From punk.kish at gmail.com Mon Aug 13 14:03:00 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon, 13 Aug 2012 16:03:00 -0500 Subject: [mapserver-users] Projection library error. no options found in 'init' file Message-ID: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> I am, out of the blue, getting the following error [Mon Aug 13 15:55:37 2012].825787 msProcessProjection(): Projection library error. no options found in 'init' file What is it trying to tell me? This was working fine as of a few days ago, and I don't recall messing with it. -- Puneet Kishor From dmorissette at mapgears.com Mon Aug 13 14:07:46 2012 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 13 Aug 2012 17:07:46 -0400 Subject: [mapserver-users] Projection library error. no options found in 'init' file In-Reply-To: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> References: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> Message-ID: <50296CA2.2030800@mapgears.com> On 12-08-13 5:03 PM, Puneet Kishor wrote: > I am, out of the blue, getting the following error > > [Mon Aug 13 15:55:37 2012].825787 msProcessProjection(): Projection > library error. no options found in 'init' file > > > What is it trying to tell me? This was working fine as of a few days ago, and I don't recall messing with it. > The EPSG code you are trying to use is not defined in your 'epsg' file: http://mapserver.org/errors.html#msprocessprojection-no-options-found-in-init-file -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From woodbri at swoodbridge.com Mon Aug 13 14:09:53 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 13 Aug 2012 17:09:53 -0400 Subject: [mapserver-users] Projection library error. no options found in 'init' file In-Reply-To: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> References: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> Message-ID: <50296D21.1050609@swoodbridge.com> On 8/13/2012 5:03 PM, Puneet Kishor wrote: > I am, out of the blue, getting the following error > > [Mon Aug 13 15:55:37 2012].825787 msProcessProjection(): Projection > library error. no options found in 'init' file > > > What is it trying to tell me? This was working fine as of a few days ago, and I don't recall messing with it. Did you update your proj lib? If you did it probably replaced your /usr/share/proj/epsg file and you have lost and changes you made to it. If you have "init=epsg:900913" then this is looking for the file: /usr/share/proj/epsg or maybe: /usr/local/share/proj/epsg the epsg in the init string is case sensitive file name. And the 900913 or whatever code must exist in that file. The error message is saying it could not find the file or the SRS you specified. -Steve W From punk.kish at gmail.com Mon Aug 13 14:13:54 2012 From: punk.kish at gmail.com (Puneet Kishor) Date: Mon, 13 Aug 2012 16:13:54 -0500 Subject: [mapserver-users] Projection library error. no options found in 'init' file In-Reply-To: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> References: <53C0A8B4-D4B8-406C-A28E-E319B7579ECB@gmail.com> Message-ID: <42214126-312E-4849-A7D9-CF44B3B0B2AE@gmail.com> Never mind.... I upgraded macports, and that whacked my epsg file. Restored that, and am back in bidness. On Aug 13, 2012, at 4:03 PM, Puneet Kishor wrote: > I am, out of the blue, getting the following error > > [Mon Aug 13 15:55:37 2012].825787 msProcessProjection(): Projection > library error. no options found in 'init' file > > > What is it trying to tell me? This was working fine as of a few days ago, and I don't recall messing with it. > > > > -- > Puneet Kishor From surahmanputra at gmail.com Mon Aug 13 20:23:57 2012 From: surahmanputra at gmail.com (surahman putra) Date: Tue, 14 Aug 2012 10:23:57 +0700 Subject: [mapserver-users] postgis layer - postgresql table join eror Message-ID: I have change the SQL to this one: SELECT "Pipeline".the_geom AS the_geom, "Pipeline".gid AS gid, "Pipeline".status AS status, "Kondur_block".id_wk AS id_wk FROM "Pipeline" LEFT JOIN "Kondur_block" ON "Pipeline".id_wk = "Kondur_block".id_wk and it works on psql, but when I tried that SQL to map file, it give me this message: msDrawMap(): Image handling error. Failed to draw layer named 'Pipeline'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "Pipeline" LINE 1: ...e(ST_AsBinary(ST_Force_2D("the_geom FROM (SELECT "Pipeline".... ^ What I am missing on my mapfile? here is my mapfile : CONNECTIONTYPE postgis CONNECTION "dbname='Melibur' host=localhost port=5432 user=' ' password=' ' sslmode=disable" DATA 'the_geom FROM (SELECT "Pipeline".the_geom AS the_geom, "Pipeline".gid AS gid, "Pipeline".status AS status, "Kondur_block".id_wk AS id_wk FROM "Pipeline" LEFT JOIN "Kondur_block" ON "Pipeline".id_wk = "Kondur_block".id_wk) as subquery USING UNIQUE gid USING srid=32648' Thanks, Surahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jessica.Clarke at forestrytas.com.au Mon Aug 13 22:27:28 2012 From: Jessica.Clarke at forestrytas.com.au (Jessica Clarke) Date: Tue, 14 Aug 2012 15:27:28 +1000 Subject: [mapserver-users] php mapscript querymap doesnt highlight Message-ID: <502A6E60020000DD00017938@mail2.forestrytas.com.au> Hi, I'm trying to highlight the queried shape, using mapscript. It doesn't work if I include the querymap in the mapfile QUERYMAP STATUS ON STYLE HILITE END and it doesn't work in the php file $map->querymap->set('style', 2); Can someone please give me an example of how to do this? the feature id is read from the url. I think I'm missing something really obvious here. Cheers, Jess --------------------------------------------------------------- Forestry creates regional employment: http://youtu.be/UBIUGiCiX00 Growing tomorrow's high conservation value forests: http://www.youtube.com/watch?v=wP6XCailI-A -------------- next part -------------- An HTML attachment was scrubbed... URL: From aperi2007 at gmail.com Tue Aug 14 00:05:04 2012 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 14 Aug 2012 09:05:04 +0200 Subject: [mapserver-users] The GetFeatureInfo return a GML without a validation schema. In-Reply-To: <84446DEF76453C439E9E97E438E13A634639FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A634639FA@suutari.haapa.mmm.fi> Message-ID: Hi Jukka. I start to try to put a GeoJSON response, but seem it need a dedicated template. However after I found a better (for me) solution using the GML. It allow to response with a multipart response. This mean it send 1 response with two file inside it. So I send a GetFeatureInfo and MapsServer using ogr send me a response multipart where the first part (first file) is the XSD and the second part (the second file) is the GML data. This a good solution for me because I send both: The GML and the xsd. Also this GML is generated using OGR and so it is preferrable (for me) because it use the featureCollection and is perfectly understanted from GeoTools ( a library we are using). The mapfile setting to obtain it is this (from the documentation of mapserver): OUTPUTFORMAT NAME "OGRGML" MIMETYPE "text/gml" DRIVER "OGR/GML" FORMATOPTION "STORAGE=filesystem" FORMATOPTION "FORM=multipart" END and in the metadata section of Layer is need to put this: "wms_getfeatureinfo_formatlist" "OGRGML,OGRGEOJSON" Thx for your really useful hints. Regards, Andrea. 2012/8/13 Rahkonen Jukka > Andrea Peri wrote: > > > Hi, > >>If GetFeatureInfo would produce GML with different schema than WFS > GetFeature, how the users are supposed to read it? WMS does not have request > >>"DescribeGetFeatureInfoSchema" and building such for Mapserver does not > feel optimal. So the GetFeatureInfo GML should have a link to a static > >>schema file that could be accessed through the web. > > > Yes this was an option, but it is not the only. > > Another option could be an "Inline XML". It is an XML with it xsd > embedded. > > http://www.herongyang.com/XML/XSD-Statements-Embedded-in-XML-File.html > > GDAL/OGR can write such GML files but documentation warns that they may > not be valid. You can try with ogr2ogr for example with the following > command. If there is some troubles with my WFS you can use any other vector > format as input. > > ogr2ogr -f GML -dsco XSISCHEMA=INTERNAL test.gml > "wfs:http://hip.latuviitta.org/cgi-bin/tinyows" -sql "select * from > municipalities where kunta_ni1='Helsinki'" > > If the resulting GML seems good to you I would guess that someone here can > tell how to configure Mapserver to use that kind of output for > GetFeatureInfo. Formatoptions in OGR output settings seem promising to me > http://mapserver.org/output/ogr_output.html > > >>How about forgetting GML and use something that does not need separate > schema file, perhaps GeoJSON? > > > I guess GeoJSon is no a consolidated standard. > > So I guess the GeoJSON generated from geoServer is different from the > GeoJSON of MapServer or of other products. > > Our goal is to write routines able to speak with MapServer mainly with > MapServer but also with GeoServer or others WMS systems. > > The routins must be able to retrieve attributes and geometry. > > We don't want use the WFS because it is too much oriented to a download. > It is not lockable to give one only instance (one only > geometry) > > I am not a specialist with standards but if GeoJSON and JSON standards > together take something like 430 pages less than GML it is possible that > there are less possibilities for different interpretations. > http://geojson.org/geojson-spec.html > http://www.ietf.org/rfc/rfc4627.txt > http://www.opengeospatial.org/standards/gml > > If you are going to discuss with servers which are not managed by yourself > you may meet some troubles with WMS GetFeatureInfo. WMS standard says very > little about GetFeatureInfo output formats. Mainly it is just that the > formats must be advertised in the WMS GetCapabilities. > > Limiting results from WFS to only one result is not a problem, you need > just add &MAXFEATURES=1 to the request. The main problem when it comes to > interactive web mapping use is that WFS does not have request for getting > the closest feature from a given coordinate. > > -Jukka Rahkonen- > > >>2012/8/10 Rahkonen Jukka > >>Hi, > > >>DescribeFeatureType is compulsory part of WSF so it is no wonder that it > works automatically. > > >>I try to think what could be done. DecribeFeatureType must match with > WFS GetFeature. It you would like to use DFT with WMS GetFeatureInfo then > GetFeatureInfo could not be separately configurable. It should always use > the schema defined for WFS. > I suppose that this is how Geoserver works. I also believe that there are > Mapserver users who want to get different GML from WFS GetFeature and WMS > GetFeatureInfo. > > >>If GetFeatureInfo would produce GML with different schema than WFS > GetFeature, how the users are supposed to read it? WMS does not have > request "DescribeGetFeatureInfoSchema" and building such for Mapserver does > not feel optimal. So the GetFeatureInfo GML should have a link to a static > schema file that could be accessed through the web. > > >>OGR GML driver seems to be able to create such schema file automatically > with XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html. > Problem is that probably you do not want to send two files for the WMS > client doing GetFeatureInfo calls (xml + xsd), not even zipped into one > archive file. So OGR should generate .xsd file, store it into some place on > the server and write a corresponging URL into the GML part of response so > that client could read the file through the web. It feels complicated but > probably it could be done. XSISCHEMA=INTERNAL would be much more simple > both on the server and client side but documentation tells that it does not > work. > > >>How about forgetting GML and use something that does not need separate > schema file, perhaps GeoJSON? > > > -Jukka- > > Andrea Peri wrote: > > Hi Jukka, > > That option ask the user to produce itself all the schemas for all the > layers > > I see instead that a getFeature request on the WFS section will produce > automatically an xsd of the GML it return using the DescribeFeatureType > request. > > I hope to find a solution to have this automatically produce also on the > GetFeatureInfo. > 2012/8/10 Rahkonen Jukka > Hi, > > Would it work as you hope if the creation option "XSISCHEMAURI" could be > set as described in the OGR GML driver page > http://gdal.org/ogr/drv_gml.html? > > "XSISCHEMAURI: If provided, this URI will be inserted as the schema > location. Note that the schema file isn't actually accessed by OGR, so it > is up to the user to ensure it will match the schema of the OGR produced > GML data file." > > -Jukka Rahkonen- > > Andrea Peri wrote: > > Hi, > > doing a GetFeatureInfo of GML type I see the MapServer send this kind of > response. > > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > Unfortunately this response don't has a schemaLocation with a xsd for > validation available. > > I try with the DescribeFeatureType, but it return an xsd for a > featureCollection (for GML from WFS) don't for the msGMLOutput. > > Is possible to set the GetFeatureInfo from mapserver to have a GML > response validable with the xsd from DescribeFeatureType ? > > 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 ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > ----------------- > 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 stiramdasu at qcoherent.com Tue Aug 14 05:47:46 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Tue, 14 Aug 2012 07:47:46 -0500 Subject: [mapserver-users] KML generation Message-ID: <003a01cd7a1b$019dd900$04d98b00$@com> Hi, I know this would be a very basic question. I tried to look around on the web and in the previous lists emails. But, somehow I could not get a solution. Sorry for bothering evryone with this basic question. I am trying get a KML output from my mapserver. I was succesfull in getting a png output which means all my layers are being rendered correctly. Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP Section and added the following: OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION 'ATTACHMENT=lidar.kml' #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Now when I try to query the mapserver in mode=map, I am getting a parsing error. getString(): Symbol definition error. Parsing error near ('):(line 308). Any help will be greatly appreciated. Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at iastate.edu Tue Aug 14 05:45:46 2012 From: akrherz at iastate.edu (Daryl Herzmann) Date: Tue, 14 Aug 2012 07:45:46 -0500 Subject: [mapserver-users] php extension In-Reply-To: <50292C3B.9020909@michiganwxsystem.com> References: <5028FEE6.4000107@michiganwxsystem.com> <50292C3B.9020909@michiganwxsystem.com> Message-ID: On Mon, Aug 13, 2012 at 11:32 AM, Jeff Lake wrote: > hey Daryl... > centos 5.8 64bit > > ldd /usr/lib64/php/modules/php_mapscript.so > linux-vdso.so.1 => (0x00007fff1e29a000) > libexpat.so.0 => /lib64/libexpat.so.0 (0x00002aef63c38000) > libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aef63e5b000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aef640b0000) > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aef642d1000) > libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aef64555000) > libz.so.1 => /lib64/libz.so.1 (0x00002aef6477a000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aef6498e000) > libm.so.6 => /lib64/libm.so.6 (0x00002aef64c8e000) > libc.so.6 => /lib64/libc.so.6 (0x00002aef64f12000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aef65269000) > libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x00002aef65477000) > libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002aef65689000) > libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 > (0x00002aef65995000) > /lib64/ld-linux-x86-64.so.2 (0x000000310ce00000) > libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002aef65bca000) > libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002aef65dcc000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002aef65fd1000) Did you build mapscript yourself? Maybe you could try installing the giflib giflib-devel package and rebuild? daryl From darwiet at googlemail.com Tue Aug 14 05:53:03 2012 From: darwiet at googlemail.com (star wiet) Date: Tue, 14 Aug 2012 14:53:03 +0200 Subject: [mapserver-users] clickable POI's Message-ID: Dear MapServer Community, I am new to MapServer and have one general question: Is there any possibility to create "clickable" POI's/ Symbols in MapServer (like e.g. the googlemaps Photos or something like that)? The only thing I found so far is to combine MapServer and OpenLayers, but before entering that field I wanted to be sure, that this would be the only way. If anyone can give me a link/ tip where to search, I woul really appreciate it! Thank in advance, Darwiet, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Tue Aug 14 06:09:21 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 14 Aug 2012 13:09:21 +0000 Subject: [mapserver-users] KML generation In-Reply-To: <003a01cd7a1b$019dd900$04d98b00$@com> Message-ID: Sowmya, Looks like you might have a smart-quote there. Try OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION "ATTACHMENT=lidar.kml" #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu > Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' > Subject: [mapserver-users] KML generation Resent-From: Michael Smith > Hi, I know this would be a very basic question. I tried to look around on the web and in the previous lists emails. But, somehow I could not get a solution. Sorry for bothering evryone with this basic question. I am trying get a KML output from my mapserver. I was succesfull in getting a png output which means all my layers are being rendered correctly. Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP Section and added the following: OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION ?ATTACHMENT=lidar.kml? #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Now when I try to query the mapserver in mode=map, I am getting a parsing error. getString(): Symbol definition error. Parsing error near (?):(line 308). Any help will be greatly appreciated. Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Tue Aug 14 06:15:37 2012 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Tue, 14 Aug 2012 13:15:37 +0000 Subject: [mapserver-users] clickable POI's In-Reply-To: Message-ID: Darwiet, I would say that?s the best way but there is also imagemaps. See http://mapserver.org/output/imagemaps.html Personally, I'd recommend the openlayers route. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: star wiet > Date: Tuesday, August 14, 2012 8:53 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] clickable POI's Dear MapServer Community, I am new to MapServer and have one general question: Is there any possibility to create "clickable" POI's/ Symbols in MapServer (like e.g. the googlemaps Photos or something like that)? The only thing I found so far is to combine MapServer and OpenLayers, but before entering that field I wanted to be sure, that this would be the only way. If anyone can give me a link/ tip where to search, I woul really appreciate it! Thank in advance, Darwiet, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at qcoherent.com Tue Aug 14 08:14:50 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Tue, 14 Aug 2012 10:14:50 -0500 Subject: [mapserver-users] KML generation In-Reply-To: References: <003a01cd7a1b$019dd900$04d98b00$@com> Message-ID: <005d01cd7a2f$8d2bc540$a7834fc0$@com> Thanks Michael, That was indeed the error ! Thanks a ton! -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 8:09 AM To: Sowmya Tiramdasu; 'Mapserver-users' Subject: Re: [mapserver-users] KML generation Sowmya, Looks like you might have a smart-quote there. Try OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION "ATTACHMENT=lidar.kml" #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' Subject: [mapserver-users] KML generation Resent-From: Michael Smith Hi, I know this would be a very basic question. I tried to look around on the web and in the previous lists emails. But, somehow I could not get a solution. Sorry for bothering evryone with this basic question. I am trying get a KML output from my mapserver. I was succesfull in getting a png output which means all my layers are being rendered correctly. Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP Section and added the following: OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION 'ATTACHMENT=lidar.kml' #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Now when I try to query the mapserver in mode=map, I am getting a parsing error. getString(): Symbol definition error. Parsing error near ('):(line 308). Any help will be greatly appreciated. Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at qcoherent.com Tue Aug 14 08:46:44 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Tue, 14 Aug 2012 10:46:44 -0500 Subject: [mapserver-users] KML generation-partially working References: <003a01cd7a1b$019dd900$04d98b00$@com> Message-ID: <007301cd7a34$0230c0d0$06924270$@com> Hi, After changing the quotes. I got the kml working but only partially. Only one among my 4 layers is being displayed. The remaining are shown as a red cross mark on the Google earth. Only my 'sbet' layer is being displayed. All the remaining 'image','ControlPoints' and 'lidar' layers are not coming up. While when I render them as an image output , I can see all the layers perfectly. Can anyone please help me out with this? Find below a snapshot of the layers in my map file for your reference. LAYER NAME "image" TYPE RASTER STATUS OFF DATA "raster/lo-0002.tif" #OPACITY 50 ... END # LAYER LAYER NAME "lidar" TYPE RASTER STATUS ON CONNECTION "http://localhost:8080/keenland?" CONNECTIONTYPE WMS #OPACITY 50 METADATA ... END END LAYER NAME ControlPoints #Photogrammetric points DATA Photogrammetric_Point STATUS OFF TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 8 COLOR 190 20 190 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END ... END LAYER NAME sbet DATA SBET_Trajectory_Source STATUS OFF TYPE LINE EXTENT -84.760205 37.880771 -84.333587 38.208327 ... END -Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 8:09 AM To: Sowmya Tiramdasu; 'Mapserver-users' Subject: Re: [mapserver-users] KML generation Sowmya, Looks like you might have a smart-quote there. Try OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION "ATTACHMENT=lidar.kml" #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu Date: Tuesday, August 14, 2012 8:47 AM To: 'Mapserver-users' Subject: [mapserver-users] KML generation Resent-From: Michael Smith Hi, I know this would be a very basic question. I tried to look around on the web and in the previous lists emails. But, somehow I could not get a solution. Sorry for bothering evryone with this basic question. I am trying get a KML output from my mapserver. I was succesfull in getting a png output which means all my layers are being rendered correctly. Now I modified my mapfile . I removed the IMAGETYPE = png from the MAP Section and added the following: OUTPUTFORMAT NAME kml DRIVER "KML" MIMETYPE "application/vnd.google-earth.kml+xml" IMAGEMODE RGB EXTENSION "kml" FORMATOPTION 'ATTACHMENT=lidar.kml' #name of kml file returned - This is my line 308 FORMATOPTION "maxfeaturestodraw=100" END Now when I try to query the mapserver in mode=map, I am getting a parsing error. getString(): Symbol definition error. Parsing error near ('):(line 308). Any help will be greatly appreciated. Thanks in advance! Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at michiganwxsystem.com Tue Aug 14 11:02:14 2012 From: admin at michiganwxsystem.com (Jeff Lake) Date: Tue, 14 Aug 2012 14:02:14 -0400 Subject: [mapserver-users] php extension In-Reply-To: References: <5028FEE6.4000107@michiganwxsystem.com> <50292C3B.9020909@michiganwxsystem.com> Message-ID: <502A92A6.8080004@michiganwxsystem.com> I have tried fresh installs of mapserver, giflib, giflib-devel had to move gif_lib.h into /usr/lib64 so the configure of mapserver would quite complaining even tried -without-gif, configure griped about that -Jeff Lake MichiganWxSystem.com WeatherMichigan.net TheWeatherCenter.net GRLevelXStuff.com On 8/14/2012 8:45, Daryl Herzmann wrote: > On Mon, Aug 13, 2012 at 11:32 AM, Jeff Lake wrote: >> hey Daryl... >> centos 5.8 64bit >> >> ldd /usr/lib64/php/modules/php_mapscript.so >> linux-vdso.so.1 => (0x00007fff1e29a000) >> libexpat.so.0 => /lib64/libexpat.so.0 (0x00002aef63c38000) >> libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aef63e5b000) >> libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aef640b0000) >> libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aef642d1000) >> libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aef64555000) >> libz.so.1 => /lib64/libz.so.1 (0x00002aef6477a000) >> libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aef6498e000) >> libm.so.6 => /lib64/libm.so.6 (0x00002aef64c8e000) >> libc.so.6 => /lib64/libc.so.6 (0x00002aef64f12000) >> libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aef65269000) >> libXpm.so.4 => /usr/lib64/libXpm.so.4 (0x00002aef65477000) >> libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002aef65689000) >> libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 >> (0x00002aef65995000) >> /lib64/ld-linux-x86-64.so.2 (0x000000310ce00000) >> libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002aef65bca000) >> libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002aef65dcc000) >> libdl.so.2 => /lib64/libdl.so.2 (0x00002aef65fd1000) > Did you build mapscript yourself? Maybe you could try installing the > giflib giflib-devel package and rebuild? > > daryl > From Michael.Smith at erdc.dren.mil Tue Aug 14 14:25:44 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Tue, 14 Aug 2012 21:25:44 +0000 Subject: [mapserver-users] KML generation-partially working In-Reply-To: <000001cd7a52$a8ae8910$fa0b9b30$@com> Message-ID: You probably have to set your WEB / IMAGEURL to an absolute path since otherwise the kml references are relative and not picked up. And please, reply to the list, there are others that can learn and respond that way. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu > Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith > Subject: RE: [mapserver-users] KML generation-partially working Hi Michael, I looked in to the KML file. It looks fine. But the Images which have been generated in the ms_tmp files are blank. There was an image for each layer, which came out to be blank and for my layer 'ControlPoints' I gave under class ->Symbol-> Circle. So I have an image corresponding to this symbol in ms_tmp which is being used as the styleUrl in the KML. yet I am seeing a cross mark for that place mark in the Google earth. For the layer 'sbet' - it is a line, so there is no image generated at all and this layer is being displayed good on the Google earth. LAYER NAME ControlPoints #Photogrammetric points DATA Photogrammetric_Point STATUS OFF TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 8 COLOR 190 20 190 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END PROJECTION "init=epsg:2246" END END KML : ControlPoints 1 #LayerFolder_check ControlPoints.0 #style_symbol_circle_8.0_ffbe14be -84.61444330,38.04278949 -Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 10:37 AM To: Sowmya Tiramdasu Subject: Re: [mapserver-users] KML generation-partially working Have you looked inside the KML file? You can also set a DEBUG value on your layer (and mapfile) and look for anything that might be interrupting your KML write. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 14 14:55:30 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 14 Aug 2012 21:55:30 +0000 Subject: [mapserver-users] php mapscript querymap doesnt highlight In-Reply-To: <502A6E60020000DD00017938@mail2.forestrytas.com.au> References: <502A6E60020000DD00017938@mail2.forestrytas.com.au> Message-ID: How are you creating the image in your code? I mean, what does the code that does the query and generate a query map look like? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jessica Clarke Sent: Tuesday, August 14, 2012 12:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] php mapscript querymap doesnt highlight Hi, I'm trying to highlight the queried shape, using mapscript. It doesn't work if I include the querymap in the mapfile QUERYMAP STATUS ON STYLE HILITE END and it doesn't work in the php file $map->querymap->set('style', 2); Can someone please give me an example of how to do this? the feature id is read from the url. I think I'm missing something really obvious here. Cheers, Jess [FT on Facebook][FT on Twitter][FT You Tube Channel] Forestry creates regional employment: http://youtu.be/UBIUGiCiX00 Growing tomorrow's high conservation value forests: http://www.youtube.com/watch?v=wP6XCailI-A -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 14 14:59:58 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 14 Aug 2012 21:59:58 +0000 Subject: [mapserver-users] clickable POI's In-Reply-To: References: Message-ID: You can also integrate with Google Maps or any number of other free and commercial services (assuming the terms of service are ok). Really, there are loads of options but it's hard to be specific without knowing more about your requirements, data, etc... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Smith, Michael ERDC-CRREL-NH Sent: Tuesday, August 14, 2012 8:16 AM To: star wiet; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] clickable POI's Darwiet, I would say that's the best way but there is also imagemaps. See http://mapserver.org/output/imagemaps.html Personally, I'd recommend the openlayers route. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: star wiet > Date: Tuesday, August 14, 2012 8:53 AM To: "mapserver-users at lists.osgeo.org" > Subject: [mapserver-users] clickable POI's Dear MapServer Community, I am new to MapServer and have one general question: Is there any possibility to create "clickable" POI's/ Symbols in MapServer (like e.g. the googlemaps Photos or something like that)? The only thing I found so far is to combine MapServer and OpenLayers, but before entering that field I wanted to be sure, that this would be the only way. If anyone can give me a link/ tip where to search, I woul really appreciate it! Thank in advance, Darwiet, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: From iacovlev.pavel at gmail.com Wed Aug 15 00:52:42 2012 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Wed, 15 Aug 2012 10:52:42 +0300 Subject: [mapserver-users] Reloading MapCache configuration file on changes? In-Reply-To: References: <005801ccb39e$688abff0$39a03fd0$@firstbasesolutions.com> Message-ID: Sorry to come up with this again, Is it possible for mapcache to reload the apache process gracefully automatically if configuration changes are detected ? On Wed, Feb 22, 2012 at 1:16 PM, thomas bonfort wrote: > kept in memory accross the lifetime of the process. the conf file is > accessed at each request to check it's modification time though if you > have enabled auto reloading. > > -- > tb > > On Wed, Feb 22, 2012 at 12:00, Pavel Iacovlev wrote: >> Thank you for the sudo rule suggestion and for detailed explanation! >> >> Just one more question, if I use MapCache as fcgi, does this mean that on >> every request the configuration will be read and parsed ? or the >> configuration will be kept in memory until a the fastcgi process killed >> and respawned ? >> >> >> On Wed, Feb 22, 2012 at 12:37 PM, thomas bonfort >> wrote: >>> >>> On Wed, Feb 22, 2012 at 11:22, Pavel Iacovlev >>> wrote: >>> > apache2ctl -k graceful is not really an option for me because I would >>> > have >>> > to give root privileges to my apache/php. >>> you can create a sudo rule that only allows a user to run apache2ctl >>> -k graceful without giving full root access. >>> >>> > >>> > "AFAIK, this isn't possible." I don't know anything about apache modules >>> > and >>> > stuff so the next thing I say may not be applicable or just plain >>> > stupid, >>> > but maybe each process will hold their own copy of configuration so the >>> > apache process will be able to alter it's configuration upon detection >>> > of >>> > file change. There is certainly that added overhead of "checking last >>> > modified date" and keeping more copies in memory, but this should not be >>> > the >>> > default behavior. >>> >>> afaik, at the request level (which is were the freshness test would >>> occur), there's no way of freeing the memory that allocated the >>> initial configuration, and no way of allocating memory for the new >>> configuration that would live across the upcoming requests. >>> >>> > >>> > On Tue, Dec 6, 2011 at 1:00 PM, thomas bonfort >>> > wrote: >>> >> >>> >> AFAIK, this isn't possible. Inside an apache module, the configuration >>> >> is considered read-only as it is shared between multiple worker >>> >> threads/processed spawned by httpd. >>> >> >>> >> apachectl configtest && apachectl graceful will restart the server >>> >> gracefully, i.e. without aborting ongoing requests, and will load the >>> >> new configuration for subsequent requests. >>> >> >>> >> -- >>> >> thomas >>> >> >>> >> On Mon, Dec 5, 2011 at 23:37, John Taranu >>> >> wrote: >>> >> > Thomas, >>> >> > >>> >> > >>> >> > >>> >> > Is there a better way force MapCache to reload its configuration >>> >> > script >>> >> > than >>> >> > restarting apache? I?m working on an application that will use two >>> >> > load-balanced web servers running MapCache, all pointing to a single >>> >> > central >>> >> > tile repository and a single central .xml configuration file. The >>> >> > configuration file will occasionally be edited, either with deletions >>> >> > or >>> >> > additional tilesets. Both web servers need to reload the updated >>> >> > configuration .xml. >>> >> > >>> >> > >>> >> > >>> >> > Is it possible to set up MapCache to check if the config file was >>> >> > recently >>> >> > updated and, if so, reload the config .xml? It looks like this is >>> >> > currently >>> >> > enabled under FastCGI, but not under Apache. >>> >> > >>> >> > >>> >> > >>> >> > John >>> >> _______________________________________________ >>> >> mapserver-users mailing list >>> >> mapserver-users at lists.osgeo.org >>> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > >>> > >> >> From stiramdasu at qcoherent.com Wed Aug 15 03:48:30 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 15 Aug 2012 05:48:30 -0500 Subject: [mapserver-users] KML generation-partially working In-Reply-To: References: <000001cd7a52$a8ae8910$fa0b9b30$@com> Message-ID: <000001cd7ad3$831741c0$8945c540$@com> Hi Michael, I see your point. But, the images itself are blank. So making the paths absolute has no difference. When the output format is png, I get all the layers rendered correctly. But when the Output format is set to KML only, the image outputs from each layer are coming blank :(. So any inputs regarding this? Has anyone else ran in to the same situation? Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 4:26 PM To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] KML generation-partially working You probably have to set your WEB / IMAGEURL to an absolute path since otherwise the kml references are relative and not picked up. And please, reply to the list, there are others that can learn and respond that way. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith Subject: RE: [mapserver-users] KML generation-partially working Hi Michael, I looked in to the KML file. It looks fine. But the Images which have been generated in the ms_tmp files are blank. There was an image for each layer, which came out to be blank and for my layer 'ControlPoints' I gave under class ->Symbol-> Circle. So I have an image corresponding to this symbol in ms_tmp which is being used as the styleUrl in the KML. yet I am seeing a cross mark for that place mark in the Google earth. For the layer 'sbet' - it is a line, so there is no image generated at all and this layer is being displayed good on the Google earth. LAYER NAME ControlPoints #Photogrammetric points DATA Photogrammetric_Point STATUS OFF TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 8 COLOR 190 20 190 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END PROJECTION "init=epsg:2246" END END KML : ControlPoints 1 #LayerFolder_check ControlPoints.0 #style_symbol_circle_8.0_ffbe14be -84.61444330,38.04278949 -Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 10:37 AM To: Sowmya Tiramdasu Subject: Re: [mapserver-users] KML generation-partially working Have you looked inside the KML file? You can also set a DEBUG value on your layer (and mapfile) and look for anything that might be interrupting your KML write. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Aug 15 03:55:37 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 15 Aug 2012 10:55:37 +0000 Subject: [mapserver-users] KML generation-partially working In-Reply-To: <000001cd7ad3$831741c0$8945c540$@com> Message-ID: You said "So I have an image corresponding to this symbol in ms_tmp". Do you actually have a valid png image at /ms_tmp/502a9927_2bc4_10.png? The way KML output works is that the temp symbol images are generated and the the kml is written and the kml refers to those images. If the images are, in fact, valid, then its a path problem as I suggested earlier and the IMAGEURL is not absolute and pointing to your IMAGEPATH directory location. If the there is no file in /ms_tmp then its probably more of a permission or space problem. You should be able to see exactly whats happening with LAYER and MAP level debugging. See http://mapserver.org/optimization/debugging.html and set the DEBUG level to 5. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu > Date: Wednesday, August 15, 2012 6:48 AM To: Michael Smith >, "mapserver-users at lists.osgeo.org" > Subject: RE: [mapserver-users] KML generation-partially working Hi Michael, I see your point. But, the images itself are blank. So making the paths absolute has no difference. When the output format is png, I get all the layers rendered correctly. But when the Output format is set to KML only, the image outputs from each layer are coming blank :(. So any inputs regarding this? Has anyone else ran in to the same situation? Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 4:26 PM To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] KML generation-partially working You probably have to set your WEB / IMAGEURL to an absolute path since otherwise the kml references are relative and not picked up. And please, reply to the list, there are others that can learn and respond that way. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center From: Sowmya Tiramdasu > Date: Tuesday, August 14, 2012 3:26 PM To: Michael Smith > Subject: RE: [mapserver-users] KML generation-partially working Hi Michael, I looked in to the KML file. It looks fine. But the Images which have been generated in the ms_tmp files are blank. There was an image for each layer, which came out to be blank and for my layer 'ControlPoints' I gave under class ->Symbol-> Circle. So I have an image corresponding to this symbol in ms_tmp which is being used as the styleUrl in the KML. yet I am seeing a cross mark for that place mark in the Google earth. For the layer 'sbet' - it is a line, so there is no image generated at all and this layer is being displayed good on the Google earth. LAYER NAME ControlPoints #Photogrammetric points DATA Photogrammetric_Point STATUS OFF TYPE POINT CLASS STYLE # Symbol to be used (reference) SYMBOL "circle" # Size of the symbol in pixels SIZE 8 COLOR 190 20 190 # Outline colour (RGB) - black OUTLINECOLOR 0 0 0 END END PROJECTION "init=epsg:2246" END END KML : ControlPoints 1 #LayerFolder_check ControlPoints.0 #style_symbol_circle_8.0_ffbe14be -84.61444330,38.04278949 -Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Tuesday, August 14, 2012 10:37 AM To: Sowmya Tiramdasu Subject: Re: [mapserver-users] KML generation-partially working Have you looked inside the KML file? You can also set a DEBUG value on your layer (and mapfile) and look for anything that might be interrupting your KML write. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From darwiet at googlemail.com Wed Aug 15 04:01:40 2012 From: darwiet at googlemail.com (star wiet) Date: Wed, 15 Aug 2012 13:01:40 +0200 Subject: [mapserver-users] clickable POI's In-Reply-To: References: Message-ID: Sorry, I just realized how little informations I gave. I am currently concepting a "webmapping" project for an university project. It's not really dealing with geographical data, but with vector data. We need to create a browser-based abstract map with clickable symbols/icons (just like the photo's layer in googlemaps) and I don't know of another way to achive that than with a GIS-System that knows how to handle vector data. At the moment I thought of an PostGIS database/ MapServer combination. I have basic knowledge about PostGIS/ MapServer but never dealt with "interactive" maps. At the very end the user should be able to add POI's himself and interact with the map (means to point with the mouse over a POI and get some informations), This is the reason why I wanted to know whether MapServer is able to do that or whether I need something else (like OpenLayers). Thanks! Darwiet 2012/8/14 Lime, Steve D (DNR) > You can also integrate with Google Maps or any number of other free and > commercial services (assuming the terms of service are ok). Really, there > are loads of options but it?s hard to be specific without knowing more > about your requirements, data, etc?**** > > ** ** > > Steve**** > > ** ** > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Smith, Michael > ERDC-CRREL-NH > *Sent:* Tuesday, August 14, 2012 8:16 AM > *To:* star wiet; mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] clickable POI's**** > > ** ** > > Darwiet,**** > > ** ** > > I would say that?s the best way but there is also imagemaps. See > http://mapserver.org/output/imagemaps.html**** > > ** ** > > Personally, I'd recommend the openlayers route.**** > > ** ** > > Mike**** > > ** ** > > -- **** > > Michael Smith**** > > US Army Corps**** > > Remote Sensing GIS/Center**** > > ** ** > > *From: *star wiet > *Date: *Tuesday, August 14, 2012 8:53 AM > *To: *"mapserver-users at lists.osgeo.org" > *Subject: *[mapserver-users] clickable POI's**** > > ** ** > > Dear MapServer Community,**** > > **** > > I am new to MapServer and have one general question:**** > > Is there any possibility to create "clickable" POI's/ Symbols in MapServer > (like e.g. the googlemaps Photos or something like that)? The only thing I > found so far is to combine MapServer and OpenLayers, but before entering > that field I wanted to be sure, that this would be the only way.**** > > **** > > If anyone can give me a link/ tip where to search, I woul really > appreciate it!**** > > **** > > Thank in advance,**** > > Darwiet, Austria**** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Aug 15 05:15:21 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 15 Aug 2012 12:15:21 +0000 Subject: [mapserver-users] KML generation-partially working In-Reply-To: <001401cd7add$404e8060$c0eb8120$@com> Message-ID: If you have the image properly generating, then is just a matter of your mapping the image to the URL used in the KML. So your IMAGEURL value should return images from the /ms4w/tmp/ms_tmp directory. And it should be an absolute URL (eg http://servername/path/to/tmp) and you should verify that http://servername/path/to/tmp/502b8cc1_1e28_10.png is accessible from your browser. If so, then the KML will be able to access it and you should be all set. -- Michael Smith US Army Corps Remote Sensing GIS/Center -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Aug 15 06:18:51 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 15 Aug 2012 13:18:51 +0000 Subject: [mapserver-users] KML generation-partially working In-Reply-To: <001f01cd7ae1$bd0c1b90$372452b0$@com> Message-ID: Sorry, I'm getting a little confused. Are you generating ground overlay layers (eg one raster output for a number of layers) or actual KML features (eg, Placemarks with a geometry and an style marker)? If you are posting the KML to google maps, then the KML is public. Can you post the link to the KML so the list can actually see it and see what might be wrong. As for why your lidar layer might be blank, remember that KML output is always in epsg:4326. Perhaps you don't have a projection defined for your lidar layer and do for others. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From stiramdasu at qcoherent.com Wed Aug 15 07:57:03 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Wed, 15 Aug 2012 09:57:03 -0500 Subject: [mapserver-users] KML generation-partially working In-Reply-To: References: <001f01cd7ae1$bd0c1b90$372452b0$@com> Message-ID: <002701cd7af6$3b8fb670$b2af2350$@com> Hi Michael, Sorry for the confusion. I think it was the problem with the projections. I had the output projections set to 3578- which was for Google maps. Now, I changed it to espg:4326 and my KML came out exactly as expected. Thank you very much for all your help. If not for you , I am sure I couldn't have got this working. Thanks again and appreciate your help and patience. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:Michael.Smith at erdc.dren.mil] Sent: Wednesday, August 15, 2012 8:19 AM To: Sowmya Tiramdasu; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] KML generation-partially working Sorry, I'm getting a little confused. Are you generating ground overlay layers (eg one raster output for a number of layers) or actual KML features (eg, Placemarks with a geometry and an style marker)? If you are posting the KML to google maps, then the KML is public. Can you post the link to the KML so the list can actually see it and see what might be wrong. As for why your lidar layer might be blank, remember that KML output is always in epsg:4326. Perhaps you don't have a projection defined for your lidar layer and do for others. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Wed Aug 15 16:33:01 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Wed, 15 Aug 2012 23:33:01 +0000 Subject: [mapserver-users] Migrating mapcache sqlite database to new format Message-ID: Thomas, Was just trying to update my mapcache installation and found out that the sqlite databases I had built are no longer compatible with the current format. Specifically, they don't have the TILESET column and I have multiple sqlite db files for multiple layers. Is there a current configuration method to using this format or is there a workaround? Or should I just use and old SHA (b62172775d1377ef74c5499fef21101280d84377) until I have time to rebuild the caches. These are scattered tile caches, eg lots of areas of no coverage and the seeding (using GDAL to select the seed areas) can't take advantage of multiple threads to to the use of GDAL. Mike -- Michael Smith US Army Corps Remote Sensing GIS/Center -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrherz at iastate.edu Wed Aug 15 18:41:14 2012 From: akrherz at iastate.edu (Daryl Herzmann) Date: Wed, 15 Aug 2012 20:41:14 -0500 Subject: [mapserver-users] php extension In-Reply-To: <502A92A6.8080004@michiganwxsystem.com> References: <5028FEE6.4000107@michiganwxsystem.com> <50292C3B.9020909@michiganwxsystem.com> <502A92A6.8080004@michiganwxsystem.com> Message-ID: On Tue, Aug 14, 2012 at 1:02 PM, Jeff Lake wrote: > I have tried fresh installs > of mapserver, giflib, giflib-devel > had to move gif_lib.h into /usr/lib64 so the > configure of mapserver would quite complaining > > even tried -without-gif, configure griped about that More details please, gif_lib.h should definitely not go in /usr/lib64. Here's my compile command on RHEL6 ./configure --with-wms --with-wfs --with-wfsclient --with-wmsclient --with-proj --with-php=/usr --with-gdal --with-freetype --disable-ignore-missing-data --with-ogr --with-postgis --with-gd=/usr --enable-debug --with-warnings --with-geos --with-fastcgi --with-cairo --with-python daryl From Jukka.Rahkonen at mmmtike.fi Fri Aug 17 01:26:09 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 17 Aug 2012 08:26:09 +0000 Subject: [mapserver-users] Are WMS GetFeatureInfo results ordered by distance? Message-ID: <84446DEF76453C439E9E97E438E13A634667FA@suutari.haapa.mmm.fi> Hi, What results will be selected if GetFeatureInfo finds more features within the tolerance than used as FEATURE_COUNT parameter? Are they selected by distance are they just the first hits? If they were ordered by distance then GetFeatureInfo could be used for finding N nearest features which might be nice sometimes. -Jukka Rahkonen- From stephan at meissl.name Fri Aug 17 05:05:15 2012 From: stephan at meissl.name (Stephan =?ISO-8859-1?Q?Mei=DFl?=) Date: Fri, 17 Aug 2012 14:05:15 +0200 Subject: [mapserver-users] GetCoverage with WCS 2.0.0: Unknown parameter time In-Reply-To: <2101060225.27302.1342544782707.JavaMail.root@eberle-mail.de> References: <2101060225.27302.1342544782707.JavaMail.root@eberle-mail.de> Message-ID: <1345205115.3493.14.camel@io> Hi Jonas, sorry for my late reply. Could you please try with MapServer 6.0.3 and report back? I suspect it's related to #4307 [1]. cu Stephan [1] https://github.com/mapserver/mapserver/issues/4307 On Tue, 2012-07-17 at 12:06 -0500, Jonas Eberle wrote: > Hi Stephan, > > I am using Mapserver 6.0.1. > > At the bottom the two layers, within the WEB section I have the the validation block for parameter time. > > This was the request with WCS 2.0.0: > > http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.0&coverageID=NDVIData&format=GTiff&time=2012-04-01 > > The following request works with WCS 1.0.0: > > http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=1.0.0&coverage=NDVIData&format=GTiff&time=2012-04-01&CRS=EPSG:4326&RESX=0.05&RESY=0.05 > > Thanks, > Jonas > > > WEB > #..... > VALIDATION > 'time' '^[0-9\-]+$' > END > #..... > END > > LAYER > NAME 'time_idx_test' > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=** user=** > password=****** port=5432" > DATA "geom from mod13c2_ndvi" > > METADATA > "ows_title" "MOD13C2_NDVI TIME INDEX" > "ows_srs" "EPSG:900913 EPSG:4326" > "ows_extent" "49 85 180 44" > "ows_timeextent" "2000-02-01/2012-05-01/P1M" > "ows_timeitem" "date" > "ows_timedefault" "2012-05-01" > "ows_enable_request" "*" > END > > FILTERITEM 'date' > FILTER '%time%' > END > > LAYER > NAME 'NDVIData' > STATUS ON > DEBUG 5 > TYPE RASTER > > TILEITEM 'location' > TILEINDEX 'time_idx_test' > > PROJECTION > "init=epsg:4326" > END > METADATA > "wcs_label" 'NDVI data' > "ows_extent" "49 44 180 85" > "wcs_size" "7200 3599" > "wcs_bandcount" "1" > "ows_srs" 'EPSG:4326' > "wcs_rangeset_axes" 'bands' > "wcs_rangeset_name" 'bands' > "wcs_timeposition" "2000-02-01,2000-03-01,2000-04-01,2012-04-01" > "wcs_timeitem" 'date' > "wcs_enable_request" "*" > END > END > > ----- Urspr?ngliche Mail ----- > > Hi Jonas, > > > > which version of MapServer are you using? I guess variable > > substitution > > should also be available in WCS 2.0. Could you send a short Mapfile > > and > > request to reproduce the behavior? > > > > cu > > Stephan > > > > > > On Tue, 2012-07-17 at 11:51 -0500, Jonas Eberle wrote: > > > Hi list, > > > > > > > > > I tried to use WCS 2.0.0 with Mapserver. Having time series layers > > > with a tile index layer, I used variable substitution for the > > > different times. This works fine for WCS 1.0.0. > > > > > > > > > Trying the GetCoverage request with WCS 2.0.0 I get the following > > > error message right after executing the request: > > > msWCSParseRequest20(): WCS server error. Unknown parameter: 'time'. > > > > > > Is there an other possibility to use variable substitution with > > > GetCoverage request in WCS 2.0.0? > > > > > > > > > Thanks, > > > Jonas > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From Steve.Lime at state.mn.us Fri Aug 17 06:27:48 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 17 Aug 2012 13:27:48 +0000 Subject: [mapserver-users] Are WMS GetFeatureInfo results ordered by distance? In-Reply-To: <84446DEF76453C439E9E97E438E13A634667FA@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A634667FA@suutari.haapa.mmm.fi> Message-ID: Order is determined by the order of the features in the underlying data source. To do what you suggest, a good idea BTW, we'd need to change things a bit: - need to log distance computation - need to develop a sort utility - need to alter certain query code to apply a feature count at the very end, after all candidates are found and a distance sort is done Probably RFC worthy. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] Sent: Friday, August 17, 2012 3:26 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Are WMS GetFeatureInfo results ordered by distance? Hi, What results will be selected if GetFeatureInfo finds more features within the tolerance than used as FEATURE_COUNT parameter? Are they selected by distance are they just the first hits? If they were ordered by distance then GetFeatureInfo could be used for finding N nearest features which might be nice sometimes. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jonas.eberle at gmx.de Sun Aug 19 02:55:08 2012 From: jonas.eberle at gmx.de (Jonas Eberle) Date: Sun, 19 Aug 2012 04:55:08 -0500 (CDT) Subject: [mapserver-users] GetCoverage with WCS 2.0.0: Unknown parameter time In-Reply-To: <1345205115.3493.14.camel@io> Message-ID: <1479830518.311.1345370108207.JavaMail.root@eberle-mail.de> Hi Stephan, thanks for the hint. I updated to MapServer 6.0.3 and this error disappeared. Thanks, Jonas ----- Urspr?ngliche Mail ----- > Hi Jonas, > > sorry for my late reply. Could you please try with MapServer 6.0.3 > and > report back? I suspect it's related to #4307 [1]. > > cu > Stephan > > [1] https://github.com/mapserver/mapserver/issues/4307 > > > On Tue, 2012-07-17 at 12:06 -0500, Jonas Eberle wrote: > > Hi Stephan, > > > > I am using Mapserver 6.0.1. > > > > At the bottom the two layers, within the WEB section I have the the > > validation block for parameter time. > > > > This was the request with WCS 2.0.0: > > > > http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=2.0.0&coverageID=NDVIData&format=GTiff&time=2012-04-01 > > > > The following request works with WCS 1.0.0: > > > > http://artemis.geogr.uni-jena.de/cgi-bin/mapserv?map=/home/mapserver/modis/map.map&SERVICE=WCS&REQUEST=GetCoverage&VERSION=1.0.0&coverage=NDVIData&format=GTiff&time=2012-04-01&CRS=EPSG:4326&RESX=0.05&RESY=0.05 > > > > Thanks, > > Jonas > > > > > > WEB > > #..... > > VALIDATION > > 'time' '^[0-9\-]+$' > > END > > #..... > > END > > > > LAYER > > NAME 'time_idx_test' > > TYPE POLYGON > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=localhost dbname=** user=** > > password=****** port=5432" > > DATA "geom from mod13c2_ndvi" > > > > METADATA > > "ows_title" "MOD13C2_NDVI TIME INDEX" > > "ows_srs" "EPSG:900913 EPSG:4326" > > "ows_extent" "49 85 180 44" > > "ows_timeextent" "2000-02-01/2012-05-01/P1M" > > "ows_timeitem" "date" > > "ows_timedefault" "2012-05-01" > > "ows_enable_request" "*" > > END > > > > FILTERITEM 'date' > > FILTER '%time%' > > END > > > > LAYER > > NAME 'NDVIData' > > STATUS ON > > DEBUG 5 > > TYPE RASTER > > > > TILEITEM 'location' > > TILEINDEX 'time_idx_test' > > > > PROJECTION > > "init=epsg:4326" > > END > > METADATA > > "wcs_label" 'NDVI data' > > "ows_extent" "49 44 180 85" > > "wcs_size" "7200 3599" > > "wcs_bandcount" "1" > > "ows_srs" 'EPSG:4326' > > "wcs_rangeset_axes" 'bands' > > "wcs_rangeset_name" 'bands' > > "wcs_timeposition" > > "2000-02-01,2000-03-01,2000-04-01,2012-04-01" > > "wcs_timeitem" 'date' > > "wcs_enable_request" "*" > > END > > END > > > > ----- Urspr?ngliche Mail ----- > > > Hi Jonas, > > > > > > which version of MapServer are you using? I guess variable > > > substitution > > > should also be available in WCS 2.0. Could you send a short > > > Mapfile > > > and > > > request to reproduce the behavior? > > > > > > cu > > > Stephan > > > > > > > > > On Tue, 2012-07-17 at 11:51 -0500, Jonas Eberle wrote: > > > > Hi list, > > > > > > > > > > > > I tried to use WCS 2.0.0 with Mapserver. Having time series > > > > layers > > > > with a tile index layer, I used variable substitution for the > > > > different times. This works fine for WCS 1.0.0. > > > > > > > > > > > > Trying the GetCoverage request with WCS 2.0.0 I get the > > > > following > > > > error message right after executing the request: > > > > msWCSParseRequest20(): WCS server error. Unknown parameter: > > > > 'time'. > > > > > > > > Is there an other possibility to use variable substitution with > > > > GetCoverage request in WCS 2.0.0? > > > > > > > > > > > > Thanks, > > > > Jonas > > > > > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > From trikato at yahoo.com Sun Aug 19 17:14:12 2012 From: trikato at yahoo.com (sal wabuyele) Date: Sun, 19 Aug 2012 17:14:12 -0700 (PDT) Subject: [mapserver-users] (no subject) Message-ID: <1345421652.90847.YahooMailNeo@web164503.mail.gq1.yahoo.com> trikato at yahoo.com ? Sal >ITC >Faculty of Geo-Information >Science and Earth Observation >of the University of Twente? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.anckaert at sinax.be Mon Aug 20 05:09:05 2012 From: michael.anckaert at sinax.be (Michael Anckaert) Date: Mon, 20 Aug 2012 14:09:05 +0200 Subject: [mapserver-users] Help Wanted: mapserver + mysql + openlayers Message-ID: Hello everyone I'm looking for someone to help me out with some custom work on mapserver. This is a small project that I need to out source to someone who's comfortable with mapserver + mysql + openlayers. If you feel you are qualified to take on this project, please send me an email to discuss the particulars (requirements + pay). Kind regards Michael From forest21000 at yahoo.cn Mon Aug 20 06:28:06 2012 From: forest21000 at yahoo.cn (Forest) Date: Mon, 20 Aug 2012 21:28:06 +0800 (CST) Subject: [mapserver-users] java servlet use mapscript.jar In-Reply-To: Message-ID: <1345469286.8710.YahooMailClassic@web92103.mail.cnh.yahoo.com> Hello,I am using mapscript.jar in my java servlet project today.But when I use the mapObj map = new mapObj("d:\\test.map"); sentence,I came across an error: ?? source not found and Edit Source Lookup Path... ? Do anyone know how to solve the problem? ? Appreciated for ur answers,thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tape2m at virgilio.it Mon Aug 20 08:37:33 2012 From: tape2m at virgilio.it (Michele De Santis) Date: Mon, 20 Aug 2012 17:37:33 +0200 (CEST) Subject: [mapserver-users] oraclespatial connection Message-ID: <13944ae8bd8.tape2m@virgilio.it> Hi, I'm using MS4W with connection to Oraclespatial. I followed the istructions on http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g-11g to enable Oracle 10g support and "mapserv -v" returns a string that contains "INPUT=ORACLESPATIAL" In mapfile I have a Layer: LAYER NAME PSITDATA.COMUNI TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "UN/PW at DBSVILPU" DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633 VERSION 10g" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END METADATA "wms_title" "PSITDATA.COMUNI" #"wms_srs" "EPSG:26591" "wms_srs" "EPSG:32633" "wms_name" "PSITDATA.COMUNI" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_enable_request" "*" ##necessary END PROJECTION "init=epsg:32633" END END but I have the error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_FILTER' . Query statement: SELECT OBJECTID_1,rownum, SHAPE FROM PSITDATA.COMUNI WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. When I tried the SELECT in SQL*PLUS I had obtained: SP2-0552: Bind variable "ORDINATES" not declared Can you help me with the this error and with mapfile syntax? Thank you Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at erdc.dren.mil Mon Aug 20 08:53:13 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Mon, 20 Aug 2012 15:53:13 +0000 Subject: [mapserver-users] oraclespatial connection In-Reply-To: <13944ae8bd8.tape2m@virgilio.it> Message-ID: Michele, Try with DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633" The VERSION 10g part doesn't need to be used anymore. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: Michele De Santis > Reply-To: Michele De Santis > Date: Mon, 20 Aug 2012 17:37:33 +0200 To: > Subject: [mapserver-users] oraclespatial connection Resent-From: Michael Smith > Hi, I'm using MS4W with connection to Oraclespatial. I followed the istructions on http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g-11g to enable Oracle 10g support and "mapserv -v" returns a string that contains "INPUT=ORACLESPATIAL" In mapfile I have a Layer: LAYER NAME PSITDATA.COMUNI TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "UN/PW at DBSVILPU" DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633 VERSION 10g" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END METADATA "wms_title" "PSITDATA.COMUNI" #"wms_srs" "EPSG:26591" "wms_srs" "EPSG:32633" "wms_name" "PSITDATA.COMUNI" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_enable_request" "*" ##necessary END PROJECTION "init=epsg:32633" END END but I have the error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_FILTER' . Query statement: SELECT OBJECTID_1,rownum, SHAPE FROM PSITDATA.COMUNI WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. When I tried the SELECT in SQL*PLUS I had obtained: SP2-0552: Bind variable "ORDINATES" not declared Can you help me with the this error and with mapfile syntax? Thank you Michele _______________________________________________ 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 tape2m at virgilio.it Mon Aug 20 09:00:53 2012 From: tape2m at virgilio.it (Michele De Santis) Date: Mon, 20 Aug 2012 18:00:53 +0200 (CEST) Subject: [mapserver-users] R: Re: oraclespatial connection Message-ID: <13944c3e86a.tape2m@virgilio.it> Thank you Michael, I tried without version but with the same result. Michele ----Messaggio originale---- Da: Michael.Smith at erdc.dren.mil Data: 20-ago-2012 17.53 A: "Michele De Santis", "mapserver-users at lists.osgeo.org" Ogg: Re: [mapserver-users] oraclespatial connection Michele, Try with DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633" The VERSION 10g part doesn't need to be used anymore. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: Michele De Santis Reply-To: Michele De Santis Date: Mon, 20 Aug 2012 17:37:33 +0200 To: Subject: [mapserver-users] oraclespatial connection Resent-From: Michael Smith Hi, I'm using MS4W with connection to Oraclespatial. I followed the istructions on http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g-11g to enable Oracle 10g support and "mapserv -v" returns a string that contains "INPUT=ORACLESPATIAL" In mapfile I have a Layer: LAYER NAME PSITDATA.COMUNI TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "UN/PW at DBSVILPU" DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633 VERSION 10g" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END METADATA "wms_title" "PSITDATA.COMUNI" #"wms_srs" "EPSG:26591" "wms_srs" "EPSG:32633" "wms_name" "PSITDATA.COMUNI" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_enable_request" "*" ##necessary END PROJECTION "init=epsg:32633" END END but I have the error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_FILTER' . Query statement: SELECT OBJECTID_1,rownum, SHAPE FROM PSITDATA.COMUNI WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. When I tried the SELECT in SQL*PLUS I had obtained: SP2-0552: Bind variable "ORDINATES" not declared Can you help me with the this error and with mapfile syntax? Thank you Michele _______________________________________________ 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 Michael.Smith at erdc.dren.mil Mon Aug 20 09:10:12 2012 From: Michael.Smith at erdc.dren.mil (Smith, Michael ERDC-RDE-CRREL-NH) Date: Mon, 20 Aug 2012 16:10:12 +0000 Subject: [mapserver-users] R: Re: oraclespatial connection In-Reply-To: <13944c3e86a.tape2m@virgilio.it> Message-ID: Hmm, You can't use that statement directly in sqlplus You could use SELECT OBJECTID_1,rownum, SHAPE FROM PSITDATA.COMUNI WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),sdo_ordinate_array(minx, miny, maxx, maxy) ),'querytype=window') = 'TRUE' And put in the minx,miny,maxx, maxy values from the debug log to verify its all working properly. From: Michele De Santis > Reply-To: Michele De Santis > Date: Mon, 20 Aug 2012 18:00:53 +0200 To: Michael Smith >, "mapserver-users at lists.osgeo.org" > Subject: R: Re: [mapserver-users] oraclespatial connection Thank you Michael, I tried without version but with the same result. Michele ----Messaggio originale---- Da: Michael.Smith at erdc.dren.mil Data: 20-ago-2012 17.53 A: "Michele De Santis">, "mapserver-users at lists.osgeo.org"> Ogg: Re: [mapserver-users] oraclespatial connection Michele, Try with DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633" The VERSION 10g part doesn't need to be used anymore. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: Michele De Santis > Reply-To: Michele De Santis > Date: Mon, 20 Aug 2012 17:37:33 +0200 To: > Subject: [mapserver-users] oraclespatial connection Resent-From: Michael Smith > Hi, I'm using MS4W with connection to Oraclespatial. I followed the istructions on http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#oracle-10g-11g to enable Oracle 10g support and "mapserv -v" returns a string that contains "INPUT=ORACLESPATIAL" In mapfile I have a Layer: LAYER NAME PSITDATA.COMUNI TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "UN/PW at DBSVILPU" DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633 VERSION 10g" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END METADATA "wms_title" "PSITDATA.COMUNI" #"wms_srs" "EPSG:26591" "wms_srs" "EPSG:32633" "wms_name" "PSITDATA.COMUNI" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_enable_request" "*" ##necessary END PROJECTION "init=epsg:32633" END END but I have the error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_FILTER' . Query statement: SELECT OBJECTID_1,rownum, SHAPE FROM PSITDATA.COMUNI WHERE SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 'TRUE' . Check your data statement. When I tried the SELECT in SQL*PLUS I had obtained: SP2-0552: Bind variable "ORDINATES" not declared Can you help me with the this error and with mapfile syntax? Thank you Michele _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Aug 20 09:34:27 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 20 Aug 2012 09:34:27 -0700 (PDT) Subject: [mapserver-users] R: Re: oraclespatial connection In-Reply-To: <13944c3e86a.tape2m@virgilio.it> References: <13944c3e86a.tape2m@virgilio.it> Message-ID: <1345480467220-4996426.post@n6.nabble.com> Hello, I have an old local 10g instance that I use for testing. My LAYER contains: CONNECTIONTYPE oraclespatial CONNECTION "jeff/marvin at geo" DATA "ORA_GEOMETRY FROM (SELECT ORA_GEOMETRY FROM PARK)" I often do testing for layers through OGR first, using the ogrinfo commandline utility, such as: ogrinfo OCI:jeff/marvin and ogrinfo OCI:jeff/marvin at geo PARK -summary That way I can see the correct name of the geometry column, or extents, or other details. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com miki79 wrote > > LAYER > > NAME PSITDATA.COMUNI > > TYPE POLYGON > > CONNECTIONTYPE oraclespatial > > CONNECTION "UN/PW at DBSVILPU" > > DATA "SHAPE FROM PSITDATA.COMUNI USING SRID 32633 VERSION 10g" > > CLASS > > STYLE > > OUTLINECOLOR 0 0 0 > > COLOR 0 128 128 > > END > > END > > METADATA > > "wms_title" "PSITDATA.COMUNI" > > #"wms_srs" "EPSG:26591" > > "wms_srs" "EPSG:32633" > > "wms_name" "PSITDATA.COMUNI" > > "wms_server_version" "1.1.1" > > "wms_format" "image/png" > > "wms_enable_request" "*" ##necessary > > END > > PROJECTION > > "init=epsg:32633" > > END > > END > -- View this message in context: http://osgeo-org.1560.n6.nabble.com/R-Re-oraclespatial-connection-tp4996421p4996426.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon Aug 20 23:53:29 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Aug 2012 08:53:29 +0200 Subject: [mapserver-users] WCS Geotiff output issue In-Reply-To: References: <84446DEF76453C439E9E97E438E13A6303B31B@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A6303B34D@suutari.haapa.mmm.fi> Message-ID: Hi Guillaume, The environment shouldn't be an issue here, you can test on whichever is easiest for you. Using branch-6-2 is the way to go, but I can't guarantee there won't be any other bugs getting in your way. thanks, thomas On Mon, Aug 20, 2012 at 6:44 PM, Guillaume Loiselle wrote: > Hi Thomas, > > I do not work at the same place anymore and won't be able to test on the > same environment at all. I was on Windows XP; the closest I have now is > Vista x64. Would a test on this system still be worth anything to you? I > never compiled MapServer either. Can it be done on a 64-bits Windows? Should > I use the current dev 6.2 branch (with your fix, of course) or are other > bugs gonna get in my way? > > This should be an interesting adventure. > > Yours sincerely, > Guillaume > > > > > 2012/8/20 thomas bonfort >> >> Guillaume, >> I have added a fix that I believe would resolve your issue, at >> https://github.com/mapserver/mapserver/pull/4079 . Attached is the >> generated output with the patch applied. >> >> Can you please confirm on the issue tracker that this fixes your >> issues, and I will then make sure this gets applied in 6.2 and >> backported to 6.0.4 >> >> regards, >> thomas >> >> On Mon, Nov 7, 2011 at 10:06 PM, Guillaume Loiselle >> wrote: >> > Hi, >> > >> > Both mapfile and datasource are available in the first email I sent. >> > >> > >> > http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html >> > >> > Filenames appear to be a little bit messed up but the data itself is >> > fine. I >> > don't know why it went so wrong. >> > >> > Mapfile : >> > >> > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/2011102811-0001.obj >> > >> > Data (HDF5 format) : >> > >> > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111104/78e5fa24/data-0001.obj >> > >> > I intend to stick with 1.0.0 indeed. At least until it works... I will >> > look >> > up 1.1.0's details in due time. >> > >> > >> > >> > >> > >> > 2011/11/7 Rahkonen Jukka >> >> >> >> Pity that is was not just version mismatch. Could it be possible to >> >> see >> >> your mapfile and info about the datasource? >> >> Stay with version 1.0.0 while testing. With version 1.1.0 you must give >> >> EPSG:4326 coordinates in Northing-Easting order which can make things >> >> more >> >> complicated. >> >> >> >> -Jukka Rahkonen- >> >> ________________________________ >> >> Guillaume Loiselle wrote: >> >> >> >> Hi, >> >> >> >> I'm afraid it isn't. I didn't notice the request version I sent was a >> >> "mixed" one but I tried Coverage on 1.0.0 and Identifier on 1.1.0 as >> >> well >> >> and the result was basically the same. >> >> Here is the 1.1.0 version of the error : >> >> >> >> >> >> >> >> > >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.0" >> >> xml:lang="en-US" >> >> xsi:schemaLocation="http://www.opengis.net/ows/1.1 >> >> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> >> >> >> >> >> >> msWCSGetCoverage(): WCS server error. Requested BBOX >> >> (-178.804111261525,2802.84894277903,179.578125552223,2907.18853507175) >> >> is >> >> outside requested coverage BBOX (-70,45,-55,52) >> >> >> >> >> >> >> >> >> >> I of course spent a lot of time on the WCS server documentation page. I >> >> saw no reference to such a problem, though. My request, >> >> >> >> http://localhost/cgi-bin/mapserv.exe? >> >> map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map& >> >> SERVICE=WCS& >> >> VERSION=1.0.0& >> >> REQUEST=GetCoverage& >> >> COVERAGE=thelayer& >> >> CRS=EPSG:4326& >> >> BBOX=-67.5,48.922499263758255,-64.6875,50.736455137010665& >> >> WIDTH=256& >> >> HEIGHT=256& >> >> FORMAT=GTiff >> >> >> >> is formatted the same way the example is : >> >> >> >> http://my.host.com/cgi-bin/mapserv? >> >> map=mywcs.map& >> >> SERVICE=wcs& >> >> VERSION=1.0.0& >> >> REQUEST=GetCoverage& >> >> coverage=bathymetry& >> >> CRS=EPSG:42304& >> >> BBOX=-2200000,-712631,3072800,3840000& >> >> WIDTH=3199& >> >> HEIGHT=2833& >> >> FORMAT=GTiff >> >> >> >> >> >> My mapfile contains every required attribute. >> >> >> >> Thank you. >> >> Guillaume Loiselle >> >> >> >> >> >> 2011/11/7 Rahkonen Jukka >> >> > >> >> Hi, >> >> >> >> See examples in http://www.mapserver.org/ogc/wcs_server.html and try to >> >> avoid mixing versions 1.0.0 and 1.1.0. Let's hope using "coverage" >> >> instead >> >> of "identifier" will be enough. >> >> >> >> -Jukka Rahkonen- >> >> ________________________________ >> >> L?hett?j?: >> >> >> >> mapserver-users-bounces at lists.osgeo.org >> >> >> >> [mapserver-users-bounces at lists.osgeo.org] >> >> k?ytt?j?n Guillaume Loiselle >> >> [loiselle.guillaume at gmail.com] >> >> puolesta >> >> L?hetetty: 7. marraskuuta 2011 21:21 >> >> Vastaanottaja: >> >> mapserver-users at lists.osgeo.org >> >> Aihe: [mapserver-users] Re: WCS Geotiff output issue >> >> >> >> Hi, >> >> >> >> For some reason, the text part of the email didn't make it. It can be >> >> read >> >> below. >> >> Attachments can still be found in the first message : >> >> >> >> http://lists.osgeo.org/pipermail/mapserver-users/2011-November/070670.html >> >> >> >> Thanks. >> >> Guillaume Loiselle >> >> >> >> >> >> 2011/11/4 Guillaume Loiselle >> >> >> >> >> >> >> Hi, >> >> >> >> I installed MapServer 6.0.1 on Windows XP from MS4W. I cannot give you >> >> access to my MapServer instance but I can show you what "-v" gives me : >> >> >> >> MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >> >> SUPPORTS=PR >> >> OJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV >> >> SUPPORTS=FRIBIDI >> >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> >> SUPPORTS=WFS_CLIENT >> >> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI >> >> SUPPORTS=THREADS >> >> SUPPO >> >> RTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> >> >> I am able to generate a GeoTiff file through the use of a WMS service >> >> (see >> >> attachment : wmsoutput.tif). The request is : >> >> >> >> >> >> >> >> http://localhost/cgi-bin/mapserv.exe?SERVICE=WMS&map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&LAYERS=thelayer&VERSION=1.1.1&REQUEST=GetMap&bbox=-67.5,48.922499263758255,-64.6875,50.736455137010665&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&FORMAT=GTiff >> >> >> >> However, I cannot do so with a WCS service. I first tried with : >> >> >> >> >> >> >> >> http://localhost/cgi-bin/mapserv.exe?SERVICE=WCS&map=D:/Guillaume/ProjetCourantsGlaces/WCSproblem/2011102811.map&IDENTIFIER=thelayer&VERSION=1.0.0&REQUEST=GetCoverage&BBOX=-67.5,48.922499263758255,-64.6875,50.736455137010665&CRS=EPSG:4326&WIDTH=256&HEIGHT=256&FORMAT=GTiff >> >> >> >> , to which I can add : >> >> >> >> &RESPONSE_CRS=EPSG:4326 >> >> >> >> for the same result (since 4326 is my native projection). Said result >> >> is >> >> not a tiff file, but an error : >> >> >> >> >> >> > >> xmlns="http://www.opengis.net/ogc" >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:schemaLocation="http://www.opengis.net/ogc >> >> http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> >> >> > >> locator="bbox">msWCSGetCoverage(): WCS server error. Requested BBOX >> >> (-178.835708198757,2803.05273104522,179.552848002437,2906.98474680556) >> >> is >> >> outside requested coverage BBOX (-70,45,-55,52) >> >> >> >> >> >> >> >> This error doesn't make sense to me. Which projection is it using to >> >> get >> >> these silly values? Anyway, the BBOX in the request is definitely >> >> included >> >> in the extent... Now what if I change the Response_CRS? I would expect >> >> it to >> >> give me the same error, since it doesn't affect the requested BBOX. >> >> Yet, >> >> this time no error is produced and I obtain a tiff file (see attachment >> >> : >> >> wcsoutput.tif). The data is all wrong (0 everywhere), though. And if I >> >> open >> >> both WMS and WCS obtained tiffs in QuantumGIS, they appear nowhere near >> >> each >> >> other (for the same bbox... yes). >> >> >> >> I attached the results of GetCapabilities and DescribeCoverage requests >> >> as >> >> well as the MapServer logs (modified to map logs with requests). The >> >> data >> >> source is an HDF5 file (see attachment : data.h5). I suspect an issue >> >> on >> >> MapServer's side but I would be happy if you could tell me it's all my >> >> fault >> >> (and how to fix it). >> >> >> >> Oh, a last thing : it may or may not be related. I had issues with the >> >> KML/KMZ WMS outputformats. Results for epsg:4326 and epsg:900913 were >> >> completely different (and wrong, of course). I might open a new >> >> discussion >> >> on this subject at some point. >> >> >> >> Thank you all for your help. >> >> Guillaume Loiselle >> >> >> >> P.S. : If you want to test, know that epsg:900913 is the same as >> >> epsg:3857 >> >> (which is more likely to be in your epsg reference file). >> >> >> >> >> >> _______________________________________________ >> >> 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 tape2m at virgilio.it Tue Aug 21 02:35:00 2012 From: tape2m at virgilio.it (Michele De Santis) Date: Tue, 21 Aug 2012 11:35:00 +0200 (CEST) Subject: [mapserver-users] SDE connection with MS4W Message-ID: <1394888fa08.tape2m@virgilio.it> Hello, I'm trying to connect Mapserver with SDE in MS4W. I followed the README-sde.txt to Enable SDE 9.1, 9.2, 9.3 Support in MS4W's MapServer. This is my Layer: LAYER NAME PSITDATA.COMUNI TYPE POLYGON CONNECTIONTYPE PLUGIN CONNECTION "host,port:1521,DBNAME,UN,PW" PLUGIN "C:/ms4w/Apache/cgi-bin/msplugin_sde_92.dll" DATA "PSITDATA.COMUNI,SHAPE,sde.DEFAULT" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END METADATA "wms_title" "PSITDATA.COMUNI" #"wms_srs" "EPSG:26591" "wms_srs" "EPSG:32633" "wms_name" "PSITDATA.COMUNI" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_enable_request" "*" ##necessary END PROJECTION "init=epsg:32633" END END but in the MapServer errors log I can see the following lines: msGetSymbol(): General error message. Can't load requested dynamic library: C:/ms4w/Apache/cgi-bin/msplugin_sde_92.dll loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: C:/ms4w/Apache/cgi-bin/msplugin_sde_92.dll Can anyone help me please! Thanks in advance. Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From fine_sharad at hotmail.com Tue Aug 21 03:19:11 2012 From: fine_sharad at hotmail.com (sharad) Date: Tue, 21 Aug 2012 03:19:11 -0700 (PDT) Subject: [mapserver-users] show label text in class object Message-ID: <1345544351907-4996605.post@n6.nabble.com> I have create dynamic layer in mapObject and set class properties as following mapObj bMap= Session["baseMap"] as mapObj; //create dynamic layer layerObj lyrObj = new layerObj(bMap); lyrObj.status = mapscript.MS_ON; lyrObj.connectiontype = MS_CONNECTION_TYPE.MS_OGR; lyrObj.connection = "roadline.shp"; lyrObj.name = "testDynLayer"; lyrObj.type = MS_LAYER_TYPE.MS_LAYER_LINE; lyrObj.data = "SELECT * FROM roadline LEFT JOIN 'D:\\TEST\\MapFile\\test.csv'.test ON roadline.KMCROAD_ID = test.SELECTEDCODE"; lyrObj.labelitem = "RESPONDENTNAME"; //create first class classObj newclass = new classObj(lyrObj); newclass.name = "Dynamic Layer"; newclass.setText("'[DESCRIPTIO]'"); newclass.label.color = new colorObj(100, 100, 100, 20); styleObj style = new styleObj(newclass); colorObj clrObj = new colorObj(255, 0, 255, 20); style.color = clrObj; //create second class using expression classObj newclass1 = new classObj(lyrObj); newclass1.name = "Dynamic Layer1"; newclass1.setExpression("[QNRCODE]=137"); newclass1.setText("'[QNRCODE]'"); //this doesnot work newclass1.label.color = new colorObj(100, 100, 100, 20); styleObj style1 = new styleObj(newclass1); style1.color = new colorObj(0, 225, 255, 20); labelObj lablObj1 = newclass1.label; lablObj1.type = MS_FONT_TYPE.MS_TRUETYPE; lablObj1.font = "verdana"; lablObj1.color = new colorObj(150, 150, 150, 20); lablObj1.size = 6; lablObj1.position = (int)MS_POSITIONS_ENUM.MS_AUTO; lablObj1.buffer = 4; imageObj img = bMap.draw(); string session_Id = Session.SessionID; String loginDateString = (String)Session["LOGINDATE"]; img.save(Server.MapPath("MapImages/" + loginDateString + "/bM_" + session_Id + ".png"), bMap); //display maps ibMap.ImageUrl = "MapImages/" + loginDateString + "/bM_" + session_Id + ".png?id=" + DateTime.Now.Ticks; //legTest.ImageUrl = "MapImages/" + loginDateString + "/lg_" + session_Id + ".png"; SetLayerSelectionTree(bMap); Session["baseMap"] = bMap; this code generates the dynamic layer and adddt into the base map. all other setting works perfectly but no layer label is displayed. what is the problem? please suggest. regards sharad -- View this message in context: http://osgeo-org.1560.n6.nabble.com/show-label-text-in-class-object-tp4996605.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at unep.org Tue Aug 21 07:07:04 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 21 Aug 2012 16:07:04 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? Message-ID: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> Hi there, I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... ^ msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. msValidateParameter(): Regular expression error. Parameter pattern validation failed. Thanks for any hints/clarification. Stefan From thomas.bonfort at gmail.com Tue Aug 21 07:10:38 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Aug 2012 16:10:38 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? In-Reply-To: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> References: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> Message-ID: http://mapserver.org/cgi/runsub.html#validation On Tue, Aug 21, 2012 at 4:07 PM, Stefan Schwarzer wrote: > Hi there, > > I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: > > DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" > > That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is > > > msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" > LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... > ^ > > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > > > > Thanks for any hints/clarification. > > Stefan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From adams at terrestris.de Tue Aug 21 07:10:47 2012 From: adams at terrestris.de (Till Adams) Date: Tue, 21 Aug 2012 16:10:47 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? In-Reply-To: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> References: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> Message-ID: <503396E7.9080002@terrestris.de> Stefan, from mapserver 6 on you must define the default values for the parameters in your metadata-tag and also provide a validation-pattern. You'll find more here: http://mapserver.org/cgi/runsub.html Regards, Till On 21.08.2012 16:07, Stefan Schwarzer wrote: > Hi there, > > I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: > > DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" > > That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is > > > msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" > LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... > ^ > > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > msValidateParameter(): Regular expression error. Parameter pattern validation failed. > > > > Thanks for any hints/clarification. > > Stefan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- NEWS: -> GO Mobile - jetzt WebGIS auch auf Smartphones -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen ---------------------------------------------------- terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 ---------------------------------------------------- Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From stefan.schwarzer at unep.org Tue Aug 21 07:41:17 2012 From: stefan.schwarzer at unep.org (Stefan Schwarzer) Date: Tue, 21 Aug 2012 16:41:17 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? In-Reply-To: <503396E7.9080002@terrestris.de> References: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> <503396E7.9080002@terrestris.de> Message-ID: <0DB5AEEA-5530-4630-B26C-7FCB8678AED3@unep.org> Thanks so much for the quick responses! If I understand it correctly, I need to specify "DATAPATTERN" in the MAP part, in order to use the parameter in the DATA request: Doc is saying: LAYER: DATA (must validate against DATAPATTERN) which would look like this: SHAPEPATH '/www/xxx/data' FONTSET '/www/xxx/htdocs/mod_map/etc/fonts.txt' SYMBOLSET '/www/xxx/htdocs/mod_map/etc/symbols.sym' DATAPATTERN '^[0-9]' with the DATA request like: DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" Hmmm?. But that doesn't work. msDrawMap(): Image handling error. Failed to draw layer named 'capitals_mask'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near ")" LINE 1: ...capitals WHERE capitals.id_country <> %id_country%) AS foo w? Can you shed some light on it? I am not really familiar with the regular expressions. I am just passing an integer. Thanks for any hints! Stef On Aug 21, 2012, at 4:10 PM, Till Adams wrote: > Stefan, > > from mapserver 6 on you must define the default values for the > parameters in your metadata-tag and also provide a validation-pattern. > > You'll find more here: > http://mapserver.org/cgi/runsub.html > > Regards, Till > > > > On 21.08.2012 16:07, Stefan Schwarzer wrote: >> Hi there, >> >> I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: >> >> DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" >> >> That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is >> >> >> msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. >> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" >> LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... >> ^ >> >> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >> >> >> >> Thanks for any hints/clarification. >> >> Stefan >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- > > NEWS: > -> GO Mobile - jetzt WebGIS auch auf Smartphones > -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen > > > ---------------------------------------------------- > terrestris GmbH & Co. KG > Puetzchens Chaussee 56 > 53227 Bonn > Germany > > Till Adams > Geschaeftsfuehrung > > Tel: +49 (0)228 / 962 899-52 > Mobile: +49 (0)151 / 25394429 > Fax: +49 (0)228 / 962 899-57 > > adams at terrestris.de > http://www.terrestris.de > Amtsgericht Bonn, HRA 6835 > ---------------------------------------------------- > > Komplementaerin: > > terrestris Verwaltungs GmbH > > vertreten durch: > Hinrich Paulsen, Till Adams > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Tue Aug 21 07:49:47 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Aug 2012 16:49:47 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? In-Reply-To: <0DB5AEEA-5530-4630-B26C-7FCB8678AED3@unep.org> References: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> <503396E7.9080002@terrestris.de> <0DB5AEEA-5530-4630-B26C-7FCB8678AED3@unep.org> Message-ID: You need to validate the substituted variable: LAYER VALIDATION "id_country" "^[0-9]+$" END DATA ... END On Tue, Aug 21, 2012 at 4:41 PM, Stefan Schwarzer wrote: > Thanks so much for the quick responses! > > If I understand it correctly, I need to specify "DATAPATTERN" in the MAP part, in order to use the parameter in the DATA request: > > Doc is saying: LAYER: DATA (must validate against DATAPATTERN) > > > which would look like this: > > SHAPEPATH '/www/xxx/data' > FONTSET '/www/xxx/htdocs/mod_map/etc/fonts.txt' > SYMBOLSET '/www/xxx/htdocs/mod_map/etc/symbols.sym' > DATAPATTERN '^[0-9]' > > > with the DATA request like: > > DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" > > > Hmmm?. But that doesn't work. > > msDrawMap(): Image handling error. Failed to draw layer named 'capitals_mask'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near ")" > LINE 1: ...capitals WHERE capitals.id_country <> %id_country%) AS foo w? > > > Can you shed some light on it? I am not really familiar with the regular expressions. I am just passing an integer. > > Thanks for any hints! > > Stef > > > > > On Aug 21, 2012, at 4:10 PM, Till Adams wrote: > >> Stefan, >> >> from mapserver 6 on you must define the default values for the >> parameters in your metadata-tag and also provide a validation-pattern. >> >> You'll find more here: >> http://mapserver.org/cgi/runsub.html >> >> Regards, Till >> >> >> >> On 21.08.2012 16:07, Stefan Schwarzer wrote: >>> Hi there, >>> >>> I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: >>> >>> DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" >>> >>> That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is >>> >>> >>> msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" >>> LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... >>> ^ >>> >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> >>> >>> >>> Thanks for any hints/clarification. >>> >>> Stefan >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> -- >> >> NEWS: >> -> GO Mobile - jetzt WebGIS auch auf Smartphones >> -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen >> >> >> ---------------------------------------------------- >> terrestris GmbH & Co. KG >> Puetzchens Chaussee 56 >> 53227 Bonn >> Germany >> >> Till Adams >> Geschaeftsfuehrung >> >> Tel: +49 (0)228 / 962 899-52 >> Mobile: +49 (0)151 / 25394429 >> Fax: +49 (0)228 / 962 899-57 >> >> adams at terrestris.de >> http://www.terrestris.de >> Amtsgericht Bonn, HRA 6835 >> ---------------------------------------------------- >> >> Komplementaerin: >> >> terrestris Verwaltungs GmbH >> >> vertreten durch: >> Hinrich Paulsen, Till Adams >> _______________________________________________ >> 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 adams at terrestris.de Tue Aug 21 08:19:55 2012 From: adams at terrestris.de (Till Adams) Date: Tue, 21 Aug 2012 17:19:55 +0200 Subject: [mapserver-users] Passing an additional parameter via URL for WMS request - doesn't work anymore with new mapserver? In-Reply-To: <0DB5AEEA-5530-4630-B26C-7FCB8678AED3@unep.org> References: <7330A471-1992-4287-9A00-7E5F1C94B685@unep.org> <503396E7.9080002@terrestris.de> <0DB5AEEA-5530-4630-B26C-7FCB8678AED3@unep.org> Message-ID: <5033A71B.40701@terrestris.de> Stefan, this is a working example from a layer: METADATA [...] 'LEVEL_validation_pattern' '1|1,2|1,2,3|1,2,3,4|1,2,3,4,5' 'default_LEVEL' '1,2' [...] This sets the Keyword LEVEL which is added to your URL to the Default-Value "1,2" and allows the values defined in the validation pattern "LEVEL_validation_pattern" Regards, Till On 21.08.2012 16:41, Stefan Schwarzer wrote: > Thanks so much for the quick responses! > > If I understand it correctly, I need to specify "DATAPATTERN" in the MAP part, in order to use the parameter in the DATA request: > > Doc is saying: LAYER: DATA (must validate against DATAPATTERN) > > > which would look like this: > > SHAPEPATH '/www/xxx/data' > FONTSET '/www/xxx/htdocs/mod_map/etc/fonts.txt' > SYMBOLSET '/www/xxx/htdocs/mod_map/etc/symbols.sym' > DATAPATTERN '^[0-9]' > > > with the DATA request like: > > DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" > > > Hmmm?. But that doesn't work. > > msDrawMap(): Image handling error. Failed to draw layer named 'capitals_mask'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near ")" > LINE 1: ...capitals WHERE capitals.id_country <> %id_country%) AS foo w? > > > Can you shed some light on it? I am not really familiar with the regular expressions. I am just passing an integer. > > Thanks for any hints! > > Stef > > > > > On Aug 21, 2012, at 4:10 PM, Till Adams wrote: > >> Stefan, >> >> from mapserver 6 on you must define the default values for the >> parameters in your metadata-tag and also provide a validation-pattern. >> >> You'll find more here: >> http://mapserver.org/cgi/runsub.html >> >> Regards, Till >> >> >> >> On 21.08.2012 16:07, Stefan Schwarzer wrote: >>> Hi there, >>> >>> I used to pass a parameter in a WMS request in order to specify which country should be highlighted. The MAPFILE would read that and, via an EXPRESSION, set all country but the selected one to a bit of opacity: >>> >>> DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country <> %id_country%) AS foo USING UNIQUE gid USING srid=4326" >>> >>> That doesn't work anymore after upgrading our machine. So, I am not 100% sure if this comes from mapserver, or if there is anything else involved. But it seems more like a mapserver problem, as the error-message is >>> >>> >>> msDrawMap(): Image handling error. Failed to draw layer named 'capitals_selected'. >>> msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near "%" >>> LINE 1: ...als.gid FROM capitals WHERE capitals.id_country = %id_countr... >>> ^ >>> >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> msValidateParameter(): Regular expression error. Parameter pattern validation failed. >>> >>> >>> >>> Thanks for any hints/clarification. >>> >>> Stefan >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> -- >> >> NEWS: >> -> GO Mobile - jetzt WebGIS auch auf Smartphones >> -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen >> >> >> ---------------------------------------------------- >> terrestris GmbH & Co. KG >> Puetzchens Chaussee 56 >> 53227 Bonn >> Germany >> >> Till Adams >> Geschaeftsfuehrung >> >> Tel: +49 (0)228 / 962 899-52 >> Mobile: +49 (0)151 / 25394429 >> Fax: +49 (0)228 / 962 899-57 >> >> adams at terrestris.de >> http://www.terrestris.de >> Amtsgericht Bonn, HRA 6835 >> ---------------------------------------------------- >> >> Komplementaerin: >> >> terrestris Verwaltungs GmbH >> >> vertreten durch: >> Hinrich Paulsen, Till Adams >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- NEWS: -> GO Mobile - jetzt WebGIS auch auf Smartphones -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen ---------------------------------------------------- terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 ---------------------------------------------------- Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From marcandre_trottier at hotmail.com Tue Aug 21 08:38:59 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Tue, 21 Aug 2012 11:38:59 -0400 Subject: [mapserver-users] validation block Message-ID: there is my layer's definition : LAYER VALIDATION ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' #ID_REG '[[a-zA-Z0-9]{0,10},??]*' END INCLUDE "../layers/bd/adn_station_max_v.map" CLASSGROUP "BASSIN" NAME "adn_station_bassin" END LAYER VALIDATION #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' ID_REG '[[a-zA-Z0-9]{0,10},??]*' END INCLUDE "../layers/bd/adn_station_max_v.map" CLASSGROUP "REG_ADMIN" NAME "adn_station_reg_admin" END with these commented lines a got this error : msValidateParameter(): Regular expression error. Parameter pattern validation failed. without comment, i got no error. CLASSGROUP 'BASSIN' contains many class but each class use only 'ID_BASSIN' and CLASSGROUP 'REG_ADMIN' contains many class but each class use only 'ID_REG' is it the right thing to do ? or like i thought, the validation block can contains only the variable used by the layer ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Aug 21 08:52:37 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 21 Aug 2012 17:52:37 +0200 Subject: [mapserver-users] validation block In-Reply-To: References: Message-ID: On Tue, Aug 21, 2012 at 5:38 PM, Marc-Andr? Trottier wrote: > there is my layer's definition : > > LAYER > VALIDATION > ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > #ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max_v.map" > CLASSGROUP "BASSIN" > NAME "adn_station_bassin" > END > > LAYER > VALIDATION > #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max_v.map" > CLASSGROUP "REG_ADMIN" > NAME "adn_station_reg_admin" > END > > with these commented lines a got this error : > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > > without comment, i got no error. > > CLASSGROUP 'BASSIN' contains many class but each class use only 'ID_BASSIN' > and > CLASSGROUP 'REG_ADMIN' contains many class but each class use only 'ID_REG' Are you certain of that? You are including the same file in both ... > > is it the right thing to do ? or like i thought, the validation block can > contains only the variable used by the layer ? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Tue Aug 21 08:52:58 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 21 Aug 2012 11:52:58 -0400 Subject: [mapserver-users] validation block In-Reply-To: References: Message-ID: <5033AEDA.7000500@swoodbridge.com> You probably need to quote: 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' And I would be very suspicious that '#ID_REG' is a value identifier because of the '#' character. -Steve W On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: > there is my layer's definition : > > LAYER > VALIDATION > ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > #ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max_v.map" > CLASSGROUP "BASSIN" > NAME "adn_station_bassin" > END > > LAYER > VALIDATION > #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max_v.map" > CLASSGROUP "REG_ADMIN" > NAME "adn_station_reg_admin" > END > > with these commented lines a got this error : > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > > without comment, i got no error. > > CLASSGROUP 'BASSIN' contains many class but each class use only > 'ID_BASSIN' and > CLASSGROUP 'REG_ADMIN' contains many class but each class use only 'ID_REG' > > is it the right thing to do ? or like i thought, the validation block > can contains only the variable used by the layer ? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From marcandre_trottier at hotmail.com Tue Aug 21 10:33:38 2012 From: marcandre_trottier at hotmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Tue, 21 Aug 2012 13:33:38 -0400 Subject: [mapserver-users] validation block In-Reply-To: <5033AEDA.7000500@swoodbridge.com> References: <5033AEDA.7000500@swoodbridge.com> Message-ID: here is an example of two class in 'adn_station_max_v.map' : CLASS NAME "Information non disponible (grande ?chelle)" EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') GROUP "BASSIN" MINSCALEDENOM 0 MAXSCALEDENOM 150000 STYLE SYMBOL 'circle' COLOR 128 128 128 OUTLINECOLOR 0 0 0 SIZE 9 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "ubuntu" SIZE 14 POSITION auto FORCE TRUE END END CLASS NAME "Seuil d\'inondation majeure" EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') GROUP "REG_ADMIN" MINSCALEDENOM 110000 STYLE SYMBOL 'circle' COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 14 END LABEL WRAP "!" ALIGN CENTER COLOR 0 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS FALSE TYPE TRUETYPE FONT "ubuntu" SIZE 14 FORCE TRUE OFFSET 0 12 END END if i understant this meant that for a layer, i must validate all variables of all class even if i don't use them all. My include of 'adn_station_max_v.map' contains X substitutions in X class so i must have X validations even if i don't use all X class. In my example, i include many class with 'adn_station_max_v.map' but i'm using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' only use 'ID_REG'. 2012/8/21 Stephen Woodbridge > You probably need to quote: > > 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' > > "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' > > And I would be very suspicious that '#ID_REG' is a value identifier > because of the '#' character. > > -Steve W > > > On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: > >> there is my layer's definition : >> >> LAYER >> VALIDATION >> ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> #ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max_**v.map" >> CLASSGROUP "BASSIN" >> NAME "adn_station_bassin" >> END >> >> LAYER >> VALIDATION >> #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max_**v.map" >> CLASSGROUP "REG_ADMIN" >> NAME "adn_station_reg_admin" >> END >> >> with these commented lines a got this error : >> msValidateParameter(): Regular expression error. Parameter pattern >> validation failed. >> >> without comment, i got no error. >> >> CLASSGROUP 'BASSIN' contains many class but each class use only >> 'ID_BASSIN' and >> CLASSGROUP 'REG_ADMIN' contains many class but each class use only >> 'ID_REG' >> >> is it the right thing to do ? or like i thought, the validation block >> can contains only the variable used by the layer ? >> >> >> >> ______________________________**_________________ >> 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 humberto at pastoraldacrianca.org.br Tue Aug 21 10:52:23 2012 From: humberto at pastoraldacrianca.org.br (Humberto Cereser Ibanez) Date: Tue, 21 Aug 2012 14:52:23 -0300 Subject: [mapserver-users] Passing an additional parameter via URL, for WMS request - doesn't work anymore with new mapserver? In-Reply-To: References: Message-ID: <5033CAD7.1010207@pastoraldacrianca.org.br> Stef, I don't know noting about DATAPATTERN, but you can try this: On 21-08-2012 12:55, mapserver-users-request at lists.osgeo.org wrote: > Date: Tue, 21 Aug 2012 16:41:17 +0200 > From: Stefan Schwarzer > To:mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Passing an additional parameter via URL > for WMS request - doesn't work anymore with new mapserver? > Message-ID:<0DB5AEEA-5530-4630-B26C-7FCB8678AED3 at unep.org> > Content-Type: text/plain; charset=windows-1252 > > Thanks so much for the quick responses! > > If I understand it correctly, I need to specify "DATAPATTERN" in the MAP part, in order to use the parameter in the DATA request: > > Doc is saying: LAYER: DATA (must validate against DATAPATTERN) > > > which would look like this: > > SHAPEPATH '/www/xxx/data' SHAPEPATH is not taken into account for layers that use database connection, however you need this if you have any layer that uses SHAPEFILE. > FONTSET '/www/xxx/htdocs/mod_map/etc/fonts.txt' > SYMBOLSET '/www/xxx/htdocs/mod_map/etc/symbols.sym' > DATAPATTERN '^[0-9]' > > > with the DATA request like: > > DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country<> %id_country%) AS foo USING UNIQUE gid USING srid=4326" Try change "<>" by "!=" DATA "the_geom FROM (SELECT xxx FROM capitals WHERE capitals.id_country != %id_country%) AS foo USING UNIQUE gid USING srid=4326" > > > Hmmm?. But that doesn't work. > > msDrawMap(): Image handling error. Failed to draw layer named'capitals_mask'. > msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: syntax error at or near")" > LINE 1: ...capitals WHERE capitals.id_country<> %id_country%) AS foo w? > > > Can you shed some light on it? I am not really familiar with the regular expressions. I am just passing an integer. > > Thanks for any hints! > > Stef > Let me know if this was useful for you. Humberto Cereser Ibanez From woodbri at swoodbridge.com Tue Aug 21 11:15:34 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 21 Aug 2012 14:15:34 -0400 Subject: [mapserver-users] validation block In-Reply-To: References: <5033AEDA.7000500@swoodbridge.com> Message-ID: <5033D046.8060009@swoodbridge.com> Typically the SQL syntax is column in (a,b,c,d) So based on this [id_bassin] in '%ID_BASSIN%' would be problematic I think because your syntax is: column in 'string' Which is not valid. Also what is your validation for %ID_BASSIN%? Is something like this? ^\([0-9]+(,[0-9]+)*\)$ where ID_BASSIN=(123,234,345) or do you want something like: [id_bassin] in (%ID_BASSIN%) with a valdiation like: ^[0-9]+(,[0-9]+)*$ where ID_BASSIN=123,234,345 -Steve W On 8/21/2012 1:33 PM, Marc-Andr? Trottier wrote: > here is an example of two class in 'adn_station_max_v.map' : > > CLASS > NAME "Information non disponible (grande ?chelle)" > EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') > GROUP "BASSIN" > MINSCALEDENOM 0 > MAXSCALEDENOM 150000 > STYLE > SYMBOL 'circle' > COLOR 128 128 128 > OUTLINECOLOR 0 0 0 > SIZE 9 > END > > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > POSITION auto > FORCE TRUE > END > END > > CLASS > NAME "Seuil d\'inondation majeure" > EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') > GROUP "REG_ADMIN" > MINSCALEDENOM 110000 > > STYLE > SYMBOL 'circle' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SIZE 14 > END > > LABEL > WRAP "!" > ALIGN CENTER > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > FORCE TRUE > OFFSET 0 12 > END > END > > if i understant this meant that for a layer, i must validate all > variables of all class even if i don't use them all. > My include of 'adn_station_max_v.map' contains X substitutions in X > class so i must have X validations even if i don't use all X class. > > In my example, i include many class with 'adn_station_max_v.map' but i'm > using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' > only use 'ID_REG'. > > > 2012/8/21 Stephen Woodbridge > > > You probably need to quote: > > 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' > > "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' > > And I would be very suspicious that '#ID_REG' is a value identifier > because of the '#' character. > > -Steve W > > > On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: > > there is my layer's definition : > > LAYER > VALIDATION > ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > #ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "BASSIN" > NAME "adn_station_bassin" > END > > LAYER > VALIDATION > #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "REG_ADMIN" > NAME "adn_station_reg_admin" > END > > with these commented lines a got this error : > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > > without comment, i got no error. > > CLASSGROUP 'BASSIN' contains many class but each class use only > 'ID_BASSIN' and > CLASSGROUP 'REG_ADMIN' contains many class but each class use > only 'ID_REG' > > is it the right thing to do ? or like i thought, the validation > block > can contains only the variable used by the layer ? > > > > _________________________________________________ > 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 David.Fawcett at state.mn.us Tue Aug 21 12:28:35 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 21 Aug 2012 19:28:35 +0000 Subject: [mapserver-users] validation block In-Reply-To: <5033D046.8060009@swoodbridge.com> References: <5033AEDA.7000500@swoodbridge.com> <5033D046.8060009@swoodbridge.com> Message-ID: I do something like the second example in one of my applications. I send the comma-delimited string for use as part of the IN statement. This basically allows you to symbolize features from your spatial data set based on data passed in through the URL. I pass these URL vars: &group1=129,119,041,005,159,051,011,147,097,015,067,171,081,063,025,093,009,149,079,049,065,003,143,027,039,007,099,121,151,135,107,047,033,031,023,089,001,013,161,109,139,061,055,101,045,127,113,117,167,085,133,073,071,157,105,083,165,077,111,059,115,019,153,125,169,087,043,145,017,131,021,173,035,095,091,155,057,103,075,029,069&group2=137,163,037,141,123&group3=&group4=053 Here is the layer definition: LAYER NAME "airdata" STATUS DEFAULT DATA 'county_thin' TYPE POLYGON TEMPLATE "templates/emiss_imap_template.html" VALIDATION group1 "^[0-9\,]+$" group2 "^[0-9\,]+$" group3 "^[0-9\,]+$" group4 "^[0-9\,]+$" END CLASS NAME "group1" EXPRESSION ('[county_fip]' IN '%group1%') STYLE COLOR 241 238 246 END END CLASS NAME "group2" EXPRESSION ('[county_fip]' IN '%group2%') STYLE COLOR 189 201 225 END END CLASS NAME "group3" EXPRESSION ('[county_fip]' IN '%group3%') STYLE COLOR 116 169 207 END END CLASS NAME "group4" EXPRESSION ('[county_fip]' IN '%group4%') STYLE COLOR 5 112 176 END END END David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, August 21, 2012 1:16 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] validation block Typically the SQL syntax is column in (a,b,c,d) So based on this [id_bassin] in '%ID_BASSIN%' would be problematic I think because your syntax is: column in 'string' Which is not valid. Also what is your validation for %ID_BASSIN%? Is something like this? ^\([0-9]+(,[0-9]+)*\)$ where ID_BASSIN=(123,234,345) or do you want something like: [id_bassin] in (%ID_BASSIN%) with a valdiation like: ^[0-9]+(,[0-9]+)*$ where ID_BASSIN=123,234,345 -Steve W On 8/21/2012 1:33 PM, Marc-Andr? Trottier wrote: > here is an example of two class in 'adn_station_max_v.map' : > > CLASS > NAME "Information non disponible (grande ?chelle)" > EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') > GROUP "BASSIN" > MINSCALEDENOM 0 > MAXSCALEDENOM 150000 > STYLE > SYMBOL 'circle' > COLOR 128 128 128 > OUTLINECOLOR 0 0 0 > SIZE 9 > END > > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > POSITION auto > FORCE TRUE > END > END > > CLASS > NAME "Seuil d\'inondation majeure" > EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') > GROUP "REG_ADMIN" > MINSCALEDENOM 110000 > > STYLE > SYMBOL 'circle' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SIZE 14 > END > > LABEL > WRAP "!" > ALIGN CENTER > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > FORCE TRUE > OFFSET 0 12 > END > END > > if i understant this meant that for a layer, i must validate all > variables of all class even if i don't use them all. > My include of 'adn_station_max_v.map' contains X substitutions in X > class so i must have X validations even if i don't use all X class. > > In my example, i include many class with 'adn_station_max_v.map' but > i'm using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' > only use 'ID_REG'. > > > 2012/8/21 Stephen Woodbridge > > > You probably need to quote: > > 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' > > "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' > > And I would be very suspicious that '#ID_REG' is a value identifier > because of the '#' character. > > -Steve W > > > On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: > > there is my layer's definition : > > LAYER > VALIDATION > ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > #ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "BASSIN" > NAME "adn_station_bassin" > END > > LAYER > VALIDATION > #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "REG_ADMIN" > NAME "adn_station_reg_admin" > END > > with these commented lines a got this error : > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > > without comment, i got no error. > > CLASSGROUP 'BASSIN' contains many class but each class use only > 'ID_BASSIN' and > CLASSGROUP 'REG_ADMIN' contains many class but each class use > only 'ID_REG' > > is it the right thing to do ? or like i thought, the validation > block > can contains only the variable used by the layer ? > > > > _________________________________________________ > 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 woodbri at swoodbridge.com Tue Aug 21 13:32:56 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 21 Aug 2012 16:32:56 -0400 Subject: [mapserver-users] validation block In-Reply-To: References: <5033AEDA.7000500@swoodbridge.com> <5033D046.8060009@swoodbridge.com> Message-ID: <5033F078.2060604@swoodbridge.com> Hi David, Thank you for the feedback, I have only done this with SQL statements. I'm surprised that we implemented this using a different syntax. Anyway your complete example below will hopefully help others to get it working also. Thanks, -Steve W On 8/21/2012 3:28 PM, Fawcett, David (MPCA) wrote: > I do something like the second example in one of my applications. I send the comma-delimited string for use as part of the IN statement. > > This basically allows you to symbolize features from your spatial data set based on data passed in through the URL. > > I pass these URL vars: > &group1=129,119,041,005,159,051,011,147,097,015,067,171,081,063,025,093,009,149,079,049,065,003,143,027,039,007,099,121,151,135,107,047,033,031,023,089,001,013,161,109,139,061,055,101,045,127,113,117,167,085,133,073,071,157,105,083,165,077,111,059,115,019,153,125,169,087,043,145,017,131,021,173,035,095,091,155,057,103,075,029,069&group2=137,163,037,141,123&group3=&group4=053 > > Here is the layer definition: > > LAYER > NAME "airdata" > STATUS DEFAULT > DATA 'county_thin' > TYPE POLYGON > TEMPLATE "templates/emiss_imap_template.html" > > VALIDATION > group1 "^[0-9\,]+$" > group2 "^[0-9\,]+$" > group3 "^[0-9\,]+$" > group4 "^[0-9\,]+$" > END > CLASS > NAME "group1" > EXPRESSION ('[county_fip]' IN '%group1%') > STYLE > COLOR 241 238 246 > END > END > CLASS > NAME "group2" > EXPRESSION ('[county_fip]' IN '%group2%') > STYLE > COLOR 189 201 225 > END > END > CLASS > NAME "group3" > EXPRESSION ('[county_fip]' IN '%group3%') > STYLE > COLOR 116 169 207 > END > END > CLASS > NAME "group4" > EXPRESSION ('[county_fip]' IN '%group4%') > STYLE > COLOR 5 112 176 > END > END > > END > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge > Sent: Tuesday, August 21, 2012 1:16 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] validation block > > Typically the SQL syntax is column in (a,b,c,d) > So based on this > > [id_bassin] in '%ID_BASSIN%' > > would be problematic I think because your syntax is: > > column in 'string' > > Which is not valid. Also what is your validation for %ID_BASSIN%? > Is something like this? ^\([0-9]+(,[0-9]+)*\)$ > > where ID_BASSIN=(123,234,345) > > or do you want something like: > > [id_bassin] in (%ID_BASSIN%) > > with a valdiation like: ^[0-9]+(,[0-9]+)*$ > > where ID_BASSIN=123,234,345 > > -Steve W > > On 8/21/2012 1:33 PM, Marc-Andr? Trottier wrote: >> here is an example of two class in 'adn_station_max_v.map' : >> >> CLASS >> NAME "Information non disponible (grande ?chelle)" >> EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') >> GROUP "BASSIN" >> MINSCALEDENOM 0 >> MAXSCALEDENOM 150000 >> STYLE >> SYMBOL 'circle' >> COLOR 128 128 128 >> OUTLINECOLOR 0 0 0 >> SIZE 9 >> END >> >> LABEL >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS FALSE >> TYPE TRUETYPE >> FONT "ubuntu" >> SIZE 14 >> POSITION auto >> FORCE TRUE >> END >> END >> >> CLASS >> NAME "Seuil d\'inondation majeure" >> EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') >> GROUP "REG_ADMIN" >> MINSCALEDENOM 110000 >> >> STYLE >> SYMBOL 'circle' >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> SIZE 14 >> END >> >> LABEL >> WRAP "!" >> ALIGN CENTER >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS FALSE >> TYPE TRUETYPE >> FONT "ubuntu" >> SIZE 14 >> FORCE TRUE >> OFFSET 0 12 >> END >> END >> >> if i understant this meant that for a layer, i must validate all >> variables of all class even if i don't use them all. >> My include of 'adn_station_max_v.map' contains X substitutions in X >> class so i must have X validations even if i don't use all X class. >> >> In my example, i include many class with 'adn_station_max_v.map' but >> i'm using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' >> only use 'ID_REG'. >> >> >> 2012/8/21 Stephen Woodbridge > > >> >> You probably need to quote: >> >> 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' >> >> "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' >> >> And I would be very suspicious that '#ID_REG' is a value identifier >> because of the '#' character. >> >> -Steve W >> >> >> On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: >> >> there is my layer's definition : >> >> LAYER >> VALIDATION >> ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> #ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max___v.map" >> CLASSGROUP "BASSIN" >> NAME "adn_station_bassin" >> END >> >> LAYER >> VALIDATION >> #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max___v.map" >> CLASSGROUP "REG_ADMIN" >> NAME "adn_station_reg_admin" >> END >> >> with these commented lines a got this error : >> msValidateParameter(): Regular expression error. Parameter pattern >> validation failed. >> >> without comment, i got no error. >> >> CLASSGROUP 'BASSIN' contains many class but each class use only >> 'ID_BASSIN' and >> CLASSGROUP 'REG_ADMIN' contains many class but each class use >> only 'ID_REG' >> >> is it the right thing to do ? or like i thought, the validation >> block >> can contains only the variable used by the layer ? >> >> >> >> _________________________________________________ >> 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 zhaops at hotmail.com Tue Aug 21 13:35:23 2012 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 21 Aug 2012 20:35:23 +0000 Subject: [mapserver-users] how to add a time stamp on raster data In-Reply-To: <5033D046.8060009@swoodbridge.com> References: , <5033AEDA.7000500@swoodbridge.com>, , <5033D046.8060009@swoodbridge.com> Message-ID: Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 21 14:13:10 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 21 Aug 2012 21:13:10 +0000 Subject: [mapserver-users] how to add a time stamp on raster data In-Reply-To: References: , <5033AEDA.7000500@swoodbridge.com>, , <5033D046.8060009@swoodbridge.com>, Message-ID: Probably, you'd do it through an annotation layer. What version are you using? What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time parameter into a TEXT expression in the annotation layer. Layer would look like (assuming a variable called 'time' is passed) this I think: LAYER NAME 'timestamp' TYPE ANNOTATION STATUS DEFAULT TRANSFORM LL # lower-left corner of the FEATURE POINTS 10 10 END END VALIDATION 'time' 'some expression that matches time values' END CLASS LABEL ... END TEXT '%time%' END END This would plop the passed time in the lower left corner of the output, or at least I think it should. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 3:35 PM To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaops at hotmail.com Tue Aug 21 14:16:49 2012 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 21 Aug 2012 21:16:49 +0000 Subject: [mapserver-users] how to add a time stamp on raster data In-Reply-To: References: , , <5033AEDA.7000500@swoodbridge.com>, , , , <5033D046.8060009@swoodbridge.com>, , Message-ID: Steve, Thank you for your answer. I have tried the method you suggest. But it prints out "%time%, not the value of time. Peisheng From: Steve.Lime at state.mn.us To: zhaops at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] how to add a time stamp on raster data Date: Tue, 21 Aug 2012 21:13:10 +0000 Probably, you'd do it through an annotation layer. What version are you using? What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time parameter into a TEXT expression in the annotation layer. Layer would look like (assuming a variable called 'time' is passed) this I think: LAYER NAME 'timestamp' TYPE ANNOTATION STATUS DEFAULT TRANSFORM LL # lower-left corner of the FEATURE POINTS 10 10 END END VALIDATION 'time' 'some expression that matches time values' END CLASS LABEL ... END TEXT '%time%' END END This would plop the passed time in the lower left corner of the output, or at least I think it should. Steve From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 3:35 PM To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Aug 21 14:20:35 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 21 Aug 2012 21:20:35 +0000 Subject: [mapserver-users] how to add a time stamp on raster data In-Reply-To: References: , , <5033AEDA.7000500@swoodbridge.com>, , , , <5033D046.8060009@swoodbridge.com>, , , Message-ID: What version? What interface? Looking at the code, at least for 6.2+, class text is a candidate for substitution. Steve ________________________________ From: Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 4:16 PM To: Lime, Steve D (DNR); users mapserver Subject: RE: [mapserver-users] how to add a time stamp on raster data Steve, Thank you for your answer. I have tried the method you suggest. But it prints out "%time%, not the value of time. Peisheng ________________________________ From: Steve.Lime at state.mn.us To: zhaops at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] how to add a time stamp on raster data Date: Tue, 21 Aug 2012 21:13:10 +0000 Probably, you'd do it through an annotation layer. What version are you using? What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time parameter into a TEXT expression in the annotation layer. Layer would look like (assuming a variable called 'time' is passed) this I think: LAYER NAME 'timestamp' TYPE ANNOTATION STATUS DEFAULT TRANSFORM LL # lower-left corner of the FEATURE POINTS 10 10 END END VALIDATION 'time' 'some expression that matches time values' END CLASS LABEL ... END TEXT '%time%' END END This would plop the passed time in the lower left corner of the output, or at least I think it should. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 3:35 PM To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaops at hotmail.com Tue Aug 21 14:23:37 2012 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 21 Aug 2012 21:23:37 +0000 Subject: [mapserver-users] how to add a time stamp on raster data In-Reply-To: References: , , <5033AEDA.7000500@swoodbridge.com>, , , , <5033D046.8060009@swoodbridge.com>, , , , Message-ID: MapServer 5.4.1. WMS. From: Steve.Lime at state.mn.us To: zhaops at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] how to add a time stamp on raster data Date: Tue, 21 Aug 2012 21:20:35 +0000 What version? What interface? Looking at the code, at least for 6.2+, class text is a candidate for substitution. Steve From: Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 4:16 PM To: Lime, Steve D (DNR); users mapserver Subject: RE: [mapserver-users] how to add a time stamp on raster data Steve, Thank you for your answer. I have tried the method you suggest. But it prints out "%time%, not the value of time. Peisheng From: Steve.Lime at state.mn.us To: zhaops at hotmail.com; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] how to add a time stamp on raster data Date: Tue, 21 Aug 2012 21:13:10 +0000 Probably, you'd do it through an annotation layer. What version are you using? What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time parameter into a TEXT expression in the annotation layer. Layer would look like (assuming a variable called 'time' is passed) this I think: LAYER NAME 'timestamp' TYPE ANNOTATION STATUS DEFAULT TRANSFORM LL # lower-left corner of the FEATURE POINTS 10 10 END END VALIDATION 'time' 'some expression that matches time values' END CLASS LABEL ... END TEXT '%time%' END END This would plop the passed time in the lower left corner of the output, or at least I think it should. Steve From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 3:35 PM To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Tue Aug 21 16:38:51 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Tue, 21 Aug 2012 19:38:51 -0400 Subject: [mapserver-users] Tile Index Issues Message-ID: <0342A56AD728D64185DB36D9514E2E7ED517B5@BE64.exg3.exghost.com> Hello All, I am new to map server and I am attempting to display polygon shapefiles using a tile index but have not been able to see any results. Eventually I would like to use these tiles to place images(raster) files on my map but I was first just testing the 'TILEINDEX' feature with vector data. All of the shapefiles being referenced in my index shapefile are in the same folder. Also, in my index shapefile I have the following two shapefiles referenced under the 'location' column: \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp The following page was used as a reference for creating my map file: http://mapserver.org/utilities/tile4ms.html Any help on this would be great. Thank You, Peter Mallen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Tuesday, August 21, 2012 2:13 PM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 55, Issue 43 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: validation block (Fawcett, David (MPCA)) 2. Re: validation block (Stephen Woodbridge) 3. how to add a time stamp on raster data (Peisheng Zhao) 4. Re: how to add a time stamp on raster data (Lime, Steve D (DNR)) ---------------------------------------------------------------------- Message: 1 Date: Tue, 21 Aug 2012 19:28:35 +0000 From: "Fawcett, David (MPCA)" To: Stephen Woodbridge , "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] validation block Message-ID: Content-Type: text/plain; charset="iso-8859-1" I do something like the second example in one of my applications. I send the comma-delimited string for use as part of the IN statement. This basically allows you to symbolize features from your spatial data set based on data passed in through the URL. I pass these URL vars: &group1=129,119,041,005,159,051,011,147,097,015,067,171,081,063,025,093, 009,149,079,049,065,003,143,027,039,007,099,121,151,135,107,047,033,031, 023,089,001,013,161,109,139,061,055,101,045,127,113,117,167,085,133,073, 071,157,105,083,165,077,111,059,115,019,153,125,169,087,043,145,017,131, 021,173,035,095,091,155,057,103,075,029,069&group2=137,163,037,141,123&g roup3=&group4=053 Here is the layer definition: LAYER NAME "airdata" STATUS DEFAULT DATA 'county_thin' TYPE POLYGON TEMPLATE "templates/emiss_imap_template.html" VALIDATION group1 "^[0-9\,]+$" group2 "^[0-9\,]+$" group3 "^[0-9\,]+$" group4 "^[0-9\,]+$" END CLASS NAME "group1" EXPRESSION ('[county_fip]' IN '%group1%') STYLE COLOR 241 238 246 END END CLASS NAME "group2" EXPRESSION ('[county_fip]' IN '%group2%') STYLE COLOR 189 201 225 END END CLASS NAME "group3" EXPRESSION ('[county_fip]' IN '%group3%') STYLE COLOR 116 169 207 END END CLASS NAME "group4" EXPRESSION ('[county_fip]' IN '%group4%') STYLE COLOR 5 112 176 END END END David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Tuesday, August 21, 2012 1:16 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] validation block Typically the SQL syntax is column in (a,b,c,d) So based on this [id_bassin] in '%ID_BASSIN%' would be problematic I think because your syntax is: column in 'string' Which is not valid. Also what is your validation for %ID_BASSIN%? Is something like this? ^\([0-9]+(,[0-9]+)*\)$ where ID_BASSIN=(123,234,345) or do you want something like: [id_bassin] in (%ID_BASSIN%) with a valdiation like: ^[0-9]+(,[0-9]+)*$ where ID_BASSIN=123,234,345 -Steve W On 8/21/2012 1:33 PM, Marc-Andr? Trottier wrote: > here is an example of two class in 'adn_station_max_v.map' : > > CLASS > NAME "Information non disponible (grande ?chelle)" > EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') > GROUP "BASSIN" > MINSCALEDENOM 0 > MAXSCALEDENOM 150000 > STYLE > SYMBOL 'circle' > COLOR 128 128 128 > OUTLINECOLOR 0 0 0 > SIZE 9 > END > > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > POSITION auto > FORCE TRUE > END > END > > CLASS > NAME "Seuil d\'inondation majeure" > EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') > GROUP "REG_ADMIN" > MINSCALEDENOM 110000 > > STYLE > SYMBOL 'circle' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SIZE 14 > END > > LABEL > WRAP "!" > ALIGN CENTER > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS FALSE > TYPE TRUETYPE > FONT "ubuntu" > SIZE 14 > FORCE TRUE > OFFSET 0 12 > END > END > > if i understant this meant that for a layer, i must validate all > variables of all class even if i don't use them all. > My include of 'adn_station_max_v.map' contains X substitutions in X > class so i must have X validations even if i don't use all X class. > > In my example, i include many class with 'adn_station_max_v.map' but > i'm using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' > only use 'ID_REG'. > > > 2012/8/21 Stephen Woodbridge > > > You probably need to quote: > > 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' > > "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' > > And I would be very suspicious that '#ID_REG' is a value identifier > because of the '#' character. > > -Steve W > > > On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: > > there is my layer's definition : > > LAYER > VALIDATION > ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > #ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "BASSIN" > NAME "adn_station_bassin" > END > > LAYER > VALIDATION > #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' > ID_REG '[[a-zA-Z0-9]{0,10},??]*' > END > INCLUDE "../layers/bd/adn_station_max___v.map" > CLASSGROUP "REG_ADMIN" > NAME "adn_station_reg_admin" > END > > with these commented lines a got this error : > msValidateParameter(): Regular expression error. Parameter pattern > validation failed. > > without comment, i got no error. > > CLASSGROUP 'BASSIN' contains many class but each class use only > 'ID_BASSIN' and > CLASSGROUP 'REG_ADMIN' contains many class but each class use > only 'ID_REG' > > is it the right thing to do ? or like i thought, the validation > block > can contains only the variable used by the layer ? > > > > _________________________________________________ > 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 ------------------------------ Message: 2 Date: Tue, 21 Aug 2012 16:32:56 -0400 From: Stephen Woodbridge To: "Fawcett, David (MPCA)" Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] validation block Message-ID: <5033F078.2060604 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi David, Thank you for the feedback, I have only done this with SQL statements. I'm surprised that we implemented this using a different syntax. Anyway your complete example below will hopefully help others to get it working also. Thanks, -Steve W On 8/21/2012 3:28 PM, Fawcett, David (MPCA) wrote: > I do something like the second example in one of my applications. I send the comma-delimited string for use as part of the IN statement. > > This basically allows you to symbolize features from your spatial data set based on data passed in through the URL. > > I pass these URL vars: > &group1=129,119,041,005,159,051,011,147,097,015,067,171,081,063,025,09 > 3,009,149,079,049,065,003,143,027,039,007,099,121,151,135,107,047,033, > 031,023,089,001,013,161,109,139,061,055,101,045,127,113,117,167,085,13 > 3,073,071,157,105,083,165,077,111,059,115,019,153,125,169,087,043,145, > 017,131,021,173,035,095,091,155,057,103,075,029,069&group2=137,163,037 > ,141,123&group3=&group4=053 > > Here is the layer definition: > > LAYER > NAME "airdata" > STATUS DEFAULT > DATA 'county_thin' > TYPE POLYGON > TEMPLATE "templates/emiss_imap_template.html" > > VALIDATION > group1 "^[0-9\,]+$" > group2 "^[0-9\,]+$" > group3 "^[0-9\,]+$" > group4 "^[0-9\,]+$" > END > CLASS > NAME "group1" > EXPRESSION ('[county_fip]' IN '%group1%') > STYLE > COLOR 241 238 246 > END > END > CLASS > NAME "group2" > EXPRESSION ('[county_fip]' IN '%group2%') > STYLE > COLOR 189 201 225 > END > END > CLASS > NAME "group3" > EXPRESSION ('[county_fip]' IN '%group3%') > STYLE > COLOR 116 169 207 > END > END > CLASS > NAME "group4" > EXPRESSION ('[county_fip]' IN '%group4%') > STYLE > COLOR 5 112 176 > END > END > > END > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge > Sent: Tuesday, August 21, 2012 1:16 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] validation block > > Typically the SQL syntax is column in (a,b,c,d) > So based on this > > [id_bassin] in '%ID_BASSIN%' > > would be problematic I think because your syntax is: > > column in 'string' > > Which is not valid. Also what is your validation for %ID_BASSIN%? > Is something like this? ^\([0-9]+(,[0-9]+)*\)$ > > where ID_BASSIN=(123,234,345) > > or do you want something like: > > [id_bassin] in (%ID_BASSIN%) > > with a valdiation like: ^[0-9]+(,[0-9]+)*$ > > where ID_BASSIN=123,234,345 > > -Steve W > > On 8/21/2012 1:33 PM, Marc-Andr? Trottier wrote: >> here is an example of two class in 'adn_station_max_v.map' : >> >> CLASS >> NAME "Information non disponible (grande ?chelle)" >> EXPRESSION ( '[etat]' = 'GRIS' AND [id_bassin] in '%ID_BASSIN%') >> GROUP "BASSIN" >> MINSCALEDENOM 0 >> MAXSCALEDENOM 150000 >> STYLE >> SYMBOL 'circle' >> COLOR 128 128 128 >> OUTLINECOLOR 0 0 0 >> SIZE 9 >> END >> >> LABEL >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS FALSE >> TYPE TRUETYPE >> FONT "ubuntu" >> SIZE 14 >> POSITION auto >> FORCE TRUE >> END >> END >> >> CLASS >> NAME "Seuil d\'inondation majeure" >> EXPRESSION ( '[etat]' = 'ROUGE' AND [region_admin_id] in '%ID_REG%') >> GROUP "REG_ADMIN" >> MINSCALEDENOM 110000 >> >> STYLE >> SYMBOL 'circle' >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> SIZE 14 >> END >> >> LABEL >> WRAP "!" >> ALIGN CENTER >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS FALSE >> TYPE TRUETYPE >> FONT "ubuntu" >> SIZE 14 >> FORCE TRUE >> OFFSET 0 12 >> END >> END >> >> if i understant this meant that for a layer, i must validate all >> variables of all class even if i don't use them all. >> My include of 'adn_station_max_v.map' contains X substitutions in X >> class so i must have X validations even if i don't use all X class. >> >> In my example, i include many class with 'adn_station_max_v.map' but >> i'm using only one variable at a time. All class in CLASSGROUP 'REG_ADMIN' >> only use 'ID_REG'. >> >> >> 2012/8/21 Stephen Woodbridge > > >> >> You probably need to quote: >> >> 'ID_BASSIN' '[[a-zA-Z0-9]{0,10},??]*' >> >> "#ID_REG' '[[a-zA-Z0-9]{0,10},??]*' >> >> And I would be very suspicious that '#ID_REG' is a value identifier >> because of the '#' character. >> >> -Steve W >> >> >> On 8/21/2012 11:38 AM, Marc-Andr? Trottier wrote: >> >> there is my layer's definition : >> >> LAYER >> VALIDATION >> ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> #ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max___v.map" >> CLASSGROUP "BASSIN" >> NAME "adn_station_bassin" >> END >> >> LAYER >> VALIDATION >> #ID_BASSIN '[[a-zA-Z0-9]{0,10},??]*' >> ID_REG '[[a-zA-Z0-9]{0,10},??]*' >> END >> INCLUDE "../layers/bd/adn_station_max___v.map" >> CLASSGROUP "REG_ADMIN" >> NAME "adn_station_reg_admin" >> END >> >> with these commented lines a got this error : >> msValidateParameter(): Regular expression error. Parameter pattern >> validation failed. >> >> without comment, i got no error. >> >> CLASSGROUP 'BASSIN' contains many class but each class use only >> 'ID_BASSIN' and >> CLASSGROUP 'REG_ADMIN' contains many class but each class use >> only 'ID_REG' >> >> is it the right thing to do ? or like i thought, the validation >> block >> can contains only the variable used by the layer ? >> >> >> >> _________________________________________________ >> 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 > > ------------------------------ Message: 3 Date: Tue, 21 Aug 2012 20:35:23 +0000 From: Peisheng Zhao To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 4 Date: Tue, 21 Aug 2012 21:13:10 +0000 From: "Lime, Steve D (DNR)" To: Peisheng Zhao , users mapserver Subject: Re: [mapserver-users] how to add a time stamp on raster data Message-ID: Content-Type: text/plain; charset="iso-8859-1" Probably, you'd do it through an annotation layer. What version are you using? What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time parameter into a TEXT expression in the annotation layer. Layer would look like (assuming a variable called 'time' is passed) this I think: LAYER NAME 'timestamp' TYPE ANNOTATION STATUS DEFAULT TRANSFORM LL # lower-left corner of the FEATURE POINTS 10 10 END END VALIDATION 'time' 'some expression that matches time values' END CLASS LABEL ... END TEXT '%time%' END END This would plop the passed time in the lower left corner of the output, or at least I think it should. Steve ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Peisheng Zhao [zhaops at hotmail.com] Sent: Tuesday, August 21, 2012 3:35 PM To: users mapserver Subject: [mapserver-users] how to add a time stamp on raster data Hi all, We have a set of time-series data. Is it popossible to add a time stamp, i.e. the value of time parameter in the request, on raster data? Thanks. Peisheng -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 55, Issue 43 *********************************************** From woodbri at swoodbridge.com Tue Aug 21 17:57:22 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 21 Aug 2012 20:57:22 -0400 Subject: [mapserver-users] Tile Index Issues In-Reply-To: <0342A56AD728D64185DB36D9514E2E7ED517B5@BE64.exg3.exghost.com> References: <0342A56AD728D64185DB36D9514E2E7ED517B5@BE64.exg3.exghost.com> Message-ID: <50342E72.1020205@swoodbridge.com> On 8/21/2012 7:38 PM, Peter Mallen wrote: > Hello All, > > I am new to map server and I am attempting to display polygon shapefiles > using a tile index but have not been able to see any results. > Eventually I would like to use these tiles to place images(raster) files > on my map but I was first just testing the 'TILEINDEX' feature with > vector data. > > All of the shapefiles being referenced in my index shapefile are in the > same folder. > > > Also, in my index shapefile I have the following two shapefiles > referenced under the 'location' column: > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > The following page was used as a reference for creating my map file: > http://mapserver.org/utilities/tile4ms.html > > Any help on this would be great. > > Thank You, > > Peter Mallen What does your mapfile look like? From fine_sharad at hotmail.com Wed Aug 22 02:39:51 2012 From: fine_sharad at hotmail.com (sharad) Date: Wed, 22 Aug 2012 02:39:51 -0700 (PDT) Subject: [mapserver-users] Export map into pdf Message-ID: <1345628391878-4996952.post@n6.nabble.com> hi all, i am developing web application using mapserver with C#/Mapscript. how can I export map into pdf file using c#/mapscript? I will appreciate your reply. thanks sharad -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adams at terrestris.de Wed Aug 22 02:45:02 2012 From: adams at terrestris.de (Till Adams) Date: Wed, 22 Aug 2012 11:45:02 +0200 Subject: [mapserver-users] Export map into pdf In-Reply-To: <1345628391878-4996952.post@n6.nabble.com> References: <1345628391878-4996952.post@n6.nabble.com> Message-ID: <5034AA1E.1080806@terrestris.de> Hi Sharad, we use MapFish-print-servlet, which is the best software I know for generating maps in pdf. -> http://www.mapfish.org/doc/print/ But this is in Java, so the other side of the river ;-) Reagrds, Till On 22.08.2012 11:39, sharad wrote: > hi all, > i am developing web application using mapserver with C#/Mapscript. > how can I export map into pdf file using c#/mapscript? > > I will appreciate your reply. > > thanks > sharad > > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.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 > -- NEWS: -> GO Mobile - jetzt WebGIS auch auf Smartphones -> Bald OpenSource! SHOGun - das JavaBackend f?r WebGIS Anwendungen ---------------------------------------------------- terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 ---------------------------------------------------- Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From Jukka.Rahkonen at mmmtike.fi Wed Aug 22 02:54:33 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 22 Aug 2012 09:54:33 +0000 Subject: [mapserver-users] Export map into pdf Message-ID: <84446DEF76453C439E9E97E438E13A63467463@suutari.haapa.mmm.fi> Hi, Define pdf as one of the outputformats. http://www.mapserver.org/mapfile/outputformat.html I am not sure how to make nice prints with legends and logos and such, but the map itself is easy to push into pdf with no extra work at all. Note that it can be geospatial pdf with coordinates http://www.gdal.org/frmt_pdf.html Some example screenshots are in the bottom of this otherwise a bit outdated document http://latuviitta.org/documents/Super_easy_WMS_server.pdf and geospatial PDF created by Mapserver from OpenStreetmap data here. It's all vector so it tolerates zooming however close. http://latuviitta.org/documents/Lahti_geospat.pdf -Jukka Rahkonen- sharad wrote: > hi all, > i am developing web application using mapserver with C#/Mapscript. > how can I export map into pdf file using c#/mapscript? > > I will appreciate your reply. > > thanks > sharad > > > > > > -- > View this message in context: http://osgeo-org.1560.n6.nabble.com/Export- > map-into-pdf-tp4996952.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Aug 22 04:59:01 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 22 Aug 2012 08:59:01 -0300 Subject: [mapserver-users] Tile Index Issues In-Reply-To: <0342A56AD728D64185DB36D9514E2E7ED517B5@BE64.exg3.exghost.com> References: <0342A56AD728D64185DB36D9514E2E7ED517B5@BE64.exg3.exghost.com> Message-ID: <5034C985.7090509@gatewaygeomatics.com> Hello, You might also test your mapfile with the shp2img utility (http://mapserver.org/utilities/shp2img.html) with the switch "-all_debug 5" to see your errors (and report to this list). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-08-21 8:38 PM, Peter Mallen wrote: > Hello All, > > I am new to map server and I am attempting to display polygon shapefiles > using a tile index but have not been able to see any results. > Eventually I would like to use these tiles to place images(raster) files > on my map but I was first just testing the 'TILEINDEX' feature with > vector data. > > All of the shapefiles being referenced in my index shapefile are in the > same folder. > > > Also, in my index shapefile I have the following two shapefiles > referenced under the 'location' column: > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > The following page was used as a reference for creating my map file: > http://mapserver.org/utilities/tile4ms.html > > Any help on this would be great. > > Thank You, > > Peter Mallen > From Jukka.Rahkonen at mmmtike.fi Wed Aug 22 06:03:25 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 22 Aug 2012 13:03:25 +0000 Subject: [mapserver-users] Tile Index Issues Message-ID: <84446DEF76453C439E9E97E438E13A63467561@suutari.haapa.mmm.fi> Hi, I have a feeling that I had problems with vector tile index and native Mapserver connection. For some reason I have changed our mapfiles to connect with OGR. Anyway, now when I had a try, both are working. Perhaps I had some issues with GetFeatureInfo and not with GetMaps. I have created my tileindex shapefiles with ogrtindex utility, and location records look a bit different z:\Data\contours\KM18M1BV.SHP,0 My connection alternatives which both work now (MS 6.0) are CONNECTIONTYPE OGR TILEINDEX "z:/data/Tindex/korkeusidx.shp,0" # TILEINDEX "z:/data/Tindex/korkeusidx" #both with or without .shp works here # TILEITEM "location" -Jukka Rahkonen- Jeff McKenna wrote: > > Hello, > > You might also test your mapfile with the shp2img utility > (http://mapserver.org/utilities/shp2img.html) with the switch "-all_debug 5" > to see your errors (and report to this list). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 12-08-21 8:38 PM, Peter Mallen wrote: > > Hello All, > > > > I am new to map server and I am attempting to display polygon shapefiles > > using a tile index but have not been able to see any results. > > Eventually I would like to use these tiles to place images(raster) files > > on my map but I was first just testing the 'TILEINDEX' feature with > > vector data. > > > > All of the shapefiles being referenced in my index shapefile are in the > > same folder. > > > > > > Also, in my index shapefile I have the following two shapefiles > > referenced under the 'location' column: > > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > > > The following page was used as a reference for creating my map file: > > http://mapserver.org/utilities/tile4ms.html > > > > Any help on this would be great. > > > > Thank You, > > > > Peter Mallen > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gisyangli at gmail.com Wed Aug 22 09:50:28 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Thu, 23 Aug 2012 00:50:28 +0800 Subject: [mapserver-users] mapserver user can not make the shapefile data correctly show in the browser Message-ID: Hello, respected everyone, I have a problem when using Mapserver. I just using Maperver to rend an shapefile on ubuntu 12.04. but the expect image is not correctly showing, i think there maybe some problem with my mapfile set, especially with IMAGEURL define? I use a guide in the link : http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-to-generate-a-simple-map-using-mapserver-and-a-shapefile.html I assign the mapfile & template.html&start.html in my www DIR, which is like this: mapfiel.map: MAP NAME parcels_map STATUS ON SIZE 420 300 EXTENT 489885 5450946 490904 5451637 UNITS METERS SHAPEPATH "shapefiles" IMAGECOLOR 255 255 255 WEB TEMPLATE "template.html" IMAGEPATH "/var/www/output/" IMAGEURL "/output/" END LAYER NAME "parcel_boundaries" DATA parcels STATUS DEFAULT TYPE POLYGON CLASS NAME "parcels_color" COLOR 255 215 0 END END # end of map file END starrtmap.html: Creating a simple image using Mapserver and a Shapefile

Creating a simple image using Mapserver and a Shapefile


This page simply contains a link which sends a set of instructions to the Mapserver application using a mapfile.
The information stored within the mapfile tells the Mapserver application how to draw the map.

Click on this link to view a map generated using a Shapefile.


template.html: Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

when I run the ?http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? in my address colum. The expect map is not shown. The page is showing content of template.html expectly, but there is only a image icon , but with no picture. And the status bar in the firefox brower is showing : conecting to output .. I notice that in the var/www/output DIR, there have been some png file generated. And is the png containing the polygon in the shapefile. Every time when I click the ? http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? link, a new png file is generated in output DIR. I want to know if the IMAGEURL in the mapfile is set wrongly? Why the png is genrated correctly but not showing in the browser? Any one can help me? -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Aug 22 14:04:03 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 22 Aug 2012 21:04:03 +0000 Subject: [mapserver-users] mapserver user can not make the shapefile data correctly show in the browser In-Reply-To: References: Message-ID: Yang Li, You may want to try to use a relative URL for the IMAGEURL. Try changing it from: IMAGEURL "/output/" To: IMAGEURL "output/" David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ?? Sent: Wednesday, August 22, 2012 11:50 AM To: mapserver-users at lists.osgeo.org Cc: mapserver-dev at lists.osgeo.org Subject: [mapserver-users] mapserver user can not make the shapefile data correctly show in the browser Hello, respected everyone, I have a problem when using Mapserver. I just using Maperver to rend an shapefile on ubuntu 12.04. but the expect image is not correctly showing, i think there maybe some problem with my mapfile set, especially with IMAGEURL define? I use a guide in the link :http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-to-generate-a-simple-map-using-mapserver-and-a-shapefile.html I assign the mapfile & template.html&start.html in my www DIR, which is like this: mapfiel.map: MAP NAME parcels_map STATUS ON SIZE 420 300 EXTENT 489885 5450946 490904 5451637 UNITS METERS SHAPEPATH "shapefiles" IMAGECOLOR 255 255 255 WEB TEMPLATE "template.html" IMAGEPATH "/var/www/output/" IMAGEURL "/output/" END LAYER NAME "parcel_boundaries" DATA parcels STATUS DEFAULT TYPE POLYGON CLASS NAME "parcels_color" COLOR 255 215 0 END END # end of map file END starrtmap.html: Creating a simple image using Mapserver and a Shapefile

Creating a simple image using Mapserver and a Shapefile


This page simply contains a link which sends a set of instructions to the Mapserver application using a mapfile.
The information stored within the mapfile tells the Mapserver application how to draw the map.

Click on this link to view a map generated using a Shapefile.


template.html: Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

when I run the ?http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? in my address colum. The expect map is not shown. The page is showing content of template.html expectly, but there is only a image icon , but with no picture. And the status bar in the firefox brower is showing : conecting to output .. I notice that in the var/www/output DIR, there have been some png file generated. And is the png containing the polygon in the shapefile. Every time when I click the ?http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? link, a new png file is generated in output DIR. I want to know if the IMAGEURL in the mapfile is set wrongly? Why the png is genrated correctly but not showing in the browser? Any one can help me? -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.mallen at airborne.aero Wed Aug 22 15:01:27 2012 From: peter.mallen at airborne.aero (Peter Mallen) Date: Wed, 22 Aug 2012 18:01:27 -0400 Subject: [mapserver-users] Tile Index Issues (Stephen Woodbridge) Message-ID: <0342A56AD728D64185DB36D9514E2E7ED51CBB@BE64.exg3.exghost.com> Hi Stephen, I have posted part of my mapfile below. I am also using the debug to send any errors to the log but no errors seem to come up. Forgot to mention that my shapefiles display in QGIS when using the tile index shapefile. LAYER NAME 'banner1' STATUS DEFAULT DEBUG 5 CONNECTIONTYPE OGR TILEINDEX 'C:\ms4w\Apache\htdocs\map.data\tindex-3.shp' TILEITEM 'location' TYPE POLYGON TRANSFORM OFF PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" "epsg:4326" END END Thank you, Peter Mallen -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Wednesday, August 22, 2012 9:51 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 55, Issue 45 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Tile Index Issues (Stephen Woodbridge) 2. Export map into pdf (sharad) 3. Re: Export map into pdf (Till Adams) 4. Re: Export map into pdf (Rahkonen Jukka) 5. Re: Tile Index Issues (Jeff McKenna) 6. Re: Tile Index Issues (Rahkonen Jukka) 7. mapserver user can not make the shapefile data correctly show in the browser (??) ---------------------------------------------------------------------- Message: 1 Date: Tue, 21 Aug 2012 20:57:22 -0400 From: Stephen Woodbridge To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Tile Index Issues Message-ID: <50342E72.1020205 at swoodbridge.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 8/21/2012 7:38 PM, Peter Mallen wrote: > Hello All, > > I am new to map server and I am attempting to display polygon > shapefiles using a tile index but have not been able to see any results. > Eventually I would like to use these tiles to place images(raster) > files on my map but I was first just testing the 'TILEINDEX' feature > with vector data. > > All of the shapefiles being referenced in my index shapefile are in > the same folder. > > > Also, in my index shapefile I have the following two shapefiles > referenced under the 'location' column: > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > The following page was used as a reference for creating my map file: > http://mapserver.org/utilities/tile4ms.html > > Any help on this would be great. > > Thank You, > > Peter Mallen What does your mapfile look like? ------------------------------ Message: 2 Date: Wed, 22 Aug 2012 02:39:51 -0700 (PDT) From: sharad To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Export map into pdf Message-ID: <1345628391878-4996952.post at n6.nabble.com> Content-Type: text/plain; charset=us-ascii hi all, i am developing web application using mapserver with C#/Mapscript. how can I export map into pdf file using c#/mapscript? I will appreciate your reply. thanks sharad -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.html Sent from the Mapserver - User mailing list archive at Nabble.com. ------------------------------ Message: 3 Date: Wed, 22 Aug 2012 11:45:02 +0200 From: Till Adams To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Export map into pdf Message-ID: <5034AA1E.1080806 at terrestris.de> Content-Type: text/plain; charset=ISO-8859-1 Hi Sharad, we use MapFish-print-servlet, which is the best software I know for generating maps in pdf. -> http://www.mapfish.org/doc/print/ But this is in Java, so the other side of the river ;-) Reagrds, Till On 22.08.2012 11:39, sharad wrote: > hi all, > i am developing web application using mapserver with C#/Mapscript. > how can I export map into pdf file using c#/mapscript? > > I will appreciate your reply. > > thanks > sharad > > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.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 > -- NEWS: -> GO Mobile - jetzt WebGIS auch auf Smartphones Bald OpenSource! SHOGun -> - das JavaBackend f?r WebGIS Anwendungen ---------------------------------------------------- terrestris GmbH & Co. KG Puetzchens Chaussee 56 53227 Bonn Germany Till Adams Geschaeftsfuehrung Tel: +49 (0)228 / 962 899-52 Mobile: +49 (0)151 / 25394429 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 ---------------------------------------------------- Komplementaerin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams ------------------------------ Message: 4 Date: Wed, 22 Aug 2012 09:54:33 +0000 From: Rahkonen Jukka To: "'mapserver-users at lists.osgeo.org'" Subject: Re: [mapserver-users] Export map into pdf Message-ID: <84446DEF76453C439E9E97E438E13A63467463 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, Define pdf as one of the outputformats. http://www.mapserver.org/mapfile/outputformat.html I am not sure how to make nice prints with legends and logos and such, but the map itself is easy to push into pdf with no extra work at all. Note that it can be geospatial pdf with coordinates http://www.gdal.org/frmt_pdf.html Some example screenshots are in the bottom of this otherwise a bit outdated document http://latuviitta.org/documents/Super_easy_WMS_server.pdf and geospatial PDF created by Mapserver from OpenStreetmap data here. It's all vector so it tolerates zooming however close. http://latuviitta.org/documents/Lahti_geospat.pdf -Jukka Rahkonen- sharad wrote: > hi all, > i am developing web application using mapserver with C#/Mapscript. > how can I export map into pdf file using c#/mapscript? > > I will appreciate your reply. > > thanks > sharad > > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Export- > map-into-pdf-tp4996952.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 ------------------------------ Message: 5 Date: Wed, 22 Aug 2012 08:59:01 -0300 From: Jeff McKenna To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Tile Index Issues Message-ID: <5034C985.7090509 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1 Hello, You might also test your mapfile with the shp2img utility (http://mapserver.org/utilities/shp2img.html) with the switch "-all_debug 5" to see your errors (and report to this list). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-08-21 8:38 PM, Peter Mallen wrote: > Hello All, > > I am new to map server and I am attempting to display polygon shapefiles > using a tile index but have not been able to see any results. > Eventually I would like to use these tiles to place images(raster) files > on my map but I was first just testing the 'TILEINDEX' feature with > vector data. > > All of the shapefiles being referenced in my index shapefile are in the > same folder. > > > Also, in my index shapefile I have the following two shapefiles > referenced under the 'location' column: > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > The following page was used as a reference for creating my map file: > http://mapserver.org/utilities/tile4ms.html > > Any help on this would be great. > > Thank You, > > Peter Mallen > ------------------------------ Message: 6 Date: Wed, 22 Aug 2012 13:03:25 +0000 From: Rahkonen Jukka To: "'mapserver-users at lists.osgeo.org'" Subject: Re: [mapserver-users] Tile Index Issues Message-ID: <84446DEF76453C439E9E97E438E13A63467561 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="us-ascii" Hi, I have a feeling that I had problems with vector tile index and native Mapserver connection. For some reason I have changed our mapfiles to connect with OGR. Anyway, now when I had a try, both are working. Perhaps I had some issues with GetFeatureInfo and not with GetMaps. I have created my tileindex shapefiles with ogrtindex utility, and location records look a bit different z:\Data\contours\KM18M1BV.SHP,0 My connection alternatives which both work now (MS 6.0) are CONNECTIONTYPE OGR TILEINDEX "z:/data/Tindex/korkeusidx.shp,0" # TILEINDEX "z:/data/Tindex/korkeusidx" #both with or without .shp works here # TILEITEM "location" -Jukka Rahkonen- Jeff McKenna wrote: > > Hello, > > You might also test your mapfile with the shp2img utility > (http://mapserver.org/utilities/shp2img.html) with the switch "-all_debug 5" > to see your errors (and report to this list). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 12-08-21 8:38 PM, Peter Mallen wrote: > > Hello All, > > > > I am new to map server and I am attempting to display polygon shapefiles > > using a tile index but have not been able to see any results. > > Eventually I would like to use these tiles to place images(raster) files > > on my map but I was first just testing the 'TILEINDEX' feature with > > vector data. > > > > All of the shapefiles being referenced in my index shapefile are in the > > same folder. > > > > > > Also, in my index shapefile I have the following two shapefiles > > referenced under the 'location' column: > > \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp > > \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp > > > > The following page was used as a reference for creating my map file: > > http://mapserver.org/utilities/tile4ms.html > > > > Any help on this would be great. > > > > Thank You, > > > > Peter Mallen > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 7 Date: Thu, 23 Aug 2012 00:50:28 +0800 From: ?? To: mapserver-users at lists.osgeo.org Cc: mapserver-dev at lists.osgeo.org Subject: [mapserver-users] mapserver user can not make the shapefile data correctly show in the browser Message-ID: Content-Type: text/plain; charset="windows-1252" Hello, respected everyone, I have a problem when using Mapserver. I just using Maperver to rend an shapefile on ubuntu 12.04. but the expect image is not correctly showing, i think there maybe some problem with my mapfile set, especially with IMAGEURL define? I use a guide in the link : http://www.gistutor.com/mapserver/3-beginner-mapserver-tutorials/7-how-t o-generate-a-simple-map-using-mapserver-and-a-shapefile.html I assign the mapfile & template.html&start.html in my www DIR, which is like this: mapfiel.map: MAP NAME parcels_map STATUS ON SIZE 420 300 EXTENT 489885 5450946 490904 5451637 UNITS METERS SHAPEPATH "shapefiles" IMAGECOLOR 255 255 255 WEB TEMPLATE "template.html" IMAGEPATH "/var/www/output/" IMAGEURL "/output/" END LAYER NAME "parcel_boundaries" DATA parcels STATUS DEFAULT TYPE POLYGON CLASS NAME "parcels_color" COLOR 255 215 0 END END # end of map file END starrtmap.html: Creating a simple image using Mapserver and a Shapefile

Creating a simple image using Mapserver and a Shapefile


This page simply contains a link which sends a set of instructions to the Mapserver application using a mapfile.
The information stored within the mapfile tells the Mapserver application how to draw the map.

Click on this link to view a map generated using a Shapefile.


template.html: Simple Mapserver Template HTML Document

The image below was illustrated based on the instructions sent in the mapfile.

when I run the ?http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? in my address colum. The expect map is not shown. The page is showing content of template.html expectly, but there is only a image icon , but with no picture. And the status bar in the firefox brower is showing : conecting to output .. I notice that in the var/www/output DIR, there have been some png file generated. And is the png containing the polygon in the shapefile. Every time when I click the ? http://localhost/cgi-bin/mapserv?map=/var/www/mapfile.map? link, a new png file is generated in output DIR. I want to know if the IMAGEURL in the mapfile is set wrongly? Why the png is genrated correctly but not showing in the browser? Any one can help me? -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 55, Issue 45 *********************************************** From woodbri at swoodbridge.com Wed Aug 22 19:38:17 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 22 Aug 2012 22:38:17 -0400 Subject: [mapserver-users] Tile Index Issues (Stephen Woodbridge) In-Reply-To: <0342A56AD728D64185DB36D9514E2E7ED51CBB@BE64.exg3.exghost.com> References: <0342A56AD728D64185DB36D9514E2E7ED51CBB@BE64.exg3.exghost.com> Message-ID: <50359799.8030304@swoodbridge.com> On 8/22/2012 6:01 PM, Peter Mallen wrote: > Hi Stephen, > > I have posted part of my mapfile below. I am also using the debug to > send any errors to the log but no errors seem to come up. Forgot to > mention that my shapefiles display in QGIS when using the tile index > shapefile. > I would try this: LAYER NAME 'banner1' STATUS DEFAULT DEBUG 5 # don't need OGR, but if you want to use it try this first # sometimes \ can be a problem so trying / # you do not need .shp on the tileindex or shapefile names # but it should not matter either TILEINDEX 'C:/ms4w/Apache/htdocs/map.data/tindex-3' TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS STYLE COLOR "#ffff00" # yellow polygons OUTLINECOLOR "#222222" # with dark borders END END END Try this first, if it works then try changing things one at a time and retest to make sure it continues to work. Then if you find something that breaks it and you do not understand why ask. -Steve W > LAYER > NAME 'banner1' > > STATUS DEFAULT > DEBUG 5 > > CONNECTIONTYPE OGR > TILEINDEX 'C:\ms4w\Apache\htdocs\map.data\tindex-3.shp' > TILEITEM 'location' > TYPE POLYGON > > TRANSFORM OFF > > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > "epsg:4326" > > > END > > END > > Thank you, > > Peter Mallen > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > mapserver-users-request at lists.osgeo.org > Sent: Wednesday, August 22, 2012 9:51 AM > To: mapserver-users at lists.osgeo.org > Subject: mapserver-users Digest, Vol 55, Issue 45 > > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific than > "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. Re: Tile Index Issues (Stephen Woodbridge) > 2. Export map into pdf (sharad) > 3. Re: Export map into pdf (Till Adams) > 4. Re: Export map into pdf (Rahkonen Jukka) > 5. Re: Tile Index Issues (Jeff McKenna) > 6. Re: Tile Index Issues (Rahkonen Jukka) > 7. mapserver user can not make the shapefile data correctly show > in the browser (??) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 21 Aug 2012 20:57:22 -0400 > From: Stephen Woodbridge > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Tile Index Issues > Message-ID: <50342E72.1020205 at swoodbridge.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 8/21/2012 7:38 PM, Peter Mallen wrote: >> Hello All, >> >> I am new to map server and I am attempting to display polygon >> shapefiles using a tile index but have not been able to see any > results. >> Eventually I would like to use these tiles to place images(raster) >> files on my map but I was first just testing the 'TILEINDEX' feature >> with vector data. >> >> All of the shapefiles being referenced in my index shapefile are in >> the same folder. >> >> >> Also, in my index shapefile I have the following two shapefiles >> referenced under the 'location' column: >> \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp >> \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp >> >> The following page was used as a reference for creating my map file: >> http://mapserver.org/utilities/tile4ms.html >> >> Any help on this would be great. >> >> Thank You, >> >> Peter Mallen > > What does your mapfile look like? > > > > ------------------------------ > > Message: 2 > Date: Wed, 22 Aug 2012 02:39:51 -0700 (PDT) > From: sharad > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Export map into pdf > Message-ID: <1345628391878-4996952.post at n6.nabble.com> > Content-Type: text/plain; charset=us-ascii > > hi all, > i am developing web application using mapserver with C#/Mapscript. > how can I export map into pdf file using c#/mapscript? > > I will appreciate your reply. > > thanks > sharad > > > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > ------------------------------ > > Message: 3 > Date: Wed, 22 Aug 2012 11:45:02 +0200 > From: Till Adams > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Export map into pdf > Message-ID: <5034AA1E.1080806 at terrestris.de> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi Sharad, > > we use MapFish-print-servlet, which is the best software I know for > generating maps in pdf. > -> http://www.mapfish.org/doc/print/ > > But this is in Java, so the other side of the river ;-) > > Reagrds, Till > > > > > On 22.08.2012 11:39, sharad wrote: >> hi all, >> i am developing web application using mapserver with C#/Mapscript. >> how can I export map into pdf file using c#/mapscript? >> >> I will appreciate your reply. >> >> thanks >> sharad >> >> >> >> >> >> -- >> View this message in context: >> http://osgeo-org.1560.n6.nabble.com/Export-map-into-pdf-tp4996952.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 kastner at graphservice.de Thu Aug 23 00:28:50 2012 From: kastner at graphservice.de (Daniel Kastner) Date: Thu, 23 Aug 2012 09:28:50 +0200 Subject: [mapserver-users] Problem with queryByAttributes (C#-MapScript) Message-ID: <3012EAFB6731D842B8DBC062CE6DC614106636@wotan.Wallhall.GraphserviceIT.de> Hi to all of you. I'm building a WebService based on MapServer using MapScript for C#. While implementing a search function I ran into problems using the queryByAttributes-function on the layerObj. The problem might be the wrong syntax for the regular expressions. But it might be something else. I assume that both calls should return the same set of features/shapes/object from the layer: layer.queryByAttributes(Map, null, "('[StrName]' = 'Kropsburgweg'), MS_QUERY_MULTIPLE); and layer.queryByAttributes(Map, null, "('[StrName]' =~ /Kropsburgweg/), MS_QUERY_MULTIPLE); But while the first call returns about 37 features the second call doesn't return any features. Any idea what I#m doing wrong?! Thanks in advance, Daniel From mailing at tam.si Thu Aug 23 06:02:08 2012 From: mailing at tam.si (Matej Mailing) Date: Thu, 23 Aug 2012 15:02:08 +0200 Subject: [mapserver-users] Remote PostGIS server connection problem Message-ID: Hi, I am running 6.0.1 on a FreeBSD host. Everything works perfect when I connect to the local PostGIS server (located on the same machine as the Mapserver is running on). When I try to connect to the PostGIS server that is not in the same network, I get the following error: "msDrawMap(): Image handling error. Failed to draw layer named 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection failed (could not connect to server: Permission denied Is the server running on host "IP" and accepting TCP/IP connections on port 5432? Is it allowing connections? Does the specified user exist? Is the password valid? Is the database on the standard port? 1. I can connect to the server IP on port 5432 via paql from console from the machine where Mapserver is running. 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, I see no traffic comming in so basically when the error is displayed it is not due to remote server settings. I was browsing on the web and found out that people that were using SELinux had to enable the option httpd_can_network_connect. It seems like the Apache is not allowed to initiate a remote connection to a non-local IP address. Is it the Apache limitation? Is it the OS limitation or is it the Mapserver limitation (I am pretty sure that it isn't, but I don't know where to look anymore ...) After pulling my hair for several hours any help or idea would be very welcome :-) TIA, Matej From jmckenna at gatewaygeomatics.com Thu Aug 23 06:21:49 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 23 Aug 2012 10:21:49 -0300 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: References: Message-ID: <50362E6D.5080104@gatewaygeomatics.com> On 12-08-23 10:02 AM, Matej Mailing wrote: > Hi, > > I am running 6.0.1 on a FreeBSD host. Everything works perfect when I > connect to the local PostGIS server (located on the same machine as > the Mapserver is running on). When I try to connect to the PostGIS > server that is not in the same network, I get the following error: > "msDrawMap(): Image handling error. Failed to draw layer named > 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection > failed (could not connect to server: Permission denied Is the server > running on host "IP" and accepting TCP/IP connections on port 5432? Is > it allowing connections? Does the specified user exist? Is the > password valid? Is the database on the standard port? > > 1. I can connect to the server IP on port 5432 via paql from console > from the machine where Mapserver is running. > 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, > I see no traffic comming in so basically when the error is displayed > it is not due to remote server settings. > > I was browsing on the web and found out that people that were using > SELinux had to enable the option httpd_can_network_connect. It seems > like the Apache is not allowed to initiate a remote connection to a > non-local IP address. Is it the Apache limitation? Is it the OS > limitation or is it the Mapserver limitation (I am pretty sure that it > isn't, but I don't know where to look anymore ...) > > After pulling my hair for several hours any help or idea would be very > welcome :-) > You can test without Apache by using the MapServer commandline utility shp2img (http://mapserver.org/utilities/shp2img.html). Use the "-all_debug 5" switch to see more info. (that's my favorite debugging tool) Next I would check the settings in the remote Postgres data folder's "pg_hba.conf" file. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Thu Aug 23 06:20:03 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Aug 2012 09:20:03 -0400 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: References: Message-ID: <50362E03.9060808@swoodbridge.com> Hi Matej, Are specifying a user name in your connection? If not then psql uses you user as the use name, but the apache uses whatever name is associated with the apache user. Do you get an error if you run shp2img or if you run: /path/to/mapserv QUERY_STRING='your mapserver request arguments' -Steve On 8/23/2012 9:02 AM, Matej Mailing wrote: > Hi, > > I am running 6.0.1 on a FreeBSD host. Everything works perfect when I > connect to the local PostGIS server (located on the same machine as > the Mapserver is running on). When I try to connect to the PostGIS > server that is not in the same network, I get the following error: > "msDrawMap(): Image handling error. Failed to draw layer named > 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection > failed (could not connect to server: Permission denied Is the server > running on host "IP" and accepting TCP/IP connections on port 5432? Is > it allowing connections? Does the specified user exist? Is the > password valid? Is the database on the standard port? > > 1. I can connect to the server IP on port 5432 via paql from console > from the machine where Mapserver is running. > 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, > I see no traffic comming in so basically when the error is displayed > it is not due to remote server settings. > > I was browsing on the web and found out that people that were using > SELinux had to enable the option httpd_can_network_connect. It seems > like the Apache is not allowed to initiate a remote connection to a > non-local IP address. Is it the Apache limitation? Is it the OS > limitation or is it the Mapserver limitation (I am pretty sure that it > isn't, but I don't know where to look anymore ...) > > After pulling my hair for several hours any help or idea would be very > welcome :-) > > TIA, > Matej > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yves.jacolin at camptocamp.com Thu Aug 23 06:47:47 2012 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 23 Aug 2012 15:47:47 +0200 Subject: [mapserver-users] label offset bug Message-ID: <50363483.1010304@camptocamp.com> Hello, I have a layer with label (and offset on this lable). Some labels don't displayed correctly, ie offset value seems not used: see http://imageshack.us/f/163/mapserverstyleoffsetbug.png/ My label config looks like this: LABEL TYPE TRUETYPE FONT arial SIZE 7 COLOR 0 150 150 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 2 ANTIALIAS TRUE ANGLE follow POSITION cc OFFSET 0 7 END Does follow ANGLE value change someting with the OFFSET value? Thanks, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From zhaops at hotmail.com Thu Aug 23 09:06:17 2012 From: zhaops at hotmail.com (Peisheng Zhao) Date: Thu, 23 Aug 2012 16:06:17 +0000 Subject: [mapserver-users] error when installing MapServer 6.0.3 Message-ID: I have compiled the MapServer 6.0.3 successfully. But when I run it, I got the following error: ./mapserv: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /var/scratch/pzhao1/gdal-1.9.1/lib/libgdal.so.1) ./mapserv: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /var/scratch/pzhao1/libdap-3.11.1/lib/libdapserver.so.7) ./mapserv: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /var/scratch/pzhao1/libdap-3.11.1/lib/libdapclient.so.3) ./mapserv: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /var/scratch/pzhao1/libdap-3.11.1/lib/libdap.so.11) Any suggestion and solution? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Thu Aug 23 10:31:40 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 23 Aug 2012 13:31:40 -0400 Subject: [mapserver-users] Different image for each point Message-ID: Hello folks, We need to be able to display a different small image from each point in a data set, say along the lines of a thumbnail. >From what I can see this could be done my defining each image as a symbol and then referencing that. However what we would like to be able to do is get the image file name as part of the query and display the image based on that. Is this possible? Thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Aug 23 11:21:19 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Aug 2012 14:21:19 -0400 Subject: [mapserver-users] Different image for each point In-Reply-To: References: Message-ID: <5036749F.60001@swoodbridge.com> On 8/23/2012 1:31 PM, Ian Walberg wrote: > Hello folks, > > We need to be able to display a different small image from each point in > a data set, say along the lines of a thumbnail. > > From what I can see this could be done my defining each image as a > symbol and then referencing that. > > However what we would like to be able to do is get the image file name > as part of the query and display the image based on that. > > Is this possible? I have done this by creating a column with the filename in it. You can then use the column as a symbol name or symbol path or as attribute column in wfs to OpenLayers that can then be used to point to a thumbnail directory of fullsize directory of images. LAYER NAME "images" TYPE POINT DATA "myImagePoints" CLASS STYLE SYMBOL ("/path/to/thumbs/"+'[FILENAME]') END END END Where column FILENAME has something like 'myimage.png' and to do this you are probably limited to gif, jpg, and png images only. svg will NOT work. -Steve W From thomas.bonfort at gmail.com Thu Aug 23 11:26:12 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 23 Aug 2012 20:26:12 +0200 Subject: [mapserver-users] Different image for each point In-Reply-To: <5036749F.60001@swoodbridge.com> References: <5036749F.60001@swoodbridge.com> Message-ID: I was just replying along the same lines... :) On Thu, Aug 23, 2012 at 8:21 PM, Stephen Woodbridge wrote: > On 8/23/2012 1:31 PM, Ian Walberg wrote: >> >> Hello folks, >> >> We need to be able to display a different small image from each point in >> a data set, say along the lines of a thumbnail. >> >> From what I can see this could be done my defining each image as a >> symbol and then referencing that. >> >> However what we would like to be able to do is get the image file name >> as part of the query and display the image based on that. >> >> Is this possible? > > > I have done this by creating a column with the filename in it. You can then > use the column as a symbol name or symbol path or as attribute column in wfs > to OpenLayers that can then be used to point to a thumbnail directory of > fullsize directory of images. > > LAYER > NAME "images" > TYPE POINT > DATA "myImagePoints" > CLASS > STYLE > SYMBOL ("/path/to/thumbs/"+'[FILENAME]') > END > END > END > > Where column FILENAME has something like 'myimage.png' and to do this you > are probably limited to gif, jpg, and png images only. svg will NOT work. gif and png are the only options. jpeg is not. -- thomas > > -Steve W > > _______________________________________________ > 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 Aug 23 11:27:49 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 23 Aug 2012 14:27:49 -0400 Subject: [mapserver-users] Different image for each point In-Reply-To: <5036749F.60001@swoodbridge.com> References: <5036749F.60001@swoodbridge.com> Message-ID: Stephen, This looks perfect, I need to look closer but I had thought the symbols needed to be defined separately. Regards 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: Thursday, August 23, 2012 11:21 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Different image for each point On 8/23/2012 1:31 PM, Ian Walberg wrote: > Hello folks, > > We need to be able to display a different small image from each point > in a data set, say along the lines of a thumbnail. > > From what I can see this could be done my defining each image as a > symbol and then referencing that. > > However what we would like to be able to do is get the image file name > as part of the query and display the image based on that. > > Is this possible? I have done this by creating a column with the filename in it. You can then use the column as a symbol name or symbol path or as attribute column in wfs to OpenLayers that can then be used to point to a thumbnail directory of fullsize directory of images. LAYER NAME "images" TYPE POINT DATA "myImagePoints" CLASS STYLE SYMBOL ("/path/to/thumbs/"+'[FILENAME]') END END END Where column FILENAME has something like 'myimage.png' and to do this you are probably limited to gif, jpg, and png images only. svg will NOT work. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mapserver at geoworld.de Thu Aug 23 14:10:10 2012 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 23 Aug 2012 23:10:10 +0200 Subject: [mapserver-users] compiler failture with mapserver 6.2.0beta2 on debian wheezy Message-ID: <1345756210.12570.36.camel@mobil.geoworld.de> Hello Dev's I am trying to compile mapserver 6.2.0beta2 in my Debian wheezy (amd64) system. the configure statement looks like this: ./configure --with-wfsclient --with-wfs --with-wmsclient --without-tiff --with-jpeg=/usr --with-ogr=/usr/local/bin/gdal-config --with-freetype=/usr --with-png=/usr --with-proj=/usr --enable-debug --with-gd=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-threads --with-httpd=/usr/local/apache2_ssl/bin/httpd --with-php=/usr/local/php5/bin/php-config --with-agg=/usr/local --with-geos=/usr/local/bin/geos-config --without-opengl --without-ftgl Unfortunately the make statement fails with libtool: link: cannot find the library `/usr/lib/libfreetype.la' or unhandled argument `/usr/lib/libfreetype.la' The corresponding make file entry looks fine to me. #Freetype support FT_ENABLE= -DUSE_FREETYPE FT_LIB= -L/usr/lib/x86_64-linux-gnu -lfreetype -lz FT_INC= -I/usr/include/freetype2 Not sure it still looks for the file in '/usr/lib'. If I am symlinking the file the error disappears ln -s /usr/lib/x86_64-linux-gnu/libfreetype.la /usr/lib/libfreetype.la followed by the next failure: libtool: link: cannot find the library `/usr/lib/libsqlite3.la' or unhandled argument `/usr/lib/libsqlite3.la' Seems to be a more generic problem. Do you have any hints how to solve this? Thank you very much Best regards Nicol From woodbri at swoodbridge.com Thu Aug 23 12:25:39 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Aug 2012 15:25:39 -0400 Subject: [mapserver-users] Different image for each point In-Reply-To: References: <5036749F.60001@swoodbridge.com> Message-ID: <503683B3.4070004@swoodbridge.com> A lot of this code has been changed in 6.2, but I think the basics still work. I'm not sure if images are cached or not when using this method or if it matters in your case. I guess ideally if it were a fixed set of images then you want caching, but it they are all different then you probably want to turn caching off, but I do not think there are any controls for that. If you have the whole path to the image in the attribute then you do not need to use an expression to concatenate the path and name so it simplies to: SYMBOL '[FILENAME]' Also be aware that you should probably use a POINT layer and not ANNOTATION layers as the latter is deprecated in 6.2 so upgrading it will be easier. -Steve W On 8/23/2012 2:27 PM, Ian Walberg wrote: > Stephen, > > This looks perfect, I need to look closer but I had thought the symbols > needed to be defined separately. > > Regards > > 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: Thursday, August 23, 2012 11:21 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Different image for each point > > On 8/23/2012 1:31 PM, Ian Walberg wrote: >> Hello folks, >> >> We need to be able to display a different small image from each point >> in a data set, say along the lines of a thumbnail. >> >> From what I can see this could be done my defining each image as a >> symbol and then referencing that. >> >> However what we would like to be able to do is get the image file name > >> as part of the query and display the image based on that. >> >> Is this possible? > > I have done this by creating a column with the filename in it. You can > then use the column as a symbol name or symbol path or as attribute > column in wfs to OpenLayers that can then be used to point to a > thumbnail directory of fullsize directory of images. > > > LAYER > NAME "images" > TYPE POINT > DATA "myImagePoints" > CLASS > STYLE > SYMBOL ("/path/to/thumbs/"+'[FILENAME]') > END > END > END > > Where column FILENAME has something like 'myimage.png' and to do this > you are probably limited to gif, jpg, and png images only. svg will NOT > work. > > -Steve W > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mailing at tam.si Thu Aug 23 12:30:03 2012 From: mailing at tam.si (Matej Mailing) Date: Thu, 23 Aug 2012 21:30:03 +0200 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: <50362E6D.5080104@gatewaygeomatics.com> References: <50362E6D.5080104@gatewaygeomatics.com> Message-ID: Hi, when I use shp2img -m mapfile.map -all_debug 5 from the server with the same map file that causes mentioned error in Mapserver, I can see in the log that the server connects successfully so it works as it should with shp2img - thanks for this tip, I will use it in the future to debug connection string issues with map files. However, it still doesn't work from Apache and Mapserver. With Mapserver the connection doesn't even come to the remote Postgres since I see nothing in tcpdump, but everything is OK in pg_hba.conf because I can connect from the server where Mapserver is running to the remote server with pgsql from console. Best regards, Matej 2012/8/23 Jeff McKenna : > On 12-08-23 10:02 AM, Matej Mailing wrote: >> Hi, >> >> I am running 6.0.1 on a FreeBSD host. Everything works perfect when I >> connect to the local PostGIS server (located on the same machine as >> the Mapserver is running on). When I try to connect to the PostGIS >> server that is not in the same network, I get the following error: >> "msDrawMap(): Image handling error. Failed to draw layer named >> 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection >> failed (could not connect to server: Permission denied Is the server >> running on host "IP" and accepting TCP/IP connections on port 5432? Is >> it allowing connections? Does the specified user exist? Is the >> password valid? Is the database on the standard port? >> >> 1. I can connect to the server IP on port 5432 via paql from console >> from the machine where Mapserver is running. >> 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, >> I see no traffic comming in so basically when the error is displayed >> it is not due to remote server settings. >> >> I was browsing on the web and found out that people that were using >> SELinux had to enable the option httpd_can_network_connect. It seems >> like the Apache is not allowed to initiate a remote connection to a >> non-local IP address. Is it the Apache limitation? Is it the OS >> limitation or is it the Mapserver limitation (I am pretty sure that it >> isn't, but I don't know where to look anymore ...) >> >> After pulling my hair for several hours any help or idea would be very >> welcome :-) >> > > You can test without Apache by using the MapServer commandline utility > shp2img (http://mapserver.org/utilities/shp2img.html). Use the > "-all_debug 5" switch to see more info. > > (that's my favorite debugging tool) > > Next I would check the settings in the remote Postgres data folder's > "pg_hba.conf" file. > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mailing at tam.si Thu Aug 23 12:35:03 2012 From: mailing at tam.si (Matej Mailing) Date: Thu, 23 Aug 2012 21:35:03 +0200 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: <50362E03.9060808@swoodbridge.com> References: <50362E03.9060808@swoodbridge.com> Message-ID: Hi, as with the shp2img, I get a successful result also with mapserv QUERY_STRING='......' so the connection can be established (and it also works from one server to another via pgsql from console as mentioned in the previous mail). What could prevent Apache to allow the connection? I am little bit lost here also because of the fact that people on SELinux had an option to enable, but what can we do on FreeBSD? Still I don't know if it's OS or Apache's fault ... Thanks. Matej 2012/8/23 Stephen Woodbridge : > Hi Matej, > > Are specifying a user name in your connection? > > If not then psql uses you user as the use name, but the apache uses whatever > name is associated with the apache user. > > Do you get an error if you run shp2img or if you run: > > /path/to/mapserv QUERY_STRING='your mapserver request arguments' > > -Steve > > > On 8/23/2012 9:02 AM, Matej Mailing wrote: >> >> Hi, >> >> I am running 6.0.1 on a FreeBSD host. Everything works perfect when I >> connect to the local PostGIS server (located on the same machine as >> the Mapserver is running on). When I try to connect to the PostGIS >> server that is not in the same network, I get the following error: >> "msDrawMap(): Image handling error. Failed to draw layer named >> 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection >> failed (could not connect to server: Permission denied Is the server >> running on host "IP" and accepting TCP/IP connections on port 5432? Is >> it allowing connections? Does the specified user exist? Is the >> password valid? Is the database on the standard port? >> >> 1. I can connect to the server IP on port 5432 via paql from console >> from the machine where Mapserver is running. >> 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, >> I see no traffic comming in so basically when the error is displayed >> it is not due to remote server settings. >> >> I was browsing on the web and found out that people that were using >> SELinux had to enable the option httpd_can_network_connect. It seems >> like the Apache is not allowed to initiate a remote connection to a >> non-local IP address. Is it the Apache limitation? Is it the OS >> limitation or is it the Mapserver limitation (I am pretty sure that it >> isn't, but I don't know where to look anymore ...) >> >> After pulling my hair for several hours any help or idea would be very >> welcome :-) >> >> TIA, >> Matej >> _______________________________________________ >> 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 mailing at tam.si Thu Aug 23 13:06:41 2012 From: mailing at tam.si (Matej Mailing) Date: Thu, 23 Aug 2012 22:06:41 +0200 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: References: <50362E03.9060808@swoodbridge.com> Message-ID: Found it out - it was a firewall rule allowing to initiate all the connections for the root user (as I was running both testing procedures sugggested by Jeff and Stephen and of course it worked) and not allowing outside 5432 connection to the particular remote server :-) Thanks for all the tips and ideas. Best regards, Matej 2012/8/23 Matej Mailing : > Hi, > > as with the shp2img, I get a successful result also with > mapserv QUERY_STRING='......' so the connection can be established > (and it also works from one server to another via pgsql from console > as mentioned in the previous mail). > > What could prevent Apache to allow the connection? I am little bit > lost here also because of the fact that people on SELinux had an > option to enable, but what can we do on FreeBSD? Still I don't know if > it's OS or Apache's fault ... > > Thanks. > Matej > > 2012/8/23 Stephen Woodbridge : >> Hi Matej, >> >> Are specifying a user name in your connection? >> >> If not then psql uses you user as the use name, but the apache uses whatever >> name is associated with the apache user. >> >> Do you get an error if you run shp2img or if you run: >> >> /path/to/mapserv QUERY_STRING='your mapserver request arguments' >> >> -Steve >> >> >> On 8/23/2012 9:02 AM, Matej Mailing wrote: >>> >>> Hi, >>> >>> I am running 6.0.1 on a FreeBSD host. Everything works perfect when I >>> connect to the local PostGIS server (located on the same machine as >>> the Mapserver is running on). When I try to connect to the PostGIS >>> server that is not in the same network, I get the following error: >>> "msDrawMap(): Image handling error. Failed to draw layer named >>> 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection >>> failed (could not connect to server: Permission denied Is the server >>> running on host "IP" and accepting TCP/IP connections on port 5432? Is >>> it allowing connections? Does the specified user exist? Is the >>> password valid? Is the database on the standard port? >>> >>> 1. I can connect to the server IP on port 5432 via paql from console >>> from the machine where Mapserver is running. >>> 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, >>> I see no traffic comming in so basically when the error is displayed >>> it is not due to remote server settings. >>> >>> I was browsing on the web and found out that people that were using >>> SELinux had to enable the option httpd_can_network_connect. It seems >>> like the Apache is not allowed to initiate a remote connection to a >>> non-local IP address. Is it the Apache limitation? Is it the OS >>> limitation or is it the Mapserver limitation (I am pretty sure that it >>> isn't, but I don't know where to look anymore ...) >>> >>> After pulling my hair for several hours any help or idea would be very >>> welcome :-) >>> >>> TIA, >>> Matej >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Thu Aug 23 13:16:53 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 23 Aug 2012 20:16:53 +0000 Subject: [mapserver-users] Different image for each point In-Reply-To: <503683B3.4070004@swoodbridge.com> References: <5036749F.60001@swoodbridge.com> <503683B3.4070004@swoodbridge.com> Message-ID: You can't do expressions as originally discussed but you can use attribute binding. This requires the image file name be in a single attribute. Syntax is: SYMBOL [FILENAME] # no quotes This basically creates symbols at runtime so the images are cached based on filename I believe. 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: Thursday, August 23, 2012 2:26 PM To: Ian Walberg Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Different image for each point A lot of this code has been changed in 6.2, but I think the basics still work. I'm not sure if images are cached or not when using this method or if it matters in your case. I guess ideally if it were a fixed set of images then you want caching, but it they are all different then you probably want to turn caching off, but I do not think there are any controls for that. If you have the whole path to the image in the attribute then you do not need to use an expression to concatenate the path and name so it simplies to: SYMBOL '[FILENAME]' Also be aware that you should probably use a POINT layer and not ANNOTATION layers as the latter is deprecated in 6.2 so upgrading it will be easier. -Steve W On 8/23/2012 2:27 PM, Ian Walberg wrote: > Stephen, > > This looks perfect, I need to look closer but I had thought the > symbols needed to be defined separately. > > Regards > > 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: Thursday, August 23, 2012 11:21 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Different image for each point > > On 8/23/2012 1:31 PM, Ian Walberg wrote: >> Hello folks, >> >> We need to be able to display a different small image from each point >> in a data set, say along the lines of a thumbnail. >> >> From what I can see this could be done my defining each image as a >> symbol and then referencing that. >> >> However what we would like to be able to do is get the image file >> name > >> as part of the query and display the image based on that. >> >> Is this possible? > > I have done this by creating a column with the filename in it. You can > then use the column as a symbol name or symbol path or as attribute > column in wfs to OpenLayers that can then be used to point to a > thumbnail directory of fullsize directory of images. > > > LAYER > NAME "images" > TYPE POINT > DATA "myImagePoints" > CLASS > STYLE > SYMBOL ("/path/to/thumbs/"+'[FILENAME]') > END > END > END > > Where column FILENAME has something like 'myimage.png' and to do this > you are probably limited to gif, jpg, and png images only. svg will > NOT work. > > -Steve W > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Aug 23 14:06:29 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Aug 2012 17:06:29 -0400 Subject: [mapserver-users] [tinyOWS] libxml2 2.8.0 not released on debian Message-ID: <50369B55.1000706@swoodbridge.com> Hi, I'm trying to build tinyOWS on Debian, but the requirement for libxml2-2.8.0 is not released on stable (squeeze) and not in the backports either. It is in testing (wheezy) but mixing versions is a recipe for problems. It would be nice if you limited library versions to what is generally release on stable OSs. -Steve W From woodbri at swoodbridge.com Thu Aug 23 14:20:42 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 23 Aug 2012 17:20:42 -0400 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: References: <50362E03.9060808@swoodbridge.com> Message-ID: <50369EAA.5060304@swoodbridge.com> The only difference between running from the commandline and running from apache is the user and possible the LD_LIBRARY_PATH that apache uses. su -l apache_user /path/to/cgi-bin/mapserv QUERY_STRING='...' exit And see if you get any useful messages. You might also look in the apache error log. I forget where FreeBSD puts things but something like: more /var/log/apache/error.log I don't think many people here run FreeBSD. I did 5+ years ago, but its been a while. -Steve On 8/23/2012 3:35 PM, Matej Mailing wrote: > Hi, > > as with the shp2img, I get a successful result also with > mapserv QUERY_STRING='......' so the connection can be established > (and it also works from one server to another via pgsql from console > as mentioned in the previous mail). > > What could prevent Apache to allow the connection? I am little bit > lost here also because of the fact that people on SELinux had an > option to enable, but what can we do on FreeBSD? Still I don't know if > it's OS or Apache's fault ... > > Thanks. > Matej > > 2012/8/23 Stephen Woodbridge : >> Hi Matej, >> >> Are specifying a user name in your connection? >> >> If not then psql uses you user as the use name, but the apache uses whatever >> name is associated with the apache user. >> >> Do you get an error if you run shp2img or if you run: >> >> /path/to/mapserv QUERY_STRING='your mapserver request arguments' >> >> -Steve >> >> >> On 8/23/2012 9:02 AM, Matej Mailing wrote: >>> >>> Hi, >>> >>> I am running 6.0.1 on a FreeBSD host. Everything works perfect when I >>> connect to the local PostGIS server (located on the same machine as >>> the Mapserver is running on). When I try to connect to the PostGIS >>> server that is not in the same network, I get the following error: >>> "msDrawMap(): Image handling error. Failed to draw layer named >>> 'LAYER_NAME'. msPostGISLayerOpen(): Query error. Database connection >>> failed (could not connect to server: Permission denied Is the server >>> running on host "IP" and accepting TCP/IP connections on port 5432? Is >>> it allowing connections? Does the specified user exist? Is the >>> password valid? Is the database on the standard port? >>> >>> 1. I can connect to the server IP on port 5432 via paql from console >>> from the machine where Mapserver is running. >>> 2. When doing tcpdump dst 5432 on the PostGIS server that is outside, >>> I see no traffic comming in so basically when the error is displayed >>> it is not due to remote server settings. >>> >>> I was browsing on the web and found out that people that were using >>> SELinux had to enable the option httpd_can_network_connect. It seems >>> like the Apache is not allowed to initiate a remote connection to a >>> non-local IP address. Is it the Apache limitation? Is it the OS >>> limitation or is it the Mapserver limitation (I am pretty sure that it >>> isn't, but I don't know where to look anymore ...) >>> >>> After pulling my hair for several hours any help or idea would be very >>> welcome :-) >>> >>> TIA, >>> Matej >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Aug 23 14:23:03 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 23 Aug 2012 18:23:03 -0300 Subject: [mapserver-users] Remote PostGIS server connection problem In-Reply-To: References: <50362E03.9060808@swoodbridge.com> Message-ID: <50369F37.1060909@gatewaygeomatics.com> On 12-08-23 5:06 PM, Matej Mailing wrote: > Found it out - it was a firewall rule allowing to initiate all the > connections for the root user (as I was running both testing > procedures sugggested by Jeff and Stephen and of course it worked) and > not allowing outside 5432 connection to the particular remote server > :-) > > Thanks for all the tips and ideas. > > Best regards, > Matej That one will make you earn your pay indeed :) Cheers. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From akoel at yahoo.com Thu Aug 23 17:26:48 2012 From: akoel at yahoo.com (csaba toth) Date: Thu, 23 Aug 2012 17:26:48 -0700 (PDT) Subject: [mapserver-users] postgis-topology-how to use topogeom field Message-ID: <1345768008.98670.YahooMailClassic@web39403.mail.mud.yahoo.com> As I know the topogeom type is automatically casting to geometry type. So I have a table (telek) with a field of topogeom? (topo_geom) in the postgresql db (tdc) I made a map file for the mapserver and the layer looks like this: ?LAYER ??? NAME "telek" ??? CONNECTIONTYPE postgis ??? CONNECTION "host=localhost password=postgres user=postgres dbname=tdc" ??? DATA "topo_geom from public.telek" ??? STATUS DEFAULT ??? TYPE LINE ??? TOLERANCE 10 ??? ??? PROJECTION ????? "init=epsg:2370" ??? END ??? CLASS ????? STYLE ? ?? ?? COLOR 0 0 255 ??????? WIDTH 10 ????? END ??? END ? END But I got the following error message when I try to display the map: msDrawMap(): Image handling error. Failed to draw layer named 'telek'. msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? What could be the problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.courtin at gmail.com Fri Aug 24 00:14:16 2012 From: olivier.courtin at gmail.com (Olivier Courtin) Date: Fri, 24 Aug 2012 09:14:16 +0200 Subject: [mapserver-users] [tinyOWS] libxml2 2.8.0 not released on debian In-Reply-To: <50369B55.1000706@swoodbridge.com> References: <50369B55.1000706@swoodbridge.com> Message-ID: On Thu, Aug 23, 2012 at 11:06 PM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: Hi Stephen > I'm trying to build tinyOWS on Debian, but the requirement for > libxml2-2.8.0 is not released on stable (squeeze) and not in the backports > either. It is in testing (wheezy) but mixing versions is a recipe for > problems. > > It would be nice if you limited library versions to what is generally > release on stable OSs. > A really annoying libxml2 bug was finally fixed and released with 2.8. cf http://mapserver.org/trunk/fr/tinyows/libxmlschemagmlbug.html Prior versions need workaround to make GML 3 works who could be IMHO more tricky than to compile manually libxml2. -- Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott159 at free.fr Fri Aug 24 05:10:16 2012 From: scott159 at free.fr (scott159 at free.fr) Date: Fri, 24 Aug 2012 14:10:16 +0200 (CEST) Subject: [mapserver-users] - OFFSITE with raster In-Reply-To: <1780989013.86089539.1345810203282.JavaMail.root@zimbra34-e6.priv.proxad.net> Message-ID: <367799504.86089667.1345810216033.JavaMail.root@zimbra34-e6.priv.proxad.net> Hi, I use mapserver to publish raster but when I add "OFFSITE 0 0 0" to treat black pixels as transparent for raster layers. But there is always a black boundary between rasters witch cover a area. Is there a solution to delete or reduce this boundary ? Thanks a lot From gisyangli at gmail.com Fri Aug 24 20:04:35 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Sat, 25 Aug 2012 11:04:35 +0800 Subject: [mapserver-users] How to check problem when load postgis data but no right map return? Message-ID: I use mapserver to load postgis data, but get a blank map, so I don't know how to check where is the problem. I enter in the browser " http://127.0.0.1/cgi-bin/mapserv?&map=/home/jack/Downloads/mapfile.map&mode=map", just get a blank image. my mapfile.map is like this: MAP NAME places0 STATUS ON SIZE 420 300 EXTENT -20000000 -20000000 20000000 20000000 UNITS METERS IMAGECOLOR 255 255 255 WEB TEMPLATE "template.html" IMAGEPATH "/var/www/output/" IMAGEURL "/output/" END LAYER STATUS default GROUP "default" TYPE POINT CONNECTIONTYPE postgis CONNECTION "dbname=osm host=localhost user=osm password=osm port=5432" NAME "places0" DATA "geometry from (select * from osm_new_places where name is not NULL order by population asc nulls first) as foo using unique osm_id using srid=3857" CLASS NAME "places0" COLOR 255 215 0 END END END # end of map file END --------------------------------------------------------------------------------------- I test in postgres the sentence "select * from osm_new_places where name is not NULL order by population asc nulls first" will return many results. Also the CONNECTION define I think is right. And I can not check wher the problem occured. Anyone give some advice and method for this? -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Aug 25 05:01:45 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 25 Aug 2012 09:01:45 -0300 Subject: [mapserver-users] How to check problem when load postgis data but no right map return? In-Reply-To: References: Message-ID: <5038BEA9.9010700@gatewaygeomatics.com> On 12-08-25 12:04 AM, ?? wrote: > I use mapserver to load postgis data, but get a blank map, so I don't > know how to check where is the problem. > Hmm. I might use the ogrinfo commandline utility to check the extents of the data, and then use those extents in the EXTENT parameter of the mapfile. ogrinfo PG:'dbname=osm host=localhost user=osm password=osm port=5432' osm_new_places -summary -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From henrique.renno at gmail.com Sat Aug 25 15:54:44 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sat, 25 Aug 2012 19:54:44 -0300 Subject: [mapserver-users] No transparency for layer Message-ID: Hello, I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" in order to make white becomes transparent for layers and it's working. The problem is that I have one layer for roads where background is white and becomes transparent but another layer for rivers where rivers are white, so they are not displayed. Is there a way to indicate that for the rivers' layer I don't want transparency to be applied? Both geometries are loaded from a postgis database which I imported from shapefiles and the shapefiles were not made by me. The strange thing is that if I set a color for the rivers' layer within a style then the "background" is set to that color, but I thought the rivers would be colored. That means the geometry is set for everything except the rivers? That's strange. Thanks in advance -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrique.renno at gmail.com Sat Aug 25 16:51:33 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sat, 25 Aug 2012 20:51:33 -0300 Subject: [mapserver-users] No transparency for layer In-Reply-To: References: Message-ID: Just had another problem. It seems that point geometry from a postgis database are not being displayed. What could be? 2012/8/25 Henrique Renn? > Hello, > > I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" in > order to make white becomes transparent for layers and it's working. The > problem is that I have one layer for roads where background is white and > becomes transparent but another layer for rivers where rivers are white, so > they are not displayed. Is there a way to indicate that for the rivers' > layer I don't want transparency to be applied? Both geometries are loaded > from a postgis database which I imported from shapefiles and the shapefiles > were not made by me. The strange thing is that if I set a color for the > rivers' layer within a style then the "background" is set to that color, > but I thought the rivers would be colored. That means the geometry is set > for everything except the rivers? That's strange. > > Thanks in advance > > -- > Henrique > > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrique.renno at gmail.com Sat Aug 25 17:13:50 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sat, 25 Aug 2012 21:13:50 -0300 Subject: [mapserver-users] No transparency for layer In-Reply-To: References: Message-ID: Searching on google, I found that other people had the same problems with points, but I have set symbol to "circle" and increased size with no success. 2012/8/25 Henrique Renn? > Just had another problem. It seems that point geometry from a postgis > database are not being displayed. What could be? > > > 2012/8/25 Henrique Renn? > >> Hello, >> >> I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" >> in order to make white becomes transparent for layers and it's working. The >> problem is that I have one layer for roads where background is white and >> becomes transparent but another layer for rivers where rivers are white, so >> they are not displayed. Is there a way to indicate that for the rivers' >> layer I don't want transparency to be applied? Both geometries are loaded >> from a postgis database which I imported from shapefiles and the shapefiles >> were not made by me. The strange thing is that if I set a color for the >> rivers' layer within a style then the "background" is set to that color, >> but I thought the rivers would be colored. That means the geometry is set >> for everything except the rivers? That's strange. >> >> Thanks in advance >> >> -- >> Henrique >> >> > > > -- > Henrique > > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrique.renno at gmail.com Sat Aug 25 17:43:12 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sat, 25 Aug 2012 21:43:12 -0300 Subject: [mapserver-users] No transparency for layer In-Reply-To: References: Message-ID: By the way, it's a postgis2 database. Should I change to 1.5? 2012/8/25 Henrique Renn? > Searching on google, I found that other people had the same problems with > points, but I have set symbol to "circle" and increased size with no > success. > > > 2012/8/25 Henrique Renn? > >> Just had another problem. It seems that point geometry from a postgis >> database are not being displayed. What could be? >> >> >> 2012/8/25 Henrique Renn? >> >>> Hello, >>> >>> I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" >>> in order to make white becomes transparent for layers and it's working. The >>> problem is that I have one layer for roads where background is white and >>> becomes transparent but another layer for rivers where rivers are white, so >>> they are not displayed. Is there a way to indicate that for the rivers' >>> layer I don't want transparency to be applied? Both geometries are loaded >>> from a postgis database which I imported from shapefiles and the shapefiles >>> were not made by me. The strange thing is that if I set a color for the >>> rivers' layer within a style then the "background" is set to that color, >>> but I thought the rivers would be colored. That means the geometry is set >>> for everything except the rivers? That's strange. >>> >>> Thanks in advance >>> >>> -- >>> Henrique >>> >>> >> >> >> -- >> Henrique >> >> > > > -- > Henrique > > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisyangli at gmail.com Sat Aug 25 19:55:37 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Sun, 26 Aug 2012 10:55:37 +0800 Subject: [mapserver-users] How to check problem when load postgis data but no right map return? (Jeff McKenna) Message-ID: I use the origin info and found some problem with relation geography_columns, jack at jack-Dell-DM061:~$ ogrinfo PG:'dbname=osm host=localhost user=osm password=osm port=5432' osm_new_places -summary ERROR 1: ERROR: permission denied for relation geography_columns ERROR 1: ERROR: permission denied for relation geography_columns but I test it with QGIS-> addpostgis layer. it's no problem. How to solve this problem? thanks 2012/8/26 > 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 check problem when load postgis data but no right map > return? (??) > 2. Re: How to check problem when load postgis data but no right > map return? (Jeff McKenna) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 25 Aug 2012 11:04:35 +0800 > From: ?? > To: mapserver-users at lists.osgeo.org > Cc: mapserver-dev at lists.osgeo.org > Subject: [mapserver-users] How to check problem when load postgis data > but no right map return? > Message-ID: > < > CANtWbEBCPJP0ON0hxkH8CoC3GnAQMUSb6VWnWHEE2K6qxBqQ8A at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I use mapserver to load postgis data, but get a blank map, so I don't know > how to check where is the problem. > > > I enter in the browser " > > http://127.0.0.1/cgi-bin/mapserv?&map=/home/jack/Downloads/mapfile.map&mode=map > ", > just get a blank image. > > my mapfile.map is like this: > > > MAP > NAME places0 > STATUS ON > SIZE 420 300 > EXTENT -20000000 -20000000 20000000 20000000 > UNITS METERS > IMAGECOLOR 255 255 255 > > WEB > TEMPLATE "template.html" > IMAGEPATH "/var/www/output/" > IMAGEURL "/output/" > END > > > LAYER > STATUS default > GROUP "default" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "dbname=osm host=localhost user=osm password=osm port=5432" > NAME "places0" > DATA "geometry from (select * from osm_new_places where name is not NULL > order by population asc nulls first) as foo using unique osm_id using > srid=3857" > CLASS > NAME "places0" > COLOR 255 215 0 > END > END > > END > > # end of map file > END > > > > --------------------------------------------------------------------------------------- > > > I test in postgres the sentence "select * from osm_new_places where name is > not NULL order by population asc nulls first" will return many results. > Also the CONNECTION define I think is right. > > And I can not check wher the problem occured. > > Anyone give some advice and method for this? > > > > -- > Yang Li > GIS Developer > P.R.China > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120825/2d69b494/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Sat, 25 Aug 2012 09:01:45 -0300 > From: Jeff McKenna > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to check problem when load postgis > data but no right map return? > Message-ID: <5038BEA9.9010700 at gatewaygeomatics.com> > Content-Type: text/plain; charset=UTF-8 > > On 12-08-25 12:04 AM, ?? wrote: > > I use mapserver to load postgis data, but get a blank map, so I don't > > know how to check where is the problem. > > > > > Hmm. I might use the ogrinfo commandline utility to check the extents > of the data, and then use those extents in the EXTENT parameter of the > mapfile. > > ogrinfo PG:'dbname=osm host=localhost user=osm password=osm port=5432' > osm_new_places -summary > > > -jeff > > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > ------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > End of mapserver-users Digest, Vol 55, Issue 51 > *********************************************** > -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisyangli at gmail.com Sat Aug 25 22:57:52 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Sun, 26 Aug 2012 13:57:52 +0800 Subject: [mapserver-users] still have problem when add postgis layer on mapserver mapfile Message-ID: I try to load a postgis data layer on my mapfile, have problem when configure the mapfile done, then visit it using " http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map&mode=map" on the browser address. , only a blank blue image return, with no expected dot info. I can not figure out which step is have problem. Provide background info: ogrinfo for the database table: jack at jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:"host=127.0.0.1 user=osm password=osm dbname=osm port=5432" osm_new_mainroads -summary INFO: Open of `PG:host=127.0.0.1 user=osm password=osm dbname=osm port=5432' using driver `PostgreSQL' successful. Layer name: osm_new_mainroads Geometry: Line String Feature Count: 9704 Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, 4190971.740014) Layer SRS WKT: PROJCS["Popular Visualisation CRS / Mercator (deprecated)", GEOGCS["Popular Visualisation CRS", DATUM["Popular_Visualisation_Datum", SPHEROID["Popular Visualisation Sphere",6378137,0, AUTHORITY["EPSG","7059"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6055"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4055"]], UNIT["metre",1, AUTHORITY["EPSG","9001"]], PROJECTION["Mercator_1SP"], PARAMETER["central_meridian",0], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], AUTHORITY["EPSG","3785"], AXIS["X",EAST], AXIS["Y",NORTH]] FID Column = id Geometry Column = geometry osm_id: Integer (0.0) name: String (255.0) type: String (255.0) tunnel: Integer (5.0) bridge: Integer (5.0) oneway: Integer (5.0) ref: String (255.0) z_order: Integer (5.0) jack at jack-Vostro-1450:/usr/lib/cgi-bin$ -------------------------------------------------------------------------------------------- .map(uing in the link above : osg-google.map) info for configure: MAP NAME places1 STATUS ON SIZE 800 800 EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 UNITS meters IMAGECOLOR 153 179 204 WEB IMAGEPATH "/var/www/output" IMAGEURL "/output/" END LAYER STATUS DEFAULT NAME "places1" DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" TYPE POINT CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" CLASS NAME "places1_color" COLOR 255 215 0 END END END ------------------------- for a explanation , whenever set "DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785"", DATA "geometry from osm_new_mainroads", or DATA "geometry from osm_new_mainroads using unique osm_id using srid 3875 is the same , a blank image return ------------------------------------------------------- massperv version info: ./mapserv -v MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I try to experiment it in two different laptop and can not get expected result. Please those with experience help me., this problem qurrall me a lot this weeked. Thanks a lot. -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrique.renno at gmail.com Sun Aug 26 06:54:17 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sun, 26 Aug 2012 10:54:17 -0300 Subject: [mapserver-users] Fwd: No transparency for layer In-Reply-To: References: <1345945031.88072.YahooMailClassic@web122001.mail.ne1.yahoo.com> Message-ID: ---------- Forwarded message ---------- From: Henrique Renn? Date: 2012/8/26 Subject: Re: [mapserver-users] No transparency for layer To: pcreso at pcreso.com Thanks for your advice, but it didn't work because I'm loading data from a postgis geometry field and that OFFSITE option seems to be related only when loading a raster, am I wrong? 2012/8/25 Try offsite for transparancy & background colours: > > http://mapserver.org/tutorial/example1-5.html > > Brent Wood > > > --- On *Sun, 8/26/12, Henrique Renn? * wrote: > > > From: Henrique Renn? > Subject: Re: [mapserver-users] No transparency for layer > To: "Mapserver-users (mapserver-users at lists.osgeo.org)" < > mapserver-users at lists.osgeo.org> > Date: Sunday, August 26, 2012, 12:43 PM > > > By the way, it's a postgis2 database. Should I change to 1.5? > > 2012/8/25 Henrique Renn? > > > > Searching on google, I found that other people had the same problems with > points, but I have set symbol to "circle" and increased size with no > success. > > > 2012/8/25 Henrique Renn? > > > > Just had another problem. It seems that point geometry from a postgis > database are not being displayed. What could be? > > > 2012/8/25 Henrique Renn? > > > > Hello, > > I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" in > order to make white becomes transparent for layers and it's working. The > problem is that I have one layer for roads where background is white and > becomes transparent but another layer for rivers where rivers are white, so > they are not displayed. Is there a way to indicate that for the rivers' > layer I don't want transparency to be applied? Both geometries are loaded > from a postgis database which I imported from shapefiles and the shapefiles > were not made by me. The strange thing is that if I set a color for the > rivers' layer within a style then the "background" is set to that color, > but I thought the rivers would be colored. That means the geometry is set > for everything except the rivers? That's strange. > > Thanks in advance > > -- > Henrique > > > > > -- > Henrique > > > > > -- > Henrique > > > > > -- > Henrique > > > -----Inline Attachment Follows----- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Henrique -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrique.renno at gmail.com Sun Aug 26 08:32:59 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sun, 26 Aug 2012 12:32:59 -0300 Subject: [mapserver-users] No transparency for layer In-Reply-To: <1345993541.39432.YahooMailClassic@web122006.mail.ne1.yahoo.com> References: <1345993541.39432.YahooMailClassic@web122006.mail.ne1.yahoo.com> Message-ID: About the points not being displayed, I tried loading them with a mapfile reading from the shapefiles directly and it didn't work too. But I have a GIS application where after importing the shapefile I can see all the points. Maybe the TYPE option in mapfile could be another. When I load the shapefile through pgadmin it creates a geometry of point, so the geometry is defined as point. 2012/8/26 > Nope, > > I think you are right... > > I'm not able to replicate the problem, all my layers from Postgis render > fine. Points, lines & polygons (& labels). > > Do you get the same problem reading the shapefiles? I'd expect the data > source to be irrelevant, but it might be worth changing the data statement > to check. > > > Brent Wood > > > > --- On *Mon, 8/27/12, Henrique Renn? * wrote: > > > From: Henrique Renn? > Subject: Re: [mapserver-users] No transparency for layer > To: pcreso at pcreso.com > Date: Monday, August 27, 2012, 1:53 AM > > > Thanks for your advice, but it didn't work because I'm loading data from a > postgis geometry field and that OFFSITE option seems to be related only > when loading a raster, am I wrong? > > 2012/8/25 > > > Try offsite for transparancy & background colours: > > http://mapserver.org/tutorial/example1-5.html > > Brent Wood > > > --- On *Sun, 8/26/12, Henrique Renn? > >* wrote: > > > From: Henrique Renn? > > > Subject: Re: [mapserver-users] No transparency for layer > To: "Mapserver-users (mapserver-users at lists.osgeo.org)" > > > > Date: Sunday, August 26, 2012, 12:43 PM > > > By the way, it's a postgis2 database. Should I change to 1.5? > > 2012/8/25 Henrique Renn? > > > > Searching on google, I found that other people had the same problems with > points, but I have set symbol to "circle" and increased size with no > success. > > > 2012/8/25 Henrique Renn? > > > > Just had another problem. It seems that point geometry from a postgis > database are not being displayed. What could be? > > > 2012/8/25 Henrique Renn? > > > > Hello, > > I'm using a map file with "TRANSPARENT ON" and "IMAGECOLOR 255 255 255" in > order to make white becomes transparent for layers and it's working. The > problem is that I have one layer for roads where background is white and > becomes transparent but another layer for rivers where rivers are white, so > they are not displayed. Is there a way to indicate that for the rivers' > layer I don't want transparency to be applied? Both geometries are loaded > from a postgis database which I imported from shapefiles and the shapefiles > were not made by me. The strange thing is that if I set a color for the > rivers' layer within a style then the "background" is set to that color, > but I thought the rivers would be colored. That means the geometry is set > for everything except the rivers? That's strange. > > Thanks in advance > > -- > Henrique > > > > > -- > Henrique > > > > > -- > Henrique > > > > > -- > Henrique > > > -----Inline Attachment Follows----- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Henrique > > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From havard.tveite at umb.no Sun Aug 26 09:42:55 2012 From: havard.tveite at umb.no (Havard Tveite) Date: Sun, 26 Aug 2012 18:42:55 +0200 Subject: [mapserver-users] still have problem when add postgis layer on mapserver mapfile In-Reply-To: References: Message-ID: <503A520F.5040109@umb.no> In later versions of Mapserver, you seem to need to use a symbol. For example: SYMBOL NAME "circle" TYPE ellipse POINTS 1 1 END END LAYER ... CLASS NAME "places1_color" STYLE SYMBOL 'circle' COLOR 255 215 0 SIZE 1 END # style END # class END # layer I guess the documentation needs to be updated. H?vard On 08/26/2012 07:57 AM, ?? wrote: > I try to load a postgis data layer on my mapfile, have problem when > configure the mapfile done, then visit it using > "http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map&mode=map" > on the browser address. , only a blank blue image return, with no > expected dot info. > > I can not figure out which step is have problem. > > Provide background info: > > ogrinfo for the database table: > > jack at jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:"host=127.0.0.1 > user=osm password=osm dbname=osm port=5432" osm_new_mainroads -summary > INFO: Open of `PG:host=127.0.0.1 user=osm password=osm dbname=osm > port=5432' > using driver `PostgreSQL' successful. > > Layer name: osm_new_mainroads > Geometry: Line String > Feature Count: 9704 > Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, > 4190971.740014) > Layer SRS WKT: > PROJCS["Popular Visualisation CRS / Mercator (deprecated)", > GEOGCS["Popular Visualisation CRS", > DATUM["Popular_Visualisation_Datum", > SPHEROID["Popular Visualisation Sphere",6378137,0, > AUTHORITY["EPSG","7059"]], > TOWGS84[0,0,0,0,0,0,0], > AUTHORITY["EPSG","6055"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.01745329251994328, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4055"]], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > PROJECTION["Mercator_1SP"], > PARAMETER["central_meridian",0], > PARAMETER["scale_factor",1], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > AUTHORITY["EPSG","3785"], > AXIS["X",EAST], > AXIS["Y",NORTH]] > FID Column = id > Geometry Column = geometry > osm_id: Integer (0.0) > name: String (255.0) > type: String (255.0) > tunnel: Integer (5.0) > bridge: Integer (5.0) > oneway: Integer (5.0) > ref: String (255.0) > z_order: Integer (5.0) > jack at jack-Vostro-1450:/usr/lib/cgi-bin$ > > -------------------------------------------------------------------------------------------- > .map(uing in the link above : osg-google.map) info for configure: > > MAP > NAME places1 > STATUS ON > SIZE 800 800 > EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 > UNITS meters > IMAGECOLOR 153 179 204 > > > WEB > IMAGEPATH "/var/www/output" > IMAGEURL "/output/" > END > > LAYER > STATUS DEFAULT > NAME "places1" > DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" > CLASS > NAME "places1_color" > COLOR 255 215 0 > END > END > > END > > ------------------------- > for a explanation , whenever set "DATA "geometry from osm_new_mainroads > using unique osm_id using srid 3785"", > DATA "geometry from osm_new_mainroads", or > DATA "geometry from osm_new_mainroads using unique osm_id using srid 3875 > > is the same , a blank image return > ------------------------------------------------------- > massperv version info: > > ./mapserv -v > MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I try to experiment it in two different laptop and can not get expected > result. > > Please those with experience help me., this problem qurrall me a lot > this weeked. > > Thanks a lot. > > > -- > Yang Li > GIS Developer > P.R.China > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From henrique.renno at gmail.com Sun Aug 26 09:56:00 2012 From: henrique.renno at gmail.com (=?ISO-8859-1?Q?Henrique_Renn=F3?=) Date: Sun, 26 Aug 2012 13:56:00 -0300 Subject: [mapserver-users] still have problem when add postgis layer on mapserver mapfile In-Reply-To: References: Message-ID: It seems your url is set wrong as mode is given twice. You have to pass layer=layer_name 2012/8/26 ?? > I try to load a postgis data layer on my mapfile, have problem when > configure the mapfile done, then visit it using " > http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map&mode=map" > on the browser address. , only a blank blue image return, with no expected > dot info. > > I can not figure out which step is have problem. > > Provide background info: > > ogrinfo for the database table: > > jack at jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:"host=127.0.0.1 > user=osm password=osm dbname=osm port=5432" osm_new_mainroads -summary > INFO: Open of `PG:host=127.0.0.1 user=osm password=osm dbname=osm > port=5432' > using driver `PostgreSQL' successful. > > Layer name: osm_new_mainroads > Geometry: Line String > Feature Count: 9704 > Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, > 4190971.740014) > Layer SRS WKT: > PROJCS["Popular Visualisation CRS / Mercator (deprecated)", > GEOGCS["Popular Visualisation CRS", > DATUM["Popular_Visualisation_Datum", > SPHEROID["Popular Visualisation Sphere",6378137,0, > AUTHORITY["EPSG","7059"]], > TOWGS84[0,0,0,0,0,0,0], > AUTHORITY["EPSG","6055"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.01745329251994328, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4055"]], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]], > PROJECTION["Mercator_1SP"], > PARAMETER["central_meridian",0], > PARAMETER["scale_factor",1], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > AUTHORITY["EPSG","3785"], > AXIS["X",EAST], > AXIS["Y",NORTH]] > FID Column = id > Geometry Column = geometry > osm_id: Integer (0.0) > name: String (255.0) > type: String (255.0) > tunnel: Integer (5.0) > bridge: Integer (5.0) > oneway: Integer (5.0) > ref: String (255.0) > z_order: Integer (5.0) > jack at jack-Vostro-1450:/usr/lib/cgi-bin$ > > > -------------------------------------------------------------------------------------------- > .map(uing in the link above : osg-google.map) info for configure: > > MAP > NAME places1 > STATUS ON > SIZE 800 800 > EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 > UNITS meters > IMAGECOLOR 153 179 204 > > > WEB > IMAGEPATH "/var/www/output" > IMAGEURL "/output/" > END > > LAYER > STATUS DEFAULT > NAME "places1" > DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" > CLASS > NAME "places1_color" > COLOR 255 215 0 > END > END > > END > > ------------------------- > for a explanation , whenever set "DATA "geometry from osm_new_mainroads > using unique osm_id using srid 3785"", > DATA "geometry from osm_new_mainroads", or > DATA "geometry from osm_new_mainroads using unique osm_id using srid 3875 > > is the same , a blank image return > ------------------------------------------------------- > massperv version info: > > ./mapserv -v > MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I try to experiment it in two different laptop and can not get expected > result. > > Please those with experience help me., this problem qurrall me a lot this > weeked. > > Thanks a lot. > > > -- > Yang Li > GIS Developer > P.R.China > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Henrique -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Sun Aug 26 12:39:08 2012 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sun, 26 Aug 2012 12:39:08 -0700 (PDT) Subject: [mapserver-users] still have problem when add postgis layer on mapserver mapfile In-Reply-To: Message-ID: <1346009948.54405.YahooMailClassic@web122002.mail.ne1.yahoo.com> I assume the getcapabilities request is working OK? What happens when you open this in your browser: http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map?service=WMS&version=1.3.0&request=getcapabilities & what happens if you initialise the CRS in the mapfile with just the epsg code instead of the full WKT? I assume you are looking to do something like this? http://121.73.69.119/osm_nz.html Cheers, ?? Brent Wood --- On Mon, 8/27/12, Henrique Renn? wrote: From: Henrique Renn? Subject: Re: [mapserver-users] still have problem when add postgis layer on mapserver mapfile To: "??" Cc: mapserver-dev at lists.osgeo.org, mapserver-users at lists.osgeo.org Date: Monday, August 27, 2012, 4:56 AM It seems your url is set wrong as mode is given twice. You have to pass layer=layer_name 2012/8/26 ?? I try to load a postgis data layer on my mapfile, have problem when configure the mapfile done, then visit it using "http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map&mode=map" on the browser address. , only a blank blue image return, with no expected dot info. I can not figure out which step is have problem. Provide background info: ogrinfo for the database? table: jack at jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:"host=127.0.0.1 user=osm? password=osm dbname=osm port=5432" osm_new_mainroads -summary INFO: Open of `PG:host=127.0.0.1 user=osm? password=osm dbname=osm port=5432' ????? using driver `PostgreSQL' successful. Layer name: osm_new_mainroads Geometry: Line String Feature Count: 9704 Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, 4190971.740014) Layer SRS WKT: PROJCS["Popular Visualisation CRS / Mercator (deprecated)", ??? GEOGCS["Popular Visualisation CRS", ??????? DATUM["Popular_Visualisation_Datum", ??????????? SPHEROID["Popular Visualisation Sphere",6378137,0, ??????????????? AUTHORITY["EPSG","7059"]], ??????????? TOWGS84[0,0,0,0,0,0,0], ??????????? AUTHORITY["EPSG","6055"]], ??????? PRIMEM["Greenwich",0, ??????????? AUTHORITY["EPSG","8901"]], ??????? UNIT["degree",0.01745329251994328, ??????????? AUTHORITY["EPSG","9122"]], ??????? AUTHORITY["EPSG","4055"]], ??? UNIT["metre",1, ??????? AUTHORITY["EPSG","9001"]], ??? PROJECTION["Mercator_1SP"], ??? PARAMETER["central_meridian",0], ??? PARAMETER["scale_factor",1], ??? PARAMETER["false_easting",0], ??? PARAMETER["false_northing",0], ??? AUTHORITY["EPSG","3785"], ??? AXIS["X",EAST], ??? AXIS["Y",NORTH]] FID Column = id Geometry Column = geometry osm_id: Integer (0.0) name: String (255.0) type: String (255.0) tunnel: Integer (5.0) bridge: Integer (5.0) oneway: Integer (5.0) ref: String (255.0) z_order: Integer (5.0) jack at jack-Vostro-1450:/usr/lib/cgi-bin$ -------------------------------------------------------------------------------------------- .map(uing in the link above : osg-google.map) info for configure: MAP NAME places1 STATUS ON SIZE 800 800 EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 UNITS meters IMAGECOLOR 153 179 204 WEB ??? IMAGEPATH "/var/www/output" ??? IMAGEURL "/output/" END LAYER ?STATUS DEFAULT ?NAME "places1" ?DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" ?TYPE POINT ?CONNECTIONTYPE postgis ?CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" ?CLASS NAME "places1_color" COLOR 255 215 0 ? END END END ------------------------- for a explanation , whenever set? "DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785"", DATA "geometry from osm_new_mainroads", or DATA "geometry from osm_new_mainroads using unique osm_id using srid 3875 is the same , a blank image return ------------------------------------------------------- massperv version info: ./mapserv -v MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I try to experiment it in two different laptop and can not get expected result. Please those with experience help me., this problem qurrall? me a lot this weeked. Thanks a lot. -- Yang LiGIS DeveloperP.R.China _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Henrique -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sun Aug 26 14:22:49 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 26 Aug 2012 21:22:49 +0000 Subject: [mapserver-users] still have problem when add postgis layer on mapserver mapfile In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63467CC9@suutari.haapa.mmm.fi> Hi, - This may be a typo: NAME "places1" DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" TYPE POINT Or do you really have your places are in osm_new_mainroads table. - Then it is a good habit to have PROJECTION block in both the MAP block and for each LAYER. - It is also a good habit to use DEBUG 5 and see what you get into the block - shp2img is better for testing than a browser but mode=map is OK too. Remember to set layers to default (as you had) or give layer names with &layers= parameter - Finally, I think it would be good to add STYLE into your layer, inside CLASS. See the "Very basic WMS Server mapfile" example at the bottom of page http://mapserver.org/ogc/wms_server.html It should be OK. Perhaps it could be even a bit more simple because now it has a reference to a symbolset file. A very, very basic mapfile should be made to work without external symbols. -Jukka Rahkonen- ________________________________ ?? [gisyangli] wrote: > I try to load a postgis data layer on my mapfile, have problem when configure the mapfile done, then visit it using "http://127.0.0.1/cgi-bin/mapserv?&map=/var/www/osm-google.map&mode=map&mode=map" on the browser address. , only a blank blue image return, with no expected dot info. > I can not figure out which step is have problem. > Provide background info: ogrinfo for the database table: jack at jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:"host=127.0.0.1 user=osm password=osm dbname=osm port=5432" osm_new_mainroads -summary INFO: Open of `PG:host=127.0.0.1 user=osm password=osm dbname=osm port=5432' using driver `PostgreSQL' successful. Layer name: osm_new_mainroads Geometry: Line String Feature Count: 9704 Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, 4190971.740014) Layer SRS WKT: PROJCS["Popular Visualisation CRS / Mercator (deprecated)", GEOGCS["Popular Visualisation CRS", DATUM["Popular_Visualisation_Datum", SPHEROID["Popular Visualisation Sphere",6378137,0, AUTHORITY["EPSG","7059"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6055"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4055"]], UNIT["metre",1, AUTHORITY["EPSG","9001"]], PROJECTION["Mercator_1SP"], PARAMETER["central_meridian",0], PARAMETER["scale_factor",1], PARAMETER["false_easting",0], PARAMETER["false_northing",0], AUTHORITY["EPSG","3785"], AXIS["X",EAST], AXIS["Y",NORTH]] FID Column = id Geometry Column = geometry osm_id: Integer (0.0) name: String (255.0) type: String (255.0) tunnel: Integer (5.0) bridge: Integer (5.0) oneway: Integer (5.0) ref: String (255.0) z_order: Integer (5.0) jack at jack-Vostro-1450:/usr/lib/cgi-bin$ -------------------------------------------------------------------------------------------- .map(uing in the link above : osg-google.map) info for configure: MAP NAME places1 STATUS ON SIZE 800 800 EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014 UNITS meters IMAGECOLOR 153 179 204 WEB IMAGEPATH "/var/www/output" IMAGEURL "/output/" END LAYER STATUS DEFAULT NAME "places1" DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785" TYPE POINT CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" CLASS NAME "places1_color" COLOR 255 215 0 END END END ------------------------- for a explanation , whenever set "DATA "geometry from osm_new_mainroads using unique osm_id using srid 3785"", DATA "geometry from osm_new_mainroads", or DATA "geometry from osm_new_mainroads using unique osm_id using srid 3875 is the same , a blank image return ------------------------------------------------------- massperv version info: ./mapserv -v MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I try to experiment it in two different laptop and can not get expected result. Please those with experience help me., this problem qurrall me a lot this weeked. Thanks a lot. -- Yang Li GIS Developer P.R.China From andde78 at hotmail.com Mon Aug 27 00:05:37 2012 From: andde78 at hotmail.com (Anders Sutinen) Date: Mon, 27 Aug 2012 10:05:37 +0300 Subject: [mapserver-users] About arc-element Message-ID: Arc-element existed in old mapserver -version (4.x something). It was removed from newer releases. My company needs that element badly, would you have any information if it is going to be brought back? And why was it removed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.a.de.sousa at gmail.com Mon Aug 27 00:25:47 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon, 27 Aug 2012 00:25:47 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 Message-ID: <1346052347702-4998005.post@n6.nabble.com> Dear all, I'm trying to compile Mapserver 6.0.3 on Ubuntu Server 10.10 LTS, but I'm getting a compile error on maplexer.l. I reproduce below the outputs of configure and make; any insight on the issue is very welcome. Thank you, Lu?s $ ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/ --with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/ --with-threads --with-wcs --with-libiconv=/usr --with-geos=/usr/local/bin/geos-config --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-postgis=/usr/lib/postgresql/9.1/bin/pg_config checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... byacc checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for strlcpy... no checking for vsnprintf... yes MapServer Version from mapserver.h: '6.0.3' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType in -lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using libpng from system libs. checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... yes checking gif_lib.h usability... yes checking gif_lib.h presence... yes checking for gif_lib.h... yes using libgif from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from -L/usr/lib -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg -lpng -lz -lXpm -lX11 checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from /usr/lib/. checking if FTGL support requested... no checking if OGL support requested... no configure: checking where EXPAT is installed... checking for XML_ParserCreate in -lexpat... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes using libexpat from system libs. checking for AGG support... yes checking if SVG Symbol support requested... enabled configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/lib/. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 3.0.0... yes. Found version 3.3.4 configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) checking if PostGIS support requested... yes, user supplied pg_config (/usr/lib/postgresql/9.1/bin/pg_config) checking for PQconnectdb in -lpq... yes checking for PQserverVersion in -lpq... yes checking if Mysql support requested... no checking if OracleSpatial support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support requested. checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.19.7 checking for CURLOPT_PROXYAUTH support... yes. OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking if KML output is requested... no checking for libxml2... yes, user supplied xml2-config (/usr/bin/xml2-config) found libxml2 version 2.7.6 checking if xml-mapfile is requested... no checking if xslt is requested... no checking if exslt is requested... no checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... no 'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no $ sudo make ---------------------------------------------------------------- -- Please run "make lexer" if you have altered maplexer.l - ---------------------------------------------------------------- gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/ -I/usr/include//freetype2 -I/usr/lib/ -Irenderers/agg/include -I/usr/lib/ -I/usr/local/include -I/usr/include/postgresql -I/usr/local/include -I/usr/include -I/usr/include/libxml2 maplexer.c -o maplexer.o maplexer.l: In function ?msyylex?: maplexer.l:178: error: ?IN? undeclared (first use in this function) maplexer.l:178: error: (Each undeclared identifier is reported only once maplexer.l:178: error: for each function it appears in.) make: *** [maplexer.o] Error 1 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon Aug 27 00:46:44 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 27 Aug 2012 09:46:44 +0200 Subject: [mapserver-users] About arc-element In-Reply-To: References: Message-ID: what do you mean by "arc-element" ? searching the net and the source code gives nothing ... On Mon, Aug 27, 2012 at 9:05 AM, Anders Sutinen wrote: > Arc-element existed in old mapserver -version (4.x something). > It was removed from newer releases. My company needs that element badly, > would you have any information if it is going to be brought back? > And why was it removed? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From andde78 at hotmail.com Mon Aug 27 01:14:16 2012 From: andde78 at hotmail.com (Anders Sutinen) Date: Mon, 27 Aug 2012 11:14:16 +0300 Subject: [mapserver-users] About arc-element In-Reply-To: References: , Message-ID: It is related to this ticket, http://trac.osgeo.org/mapserver/ticket/4096 > Date: Mon, 27 Aug 2012 09:46:44 +0200 > Subject: Re: [mapserver-users] About arc-element > From: thomas.bonfort at gmail.com > To: andde78 at hotmail.com > CC: mapserver-users at lists.osgeo.org > > what do you mean by "arc-element" ? searching the net and the source > code gives nothing ... > > On Mon, Aug 27, 2012 at 9:05 AM, Anders Sutinen wrote: > > Arc-element existed in old mapserver -version (4.x something). > > It was removed from newer releases. My company needs that element badly, > > would you have any information if it is going to be brought back? > > And why was it removed? > > > > > > _______________________________________________ > > 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 inspdr00 at gmail.com Mon Aug 27 01:22:55 2012 From: inspdr00 at gmail.com (Pablo Diaz) Date: Mon, 27 Aug 2012 10:22:55 +0200 Subject: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy). Message-ID: Hi, I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver version -> 6.0.1-3.1). When I try to connect with a external layer as WMS layer I always have same response: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. My mapserver call is this: http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.map&SRS=EPSG%3A23029&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&VISIBLE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042&WIDTH=1384&HEIGHT=864 And my layer definition in mapfile is this: LAYER NAME 'pnoa' TYPE RASTER STATUS OFF #GROUP "Fondo" CONNECTION "http://www.idee.es/wms/PNOA/PNOA?" CONNECTIONTYPE WMS METADATA "wms_name" "pnoa" "wms_srs" "EPSG:23029" "wms_format" "image/png" "wms_title" "PNOA" "wms_server_version" "1.3.0" "wms_exceptions_format" "application/vnd.ogc.se_xml" LEGEND_META_LAYER "CHECKBOX" BASE_LAYER '0' LEGEND_ORDER "99" QUERYABLE "0" END PROJECTION "init=epsg:23029" END END Any idea? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Aug 27 02:11:21 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 27 Aug 2012 09:11:21 +0000 Subject: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy). Message-ID: <84446DEF76453C439E9E97E438E13A63467E8C@suutari.haapa.mmm.fi> Hi, Works for me with MS4W and Mapserver 6.2 beta2 after changing "wms_server_version" "1.3.0" into "wms_server_version" "1.1.1" I could not manage to get the invalid layers error and the too high version error was on plain understandable text. It would be easier to read the logs and responses if some part of "PNOA" and "pnoa" words were changed to something else where they can be changed. -Jukka Rahkonen- Pablo Diaz wrote: Hi, I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver version -> 6.0.1-3.1). When I try to connect with a external layer as WMS layer I always have same response: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. My mapserver call is this: http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.map&SRS=EPSG%3A23029&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&VISIBLE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042&WIDTH=1384&HEIGHT=864 And my layer definition in mapfile is this: LAYER NAME 'pnoa' TYPE RASTER STATUS OFF #GROUP "Fondo" CONNECTION "http://www.idee.es/wms/PNOA/PNOA?" CONNECTIONTYPE WMS METADATA "wms_name" "pnoa" "wms_srs" "EPSG:23029" "wms_format" "image/png" "wms_title" "PNOA" "wms_server_version" "1.3.0" "wms_exceptions_format" "application/vnd.ogc.se_xml" LEGEND_META_LAYER "CHECKBOX" BASE_LAYER '0' LEGEND_ORDER "99" QUERYABLE "0" END PROJECTION "init=epsg:23029" END END Any idea? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Aug 27 02:14:19 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 27 Aug 2012 11:14:19 +0200 Subject: [mapserver-users] About arc-element In-Reply-To: References: Message-ID: sorry, not equipped to test oracle backends. You might want to provide more info and a test-case to reproduce the issue in https://github.com/mapserver/mapserver/issues/4096 and/or contract one of the mapserver oracle maintainers if you need a fix rapidly (namely Alan or maybe Umberto). -- thomas On Mon, Aug 27, 2012 at 10:14 AM, Anders Sutinen wrote: > It is related to this ticket, > http://trac.osgeo.org/mapserver/ticket/4096 > > > >> Date: Mon, 27 Aug 2012 09:46:44 +0200 >> Subject: Re: [mapserver-users] About arc-element >> From: thomas.bonfort at gmail.com >> To: andde78 at hotmail.com >> CC: mapserver-users at lists.osgeo.org > >> >> what do you mean by "arc-element" ? searching the net and the source >> code gives nothing ... >> >> On Mon, Aug 27, 2012 at 9:05 AM, Anders Sutinen >> wrote: >> > Arc-element existed in old mapserver -version (4.x something). >> > It was removed from newer releases. My company needs that element badly, >> > would you have any information if it is going to be brought back? >> > And why was it removed? >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Mon Aug 27 02:51:18 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 27 Aug 2012 11:51:18 +0200 Subject: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy). In-Reply-To: References: Message-ID: does this also happen for other layer types (e.g. point, polygon, etc...)? have you correctly set the ows_enable_request metadata entries ? -- thomas On Mon, Aug 27, 2012 at 10:22 AM, Pablo Diaz wrote: > Hi, > > I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver > version -> 6.0.1-3.1). When I try to connect with a external layer as WMS > layer I always have same response: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd"> > > msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the > LAYERS parameter. > > > > My mapserver call is this: > > http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.map&SRS=EPSG%3A23029&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&VISIBLE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042&WIDTH=1384&HEIGHT=864 > > And my layer definition in mapfile is this: > > LAYER > NAME 'pnoa' > TYPE RASTER > STATUS OFF > #GROUP "Fondo" > CONNECTION "http://www.idee.es/wms/PNOA/PNOA?" > CONNECTIONTYPE WMS > METADATA > "wms_name" "pnoa" > "wms_srs" "EPSG:23029" > "wms_format" "image/png" > "wms_title" "PNOA" > "wms_server_version" "1.3.0" > "wms_exceptions_format" "application/vnd.ogc.se_xml" > LEGEND_META_LAYER "CHECKBOX" > BASE_LAYER '0' > LEGEND_ORDER "99" > QUERYABLE "0" > END > PROJECTION > "init=epsg:23029" > END > END > > Any idea? > > Thanks in advance. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Mon Aug 27 03:09:14 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 27 Aug 2012 10:09:14 +0000 Subject: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy). Message-ID: <84446DEF76453C439E9E97E438E13A63467EEE@suutari.haapa.mmm.fi> Hi, My Mapserver 6.2 says it does not support cascading with WMS version 1.3.0 so I suggest you to use WMS 1.1.1 for cascading with version 6.0.1. And if you send GetMaps for your local Mapserver as WMS 1.3.0 use CRS instead of SRS. This request works for me with your LAYER settings with only changing "wms_server_version" "1.1.1" http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/maps/test.map&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&WIDTH=1384&HEIGHT=864&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&BBOX=514838.4373841815,3957896.5993290497,1063927.4217873805,4377788.175637378&CRS=EPSG%3A23029&STYLES= Anyway because you did not get an error about using SRS with WMS 1.3.0 I somehow feel that there is really an error in finding your layer "pnoa" from the mapfile. If I use both wrong layer name and SRS the wrong layer error is caught first and I get is the same as you: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. Check carefully that you are using the same mapfile that you are editing and that you have saved it. Add also DEGUG 5 for the layer and read the logs. I checked that cascading that remote WMS works for me also with Mapserver 6.0.0 on Windows with WMS 1.1.1. -Jukka Rahkonen- Pablo Diaz wrote: Thank you Rahkonen, but I tryed two options and It doesn't run well. The "pnoa" server runs well, because I checked it with desktop gis. Thanks. 2012/8/27 Rahkonen Jukka > Hi, Works for me with MS4W and Mapserver 6.2 beta2 after changing "wms_server_version" "1.3.0" into "wms_server_version" "1.1.1" I could not manage to get the invalid layers error and the too high version error was on plain understandable text. It would be easier to read the logs and responses if some part of "PNOA" and "pnoa" words were changed to something else where they can be changed. -Jukka Rahkonen- Pablo Diaz wrote: Hi, I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver version -> 6.0.1-3.1). When I try to connect with a external layer as WMS layer I always have same response: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. My mapserver call is this: http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.map&SRS=EPSG%3A23029&LAYERS=pnoa&TRANSPARENT=TRUE&FORMAT=image%2Fpng&VISIBLE=false&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042&WIDTH=1384&HEIGHT=864 And my layer definition in mapfile is this: LAYER NAME 'pnoa' TYPE RASTER STATUS OFF #GROUP "Fondo" CONNECTION "http://www.idee.es/wms/PNOA/PNOA?" CONNECTIONTYPE WMS METADATA "wms_name" "pnoa" "wms_srs" "EPSG:23029" "wms_format" "image/png" "wms_title" "PNOA" "wms_server_version" "1.3.0" "wms_exceptions_format" "application/vnd.ogc.se_xml" LEGEND_META_LAYER "CHECKBOX" BASE_LAYER '0' LEGEND_ORDER "99" QUERYABLE "0" END PROJECTION "init=epsg:23029" END END Any idea? Thanks in advance. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Aug 27 11:15:16 2012 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 27 Aug 2012 18:15:16 +0000 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <1346052347702-4998005.post@n6.nabble.com> References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: What version of flex do you have installed? --Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lu?s de Sousa Sent: Monday, August 27, 2012 2:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Error compiling Mapserver 6.0.3 Dear all, I'm trying to compile Mapserver 6.0.3 on Ubuntu Server 10.10 LTS, but I'm getting a compile error on maplexer.l. I reproduce below the outputs of configure and make; any insight on the issue is very welcome. Thank you, Lu?s $ ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/ --with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/ --with-threads --with-wcs --with-libiconv=/usr --with-geos=/usr/local/bin/geos-config --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-postgis=/usr/lib/postgresql/9.1/bin/pg_config checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... byacc checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for strlcpy... no checking for vsnprintf... yes MapServer Version from mapserver.h: '6.0.3' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType in -lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using libpng from system libs. checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... yes checking gif_lib.h usability... yes checking gif_lib.h presence... yes checking for gif_lib.h... yes using libgif from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from -L/usr/lib -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg -lpng -lz -lXpm -lX11 checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from /usr/lib/. checking if FTGL support requested... no checking if OGL support requested... no configure: checking where EXPAT is installed... checking for XML_ParserCreate in -lexpat... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes using libexpat from system libs. checking for AGG support... yes checking if SVG Symbol support requested... enabled configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/lib/. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 3.0.0... yes. Found version 3.3.4 configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) checking if PostGIS support requested... yes, user supplied pg_config (/usr/lib/postgresql/9.1/bin/pg_config) checking for PQconnectdb in -lpq... yes checking for PQserverVersion in -lpq... yes checking if Mysql support requested... no checking if OracleSpatial support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support requested. checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.19.7 checking for CURLOPT_PROXYAUTH support... yes. OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking if KML output is requested... no checking for libxml2... yes, user supplied xml2-config (/usr/bin/xml2-config) found libxml2 version 2.7.6 checking if xml-mapfile is requested... no checking if xslt is requested... no checking if exslt is requested... no checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... no 'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no $ sudo make ---------------------------------------------------------------- -- Please run "make lexer" if you have altered maplexer.l - ---------------------------------------------------------------- gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/ -I/usr/include//freetype2 -I/usr/lib/ -Irenderers/agg/include -I/usr/lib/ -I/usr/local/include -I/usr/include/postgresql -I/usr/local/include -I/usr/include -I/usr/include/libxml2 maplexer.c -o maplexer.o maplexer.l: In function ?msyylex?: maplexer.l:178: error: ?IN? undeclared (first use in this function) maplexer.l:178: error: (Each undeclared identifier is reported only once maplexer.l:178: error: for each function it appears in.) make: *** [maplexer.o] Error 1 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005.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 woodbri at swoodbridge.com Mon Aug 27 15:27:24 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 27 Aug 2012 18:27:24 -0400 Subject: [mapserver-users] [TinyOWS] Need an example of how to edit Attributes Message-ID: <503BF44C.7080708@swoodbridge.com> Hi, I got the TinyOWS examples working with OpenLayers and can add/edit/delete features, but I need to also be able to edit add/edit feature attributes. Is the a good working example of this somewhere? Thanks, -Steve From luis.a.de.sousa at gmail.com Mon Aug 27 23:58:15 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Mon, 27 Aug 2012 23:58:15 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: <1346137095796-4998228.post@n6.nabble.com> Hi Steve, here's the flex version: $ flex -V flex 2.5.35 This is the version I got from the repos. Thanks for helping, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998228.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Tue Aug 28 00:05:51 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Aug 2012 09:05:51 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: Hi Cristiano, after removing byacc I get this in the configuration: checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... no checking for byacc... no Then running make I get the exact same error as before. Thank you, Lu?s On 27 August 2012 19:01, Cristiano Sumariva wrote: > Your configure reports a byacc. Try remove it and run again. > checking for byacc... byacc > > This is an output for 5.6.7 mapserver that compiled on my older Ubuntu > system. > > checking for flex... no > checking for lex... no > checking for yywrap in -lfl... no > checking for yywrap in -ll... no > checking for bison... no > checking for byacc... no > > Hope it helps some. > > From thomas.bonfort at gmail.com Tue Aug 28 00:36:35 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 28 Aug 2012 09:36:35 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: Luis, Our repo contains a generated version of maplexer.c that should not need to be re-generated by end users. You should be able to either uninstall flex and/or copy back the original version of maplexer.c to get going. -- thomas On Tue, Aug 28, 2012 at 9:05 AM, Lu?s de Sousa wrote: > Hi Cristiano, after removing byacc I get this in the configuration: > > checking for flex... flex > checking for yywrap in -lfl... yes > checking lex output file root... lex.yy > checking whether yytext is a pointer... yes > checking for bison... no > checking for byacc... no > > Then running make I get the exact same error as before. Thank you, > > Lu?s > > On 27 August 2012 19:01, Cristiano Sumariva wrote: >> Your configure reports a byacc. Try remove it and run again. >> checking for byacc... byacc >> >> This is an output for 5.6.7 mapserver that compiled on my older Ubuntu >> system. >> >> checking for flex... no >> checking for lex... no >> checking for yywrap in -lfl... no >> checking for yywrap in -ll... no >> checking for bison... no >> checking for byacc... no >> >> Hope it helps some. >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From luis.a.de.sousa at gmail.com Tue Aug 28 02:03:42 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Aug 2012 11:03:42 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: Hi Thomas, I tried to uninstall flex but I get the same error. Where can I get maplexer.c and where should I copy it too? Thank you for the help, Lu?s On 28 August 2012 09:36, thomas bonfort wrote: > Luis, > Our repo contains a generated version of maplexer.c that should not > need to be re-generated by end users. You should be able to either > uninstall flex and/or copy back the original version of maplexer.c to > get going. > > -- > thomas > From thomas.bonfort at gmail.com Tue Aug 28 02:06:47 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 28 Aug 2012 11:06:47 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: >From the original tarball On Tue, Aug 28, 2012 at 11:03 AM, Lu?s de Sousa wrote: > Hi Thomas, > > I tried to uninstall flex but I get the same error. Where can I get > maplexer.c and where should I copy it too? > > Thank you for the help, > > Lu?s > > On 28 August 2012 09:36, thomas bonfort wrote: >> Luis, >> Our repo contains a generated version of maplexer.c that should not >> need to be re-generated by end users. You should be able to either >> uninstall flex and/or copy back the original version of maplexer.c to >> get going. >> >> -- >> thomas >> From luis.a.de.sousa at gmail.com Tue Aug 28 02:28:09 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Aug 2012 11:28:09 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: Hi again Thomas, Indeed the file is there. So now 2 questions: a) where do have to copy it to? b) how do I run make so that it doesn't fire flex? Thank you, Lu?s On 28 August 2012 11:06, thomas bonfort wrote: > From the original tarball > From ozgurarslan81 at hotmail.com Tue Aug 28 02:48:55 2012 From: ozgurarslan81 at hotmail.com (=?iso-8859-1?B?1npn/HIgQXJzbGFu?=) Date: Tue, 28 Aug 2012 09:48:55 +0000 Subject: [mapserver-users] Tamplate Message-ID: HI EVERYONE, I have a map file named Practice2.map and my question is can I use this map file as a template like Practice2.html ? Like web TEMPLATE Practice2.html . . . END Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Aug 28 02:56:24 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 28 Aug 2012 11:56:24 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: On Tue, Aug 28, 2012 at 11:28 AM, Lu?s de Sousa wrote: > Hi again Thomas, > > Indeed the file is there. So now 2 questions: > a) where do have to copy it to? to where you're compiling... > b) how do I run make so that it doesn't fire flex? `touch` it so it is more recent than maplexer.l > > Thank you, > > Lu?s > > On 28 August 2012 11:06, thomas bonfort wrote: >> From the original tarball >> From luis.a.de.sousa at gmail.com Tue Aug 28 03:11:51 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Tue, 28 Aug 2012 12:11:51 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: Hi again, I'm still getting the same error, please see below. Thank you, Lu?s $ touch maplexer.c $ sudo make gcc -c -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH -DUSE_WCS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG -DUSE_ZLIB -DUSE_FREETYPE -DDISABLE_CVSID -I/usr/include/ -I/usr/include//freetype2 -I/usr/lib/ -Irenderers/agg/include -I/usr/lib/ -I/usr/local/include -I/usr/include/postgresql -I/usr/local/include -I/usr/include -I/usr/include/libxml2 maplexer.c -o maplexer.o maplexer.l: In function ?msyylex?: maplexer.l:178: error: ?IN? undeclared (first use in this function) maplexer.l:178: error: (Each undeclared identifier is reported only once maplexer.l:178: error: for each function it appears in.) make: *** [maplexer.o] Error 1 On 28 August 2012 11:56, thomas bonfort wrote: > On Tue, Aug 28, 2012 at 11:28 AM, Lu?s de Sousa > wrote: >> Hi again Thomas, >> >> Indeed the file is there. So now 2 questions: >> a) where do have to copy it to? > to where you're compiling... >> b) how do I run make so that it doesn't fire flex? > `touch` it so it is more recent than maplexer.l >> From jorgelopez.physics at gmail.com Tue Aug 28 03:47:48 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Tue, 28 Aug 2012 03:47:48 -0700 (PDT) Subject: [mapserver-users] colorbar GetLegendGraphic Message-ID: <1346150868032-4998278.post@n6.nabble.com> Hello mapserver users: I have a very simple question regarding to the gradient-color legend for a raster file. I wish a map with a colorbar between two min/max colours (black/white). I manage to render a raster properly but gradient legend is not sketched. It appears only a white square and nothing about colorbar. Question: is it possible mapserver to render a legend like appeared in attached png (after.png) in http://trac.osgeo.org/mapserver/attachment/ticket/1305 ticket ?? Thanks in advance Jorge -- View this message in context: http://osgeo-org.1560.n6.nabble.com/colorbar-GetLegendGraphic-tp4998278.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jorgelopez.physics at gmail.com Tue Aug 28 06:56:20 2012 From: jorgelopez.physics at gmail.com (jorgelopez) Date: Tue, 28 Aug 2012 06:56:20 -0700 (PDT) Subject: [mapserver-users] modify legend size at layer level Message-ID: <1346162180514-4998327.post@n6.nabble.com> Hello everyone: I am struggling with this but I found no way to continue. I have stablished predefined size of legend image at MAP level in the mapfile like this: LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 #tamanyo (pixels) OUTLINECOLOR 0 0 0 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END #end label TRANSPARENT ON END #end legend and it display square boxes accordingly to specified sizes. I have not found any way to generate an gradient colorbar for a raster file, so I decided to attach a previosult-generated legend image. But legend images fit to map-level sizes resulting too small and I would like to make this image bigger. I made some probe by modifying # TO CONSTRUCT THE LEGEND DIRECTLY BY APPENDING AN IMAGE DISPLAYING IT CLASS NAME 'COLOUR_RAMP_1' STYLE WIDTH 30 # OUTLINECOLOR 255 0 0 SIZE 30 END # end of style object KEYIMAGE 'gtopo30legend/gtopo30_legend.png' # KEYSIZE 90 90 END but no succeed at all. It mantains the same size (18x12). Could someone tell me how to overwrite this size at layer-level ?? I try to take the generated getLegendGraphic URL by MapServer to see how legend is sketched. Neither HEIGHT, WIDTH nor RULE are appended, so my image results in smaller again. generated: "http://servername/ogc/wmstest?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=USGS_RASTER_UNIFIED&format=image/png&STYLE=default desired: "http://servername/ogc/wmstest?version=1.1.1&service=WMS&request=GetLegendGraphic&layer=USGS_RASTER_UNIFIED&format=image/png&STYLE=default&rule=COLOUR_RAMP_1&WIDTH=30&HEIGHT=30 Does anybody know which params are to be defined in the mapfile to generate the DESIRED URL. Thank you in advance JORGE -- View this message in context: http://osgeo-org.1560.n6.nabble.com/modify-legend-size-at-layer-level-tp4998327.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stiramdasu at qcoherent.com Tue Aug 28 07:15:37 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Tue, 28 Aug 2012 09:15:37 -0500 Subject: [mapserver-users] Mapserver compiling on windows error Message-ID: <01cf01cd8527$993357b0$cb9a0710$@com> Hi, I am trying to compile the sources on Windows 7 machine. I am getting the following error. c:\projects\mapserver-6.0.3\renderers/agg/include/agg_font_freetype.h(23) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\cl.EXE"' : return code '0x2' Stop. Can anyone please guide me. Any help is greatly appreciated. Thanks, Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.a.de.sousa at gmail.com Tue Aug 28 06:28:14 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue, 28 Aug 2012 06:28:14 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <1346159176642-4998318.post@n6.nabble.com> References: <1346052347702-4998005.post@n6.nabble.com> <1346159176642-4998318.post@n6.nabble.com> Message-ID: <1346160494577-4998321.post@n6.nabble.com> My apologies for clouting the list with messages, but there's another thing I noted going through the configure output: configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. Although I'm including the --with-wfsclient argument. Is there something else missing? Thank you, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998321.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Tue Aug 28 07:26:09 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 28 Aug 2012 11:26:09 -0300 Subject: [mapserver-users] Mapserver compiling on windows error In-Reply-To: <01cf01cd8527$993357b0$cb9a0710$@com> References: <01cf01cd8527$993357b0$cb9a0710$@com> Message-ID: <503CD501.1000508@gatewaygeomatics.com> Hello, That file is part of Freetype (MS4W is compiled with Freetype version 2.4.9 I believe); you will have to compile Freetype and then edit your nmake.opt file to point to that. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-08-28 11:15 AM, Sowmya Tiramdasu wrote: > Hi, > > > > I am trying to compile the sources on Windows 7 machine. I am getting > the following error. > > > > c:\projects\mapserver-6.0.3\renderers/agg/include/agg_font_freetype.h(23) : > fatal error C1083: Cannot open include file: 'ft2build.h': No such file > or directory > > > > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual > Studio 10.0 > > \VC\BIN\cl.EXE"' : return code '0x2' > > Stop. > > > > Can anyone please guide me. Any help is greatly appreciated. > > > > Thanks, > > Sowmya. > > *_______________________________* > > Sowmya Tiramdasu > > *QCoherent Software* > > 9668 Madison Blvd., Suite 202 > > Madison, AL 35758 > > (256) 461-8289 Telephone > > (256) 461-8249 Fax > > www.geocue.com > > From gisyangli at gmail.com Tue Aug 28 10:14:22 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Wed, 29 Aug 2012 01:14:22 +0800 Subject: [mapserver-users] Image disappear when click openlayers enlarge & deposit my locally access to Internet? Message-ID: I am a beginner , have make some progress, realize the osm importing, mapfile auto generated, and mapserv rending, when I use the link below: http://127.0.0.1/cgi-bin/mserv?&map=/home/jack/osm-demo/basemaps/osm-google.map&layer=default&layer=landuse4&template=openlayers which can do locally access to my postgis data in mybrowser. for example , one can use the IP http://222.129.50.178/cgi-bin/mapserv?..... where 222.129.50.178 is my IP. succeesfully show a map with many layer. *My question is * But if I want to sombody else on internet to visit it. also , when use the link above. I use the openlayer enlarge it, and the image will *disappear*. Also with the mouse wheel enlarger, image also disappear. mymapfile is here: https://gist.github.com/3500840 now my netwwork is strange, and I can not get the IRC, so I ask here. -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Aug 28 10:46:34 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 28 Aug 2012 17:46:34 +0000 Subject: [mapserver-users] [TinyOWS] OtherSRS configuration element missing Message-ID: <84446DEF76453C439E9E97E438E13A63468531@suutari.haapa.mmm.fi> Hi, TinyOWS supports using all the same projection codes than PostGIS as srsName parameter in GetFeature requests. However, it is advertising only the DefaultSRS in the GetCapabilities and I cannot find a configuration element for adding extra projections in a standard WFS 1.1.0 way as "OtherSRS" elements. There are clients like gvSIG which are parsing the OtherSRS list and build a dropdown menu for selecting one of the supported projections. Now OtherSRS list does not exist ever and gvSIG users can't select anything else that the DefaultSRS. I suggest adding an OtherSRS element into the configuration file which would have an effect on WFS 1.1.0 GetCapabilities document. -Jukka Rahkonen- From woodbri at swoodbridge.com Tue Aug 28 10:58:58 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 28 Aug 2012 13:58:58 -0400 Subject: [mapserver-users] Arabic Labeling in Mapserver In-Reply-To: <26416350.8941.1346065294049.JavaMail.nabble@alf.nabble.com> References: <26416350.8941.1346065294049.JavaMail.nabble@alf.nabble.com> Message-ID: <503D06E2.6090006@swoodbridge.com> On 8/27/2012 7:01 AM, sumyjose1983 at gmail.com wrote: > Hi, > > We are using map server to show our country map both in Arabic and > English. But for Arabic map the label is joining improperly.The map > layer is using .DAT file for displaying labels.When we are > retrieving data from map layer to any asp.net control it is getting > properly. Please check it > https://www.welcometooman.com/ar-jo/traveltools/distancefinder.aspx > > I am new to map server mapinfo, please help me. > First please keep general inquiries on the lists so others can learn from responses and so other experts can help advise you. As many of us can not read Arabic, but are able to configure mapserver successfully to render Arabic it would probably be more helpful to provide additional information like: * Linux or Windows? Are you using MS4W? Which MS4W version? Which mapserver version? * what does your LABEL block look like? * Is this a prebuilt executable? or did you build it? * what version of fribidi was it built with? * What Arabic font are you using? So in general, since you have the basics working and are getting Arabic characters, it seems most things are OK. * Is the Arabic getting rendered right to left? * Is the only problem you have the some of the joining glyphs are missing? If this is the case then you need to get a better font or you might not be using fribidi-0.19.x. fribidi-0.19.4 just got released yesterday, but I have not tried to build and test with that yet, but you should probably be sure you are using fribidi-0.19.2 at least. Anyway, a little information would help. -Steve From luis.a.de.sousa at gmail.com Tue Aug 28 06:06:16 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Tue, 28 Aug 2012 06:06:16 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346052347702-4998005.post@n6.nabble.com> Message-ID: <1346159176642-4998318.post@n6.nabble.com> Dear all, Following Cristiano's suggestion I downloaded the 6.0.1 tar, a version that I'm sure works properly. The log goes below. Basically, on a first compile make complains of not having yacc installed. After installing byacc there's a parse error on mapparser.y. What intrigues me is that neither yacc nor lex are referenced in the install instructions. On other occasions I had to compile Mapserver I don't remember installing these packages either. Any further insight is welcome. Thanks for helping, Lu?s $ cd mapserver-6.0.1 $ ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bincurl-config --with-proj=/usr/lib/ --with-tiff --with-gd=/usr/lib/ --with-jpeg --with-freetype=/usr/include/ --with-threads --with-wcs --with-libiconv=/usr --with-geos=/usr/local/bin/geos-config --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-postgis=/usr/lib/postgresql/9.1/bin/pg_config checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for strlcpy... no checking for vsnprintf... yes MapServer Version from mapserver.h: '6.0.1' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config checking for Freetype2.x in /usr/include/... checking for FT_Init_FreeType in -lfreetype... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking ft2build.h usability... yes checking ft2build.h presence... yes checking for ft2build.h... yes configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes using libpng from system libs. checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... yes checking gif_lib.h usability... yes checking gif_lib.h presence... yes checking for gif_lib.h... yes using libgif from system libs. configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes using libjpeg from system libs. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... yes using libXpm from system libs. configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from -L/usr/lib -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.28 or higher... checking for gdImageCreatePaletteFromTrueColor in -lgd... yes using libgd 2.0.28 (or higher) from -L/usr/lib/ -lgd -ljpeg -lpng -lz -lXpm -lX11 checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes checking whether gdImageGetTrueColorPixel is declared... yes checking for gdImageGetTrueColorPixel in -lc... yes using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from /usr/lib/. checking if FTGL support requested... no checking if OGL support requested... no configure: checking where EXPAT is installed... checking for XML_ParserCreate in -lexpat... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes using libexpat from system libs. checking for AGG support... yes checking if SVG Symbol support requested... enabled configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/lib/. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 3.0.0... yes. Found version 3.3.4 configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) checking if PostGIS support requested... yes, user supplied pg_config (/usr/lib/postgresql/9.1/bin/pg_config) checking for PQconnectdb in -lpq... yes checking for PQserverVersion in -lpq... yes checking if Mysql support requested... no checking if OracleSpatial support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support requested. checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.19.7 checking for CURLOPT_PROXYAUTH support... yes. OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking if KML output is requested... no checking for libxml2... yes, user supplied xml2-config (/usr/bin/xml2-config) found libxml2 version 2.7.6 checking if xml-mapfile is requested... no checking if xslt is requested... no checking if exslt is requested... no checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... checking for httpd... no 'httpd' not found, skipping Apache version detection. You may want to use --with-httpd=/path/to/httpd Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no $ sudo make [Omiting here the compile messages] yacc -d -omapparser.c mapparser.y make: yacc: Command not found make: *** [mapparser.c] Error 127 $ sudo aptitude search yacc p btyacc - Backtracking parser generator based on byacc pi byacc - public domain Berkeley LALR Yacc parser generator p byacc-j - Berkeley YACC parser generator extended to generate Jav p ml-yacc - Parser generator for Standard ML p perl-byacc - The Berkeley LALR parser generator, Perl version $ sudo apt-get install byacc Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: m4 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: byacc 0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded. Need to get 0B/49.5kB of archives. After this operation, 168kB of additional disk space will be used. Selecting previously deselected package byacc. (Reading database ... 46170 files and directories currently installed.) Unpacking byacc (from .../byacc_20090221-1build1_amd64.deb) ... Setting up byacc (20090221-1build1) ... update-alternatives: using /usr/bin/byacc to provide /usr/bin/yacc (yacc) in auto mode. $ yacc -V bison (GNU Bison) 2.4.1 Written by Robert Corbett and Richard Stallman. Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ sudo make yacc -d -omapparser.c mapparser.y yacc: e - line 26 of "mapparser.y", syntax error %pure_parser ^ make: *** [mapparser.c] Error 1 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998318.html Sent from the Mapserver - User mailing list archive at Nabble.com. From luis.a.de.sousa at gmail.com Wed Aug 29 01:28:26 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Wed, 29 Aug 2012 01:28:26 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <1346160494577-4998321.post@n6.nabble.com> References: <1346052347702-4998005.post@n6.nabble.com> <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> Message-ID: <1346228906904-4998519.post@n6.nabble.com> Dear all, here's a digest of my exploits today: . The error on mapparser.y was coming up because I was trying to recompile without cleaning first; . The compile process doesn't go through without yacc (byacc in this case) installed; . With yacc installed the compilation goes through a good length and then fails on maplexer.l: maplexer.l: In function ?msyylex?: maplexer.l:178: error: ?IN? undeclared (first use in this function) maplexer.l:178: error: (Each undeclared identifier is reported only once maplexer.l:178: error: for each function it appears in.) make: *** [maplexer.o] Error 1 I have tried to use touch again, as Thomas suggested, but this error remains. Is there any other way to avoid the generation of maplexer.c? Would editing the makefile be an option? Also important to note that this behaviour is exactly the same with either Mapserver 6.0.1 or 6.0.3. Thank you for reading, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998519.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Aug 29 08:20:00 2012 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 29 Aug 2012 15:20:00 +0000 Subject: [mapserver-users] [TinyOWS] DefaultMaxFeatures missing from WFS 1.1.0 GetCapabilities Message-ID: <84446DEF76453C439E9E97E438E13A6346878F@suutari.haapa.mmm.fi> Hi, It is possible to set WFS maxFeatures on server side with ... ... However, this setting is not announced in the WFS 1.1.0 GetCapabilities According to standard it belongs to Operations metadata (table 7b, page 86 in WFS 1.1.0 standard somehow like this ...... 10000 -Jukka Rahkonen- From gisyangli at gmail.com Wed Aug 29 11:00:27 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Thu, 30 Aug 2012 02:00:27 +0800 Subject: [mapserver-users] mapserver user can not make the point layer show , Message-ID: I have a question. I set the mapfile to load postgis data. but I found that the layers of points can not show but lines layer can show. I don 't know why. for example : my mapfile is like this: ------------------------------------------- MAP NAME places STATUS ON SIZE 800 800 EXTENT -8013001.590032 5036601.758317 -7907306.249345 5178361.105787 #EXTENT -8006189.467511 5068117.258598 -7920667.499041 5175889.025208 UNITS METERS IMAGECOLOR 100 100 100 WEB IMAGEPATH "/var/www/output/" IMAGEURL "/output/" END PROJECTION "init=epsg:3857" END LAYER STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" NAME "places0" DATA "geometry from osm_new_places using unique osm_id using SRID=3857" CLASS COLOR 100 255 80 END END LAYER STATUS on TYPE Line CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" NAME "railways" DATA "geometry from osm_new_railways using unique osm_id using SRID=3857" CLASS COLOR 255 100 80 ------------------------------------------- railways can show but the places0 not show. -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Aug 29 11:41:28 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 29 Aug 2012 14:41:28 -0400 Subject: [mapserver-users] mapserver user can not make the point layer show , In-Reply-To: References: Message-ID: <503E6258.1040508@swoodbridge.com> Hi ??; It is likely that you points are showing, but that you can not see them as they are only one pixel large. Try this: SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LAYER STATUS ON TYPE POINT CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" NAME "places0" DATA "geometry from osm_new_places using unique osm_id using SRID=3857" CLASS COLOR 100 255 80 SYMBOL "circle" SIZE 5 END END -Steve W On 8/29/2012 2:00 PM, ?? wrote: > I have a question. > > I set the mapfile to load postgis data. but I found that the layers of > points can not show but lines layer can show. I don 't know why. > > for example : > > my mapfile is like this: > ------------------------------------------- > > MAP > NAME places > STATUS ON > SIZE 800 800 > EXTENT -8013001.590032 5036601.758317 -7907306.249345 5178361.105787 > #EXTENT -8006189.467511 5068117.258598 -7920667.499041 5175889.025208 > UNITS METERS > > IMAGECOLOR 100 100 100 > WEB > IMAGEPATH "/var/www/output/" > IMAGEURL "/output/" > END > > PROJECTION > "init=epsg:3857" > > END > > LAYER > STATUS ON > TYPE POINT > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" > NAME "places0" > DATA "geometry from osm_new_places using unique osm_id using SRID=3857" > CLASS > COLOR 100 255 80 > END > END > > LAYER > STATUS on > TYPE Line > CONNECTIONTYPE postgis > > CONNECTION "host=localhost dbname=osm user=osm password=osm port=5432" > NAME "railways" > DATA "geometry from osm_new_railways using unique osm_id using SRID=3857" > > CLASS > COLOR 255 100 80 > > ------------------------------------------- > > railways can show but the places0 not show. > > > > > -- > Yang Li > GIS Developer > P.R.China > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From luis.a.de.sousa at gmail.com Thu Aug 30 00:15:43 2012 From: luis.a.de.sousa at gmail.com (=?UTF-8?Q?Lu=C3=ADs_de_Sousa?=) Date: Thu, 30 Aug 2012 00:15:43 -0700 (PDT) Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <1346252774093-4998627.post@n6.nabble.com> References: <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> <1346228906904-4998519.post@n6.nabble.com> <1346252774093-4998627.post@n6.nabble.com> Message-ID: <1346310943724-4998782.post@n6.nabble.com> Hello everyone, Yesterday I went round the several Mapscript installations I'm managing and noted that those that I've compiled so far have all been 6.0.2. But this time I'm trying with postgres for the first time, hence I though this to be the cause of my troubles. This morning, more out of desperation than anything else, I downloaded 6.0.2 and gave it a try. Amazingly the compilation went just fine, no issues with lex or yacc, everything when on as it should. Where's the log for future reference, without messages: wget http://download.osgeo.org/mapserver/mapserver-6.0.2.tar.gz tar xvf mapserver-6.0.2.tar.gz cd mapserver-6.0.2 sudo su configure [omiting options for simplicity] make lexer make exit This was run with both byacc and flex uninstalled. There is definitely something wrong with the 6.0.1 and 6.0.3 packages, in particular with the maplexer.l file. Thanks to everyone that helped, Lu?s -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-compiling-Mapserver-6-0-3-tp4998005p4998782.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Thu Aug 30 01:45:20 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 30 Aug 2012 10:45:20 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 References: <1346159176642-4998318.post@n6.nabble.com><1346160494577-4998321.post@n6.nabble.com><1346228906904-4998519.post@n6.nabble.com><1346252774093-4998627.post@n6.nabble.com> <1346310943724-4998782.post@n6.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> > make lexer You can safely ommit that as maplexer.c is shipped with the distribution. From luis.a.de.sousa at gmail.com Thu Aug 30 01:50:29 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Thu, 30 Aug 2012 10:50:29 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> References: <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> <1346228906904-4998519.post@n6.nabble.com> <1346252774093-4998627.post@n6.nabble.com> <1346310943724-4998782.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> Message-ID: Hi Andreas, please check the comments up thread to understand why I'm including it. Regards, Lu?s On 30 August 2012 10:45, Eichner, Andreas - SID-NLKM wrote: > >> make lexer > > You can safely ommit that as maplexer.c is shipped with the distribution. From thomas.bonfort at gmail.com Thu Aug 30 02:12:01 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 30 Aug 2012 11:12:01 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> <1346228906904-4998519.post@n6.nabble.com> <1346252774093-4998627.post@n6.nabble.com> <1346310943724-4998782.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> Message-ID: As already stated multiple times, you have no reason to regenerate the lexer yourself, i.e. flex and yacc are *not* a requirement for building. Start off with a fresh directory from a 6.0.3 tarball, to be sure touch maplexer.c and uninstall flex/yacc, and you should be fine. On Thu, Aug 30, 2012 at 10:50 AM, Lu?s de Sousa wrote: > Hi Andreas, please check the comments up thread to understand why I'm > including it. > > Regards, > > Lu?s > > On 30 August 2012 10:45, Eichner, Andreas - SID-NLKM > wrote: >> >>> make lexer >> >> You can safely ommit that as maplexer.c is shipped with the distribution. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From luis.a.de.sousa at gmail.com Thu Aug 30 02:56:08 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Thu, 30 Aug 2012 11:56:08 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: References: <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> <1346228906904-4998519.post@n6.nabble.com> <1346252774093-4998627.post@n6.nabble.com> <1346310943724-4998782.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> Message-ID: On 30 August 2012 11:12, thomas bonfort wrote: > As already stated multiple times, you have no reason to regenerate the > lexer yourself, i.e. flex and yacc are *not* a requirement for > building. Start off with a fresh directory from a 6.0.3 tarball, to be > sure touch maplexer.c and uninstall flex/yacc, and you should be fine. > I've done that yesterday (or the day before) with both 6.0.3 and 6.0.1, please read my messages up thread. I'm not compiling maplexer.c myself, I'm just following the instructions at the Mapserver website. Thank you for the help in any case, Lu?s From Andreas.Eichner at sid.sachsen.de Thu Aug 30 03:05:51 2012 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 30 Aug 2012 12:05:51 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 References: <1346159176642-4998318.post@n6.nabble.com><1346160494577-4998321.post@n6.nabble.com><1346228906904-4998519.post@n6.nabble.com><1346252774093-4998627.post@n6.nabble.com><1346310943724-4998782.post@n6.nabble.com><56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF40B@KS-EVS1.smi.sachsen.de> That's what I did on Debian Squeeze: $ wget -O- "http://download.osgeo.org/mapserver/mapserver-6.0.3.tar.gz" | tar xz $ cd mapserver-6.0.3/ $ ./configure --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr --with-tiff --with-gd=/usr --with-jpeg --with-freetype=/usr/bin/freetype-config --with-threads --with-wcs --with-libiconv=/usr --with-geos=/usr/bin/geos-config --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-postgis=/usr/bin/pg_config [...] MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: -DUSE_PNG gif support: -DUSE_GIF jpeg support: -DUSE_JPEG freetype support: -DUSE_FREETYPE iconv support: -DUSE_ICONV AGG support: internal SVG Symbol support: -DUSE_AGG_SVG_SYMBOLS Cairo (SVG,PDF) support: KML support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL -DUSE_CURLOPT_PROXYAUTH FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS XML Mapfile support: XSLT support: EXSLT support: -------------- Data Format Drivers ------- PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WFS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no $ make $ sudo make install All went fine so I'm just wondering what the hell you're doing. > -----Urspr?ngliche Nachricht----- > Von: Lu?s de Sousa [mailto:luis.a.de.sousa at gmail.com] > Gesendet: Donnerstag, 30. August 2012 11:56 > An: thomas bonfort > Cc: Eichner, Andreas - SID-NLKM; mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Error compiling Mapserver 6.0.3 > > On 30 August 2012 11:12, thomas bonfort > wrote: > > As already stated multiple times, you have no reason to > regenerate the > > lexer yourself, i.e. flex and yacc are *not* a requirement for > > building. Start off with a fresh directory from a 6.0.3 > tarball, to be > > sure touch maplexer.c and uninstall flex/yacc, and you > should be fine. > > > > I've done that yesterday (or the day before) with both 6.0.3 and > 6.0.1, please read my messages up thread. I'm not compiling maplexer.c > myself, I'm just following the instructions at the Mapserver website. > > Thank you for the help in any case, > > Lu?s > From luis.a.de.sousa at gmail.com Thu Aug 30 05:28:03 2012 From: luis.a.de.sousa at gmail.com (=?ISO-8859-1?Q?Lu=EDs_de_Sousa?=) Date: Thu, 30 Aug 2012 14:28:03 +0200 Subject: [mapserver-users] Error compiling Mapserver 6.0.3 In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF40B@KS-EVS1.smi.sachsen.de> References: <1346159176642-4998318.post@n6.nabble.com> <1346160494577-4998321.post@n6.nabble.com> <1346228906904-4998519.post@n6.nabble.com> <1346252774093-4998627.post@n6.nabble.com> <1346310943724-4998782.post@n6.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF40A@KS-EVS1.smi.sachsen.de> <56B587E7C40D2F43B54FDC1BA897AC6D037AF40B@KS-EVS1.smi.sachsen.de> Message-ID: On 30 August 2012 12:05, Eichner, Andreas - SID-NLKM > > All went fine so I'm just wondering what the hell you're doing. > Hi Andreas, if you read the very first message in this thread you'll see that was the first thing I tried. Regards, Lu?s From webturtles at gmail.com Thu Aug 30 07:46:14 2012 From: webturtles at gmail.com (Chris Jackson) Date: Thu, 30 Aug 2012 15:46:14 +0100 Subject: [mapserver-users] OGR Virtual Format and character encoding Message-ID: Hi all I have OGR Virtual Format layer in my map file and the underlying .OVF is calling a flat MS SQL table of point data. The layer displays fine, but I am having issues with umlauts etc for one of the attribute fields. When I run the ogrinfo command on the layer, it has already messed up the encoding. In SQL it looks and queries fine. Any pointers on how you can maintain the encoding? Many thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisyangli at gmail.com Thu Aug 30 08:24:19 2012 From: gisyangli at gmail.com (=?GB2312?B?wO7R7g==?=) Date: Thu, 30 Aug 2012 23:24:19 +0800 Subject: [mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage Message-ID: Hi. I use basemaps to generated the .mapfile for my osm postgis data. But I found some lable in the mapfile such as"MINSCALEDENOM,MAXSCALEDENOM". I am not very understand these labels. If use these labels,when enlarge ,will make the image disappear. If I delete the labels in th emapfile, enlage will no problem. I mean enlarge is I using a link like this:" http://127.0.0.1/cgi-bin/mapserv?&map=/home/jack/osm-demo/basemaps/osm-google.map&layer=all&template=openlayers", then click the enlarge. Can anyone give some guide? Also I use the mafile which basemaps generated automaticlly, using the above do not show any content, but if I move the MINSCALEDENOM,MAXSCALEDENOM" label , it will show some content. -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Aug 30 08:31:13 2012 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 30 Aug 2012 12:31:13 -0300 Subject: [mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage In-Reply-To: References: Message-ID: <503F8741.6050304@gatewaygeomatics.com> Some quick words of advice: I see you asking the exact same questions on mapserver-dev, then mapserver-users, then IRC: and different people spend time on your questions on each venue. Please use one venue (I recommend you use mapserver-users, where over 2,000 people live); but if you choose to use IRC or other method don't send messages to the other lists as well: we don't want people wasting their time on each of your questions. Thank you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 12-08-30 12:24 PM, ?? wrote: > Hi. I use basemaps to generated the .mapfile for my osm postgis > data. But I found some lable in the mapfile such > as"MINSCALEDENOM,MAXSCALEDENOM". I am not very understand these labels. > If use these labels,when enlarge ,will make the image disappear. If I > delete the labels in th emapfile, enlage will no problem. I mean enlarge > is I using a link like > this:"http://127.0.0.1/cgi-bin/mapserv?&map=/home/jack/osm-demo/basemaps/osm-google.map&layer=all&template=openlayers", > then click the enlarge. Can anyone give some guide? > > Also I use the mafile which basemaps generated automaticlly, using the > above do not show any content, but if I move the > MINSCALEDENOM,MAXSCALEDENOM" label , it will show some content. > > -- > Yang Li > GIS Developer > P.R.China > > > From David.Fawcett at state.mn.us Thu Aug 30 08:33:14 2012 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 30 Aug 2012 15:33:14 +0000 Subject: [mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage In-Reply-To: References: Message-ID: You may want to read the mapfile documentation. Here is the page for layers: http://mapserver.org/mapfile/layer.html I would also suggest only sending messages to one of the mapserver lists at a time. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ?? Sent: Thursday, August 30, 2012 10:24 AM To: mapserver-users at lists.osgeo.org Cc: mapserver-dev at lists.osgeo.org Subject: [mapserver-users] label MINSCALEDENOM, MAXSCALEDENOM usage Hi. I use basemaps to generated the .mapfile for my osm postgis data. But I found some lable in the mapfile such as"MINSCALEDENOM,MAXSCALEDENOM". I am not very understand these labels. If use these labels,when enlarge ,will make the image disappear. If I delete the labels in th emapfile, enlage will no problem. I mean enlarge is I using a link like this:"http://127.0.0.1/cgi-bin/mapserv?&map=/home/jack/osm-demo/basemaps/osm-google.map&layer=all&template=openlayers", then click the enlarge. Can anyone give some guide? Also I use the mafile which basemaps generated automaticlly, using the above do not show any content, but if I move the MINSCALEDENOM,MAXSCALEDENOM" label , it will show some content. -- Yang Li GIS Developer P.R.China -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at glimpsely.com Thu Aug 30 09:12:43 2012 From: eric at glimpsely.com (Eric) Date: Thu, 30 Aug 2012 12:12:43 -0400 Subject: [mapserver-users] [TINYOWS] Circular references in schemas? Message-ID: <503F90FB.9050601@glimpsely.com> An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Aug 30 10:04:38 2012 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 30 Aug 2012 13:04:38 -0400 Subject: [mapserver-users] [TINYOWS] Circular references in schemas? In-Reply-To: <503F90FB.9050601@glimpsely.com> References: <503F90FB.9050601@glimpsely.com> Message-ID: <503F9D26.40001@swoodbridge.com> I did not try it with the earlier version of libxml2, but I am using 2.8 without any problems. -Steve On 8/30/2012 12:12 PM, Eric wrote: > Hello list, > I have tried to search through the past archives but couldn't locate an > answer to my question. Apologies if this has already been answered. > > I have just compiled TINYOWS and installed/configured it. I am going > through the tutorials, and in OL, I get the following error: > > > xmlns='http://www.opengis.net/ows' > xmlns:ows='http://www.opengis.net/ows' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xsi:schemaLocation='http://www.opengis.net/ows > http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd' > version='1.1.0' language='en'> > > XML request isn't valid > > > > > On the server side, tinyows gives me the following error: > > [ERROR] Element '{http://www.w3.org/2001/XMLSchema}import': The > schema document > '/usr/local/tinyows/schema/gml/3.1.1/base/geometryAggregates.xsd' > cannot be imported, since it was already included or redefined. > > Which seems to indicate a circular reference in the XSDs. I am using > libxml2 v2.6. I noticed that the recommended version for libxml2 is 2.8. > Will upgrading to the latest version resolve the issue? > > My configuration file is as follows: > > schema_dir="/usr/local/tinyows/schema/" > log="/var/log/tinyows.log" > log_level="7" > check_schema="1"> > ...... > writable="1" > ns_uri="http://www.tinyows.org/" > ns_prefix="demo" > name="frida" > title="Frida Parks" /> > > > Thanks for your help, > Eric > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.bonfort at gmail.com Fri Aug 31 03:49:12 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 31 Aug 2012 12:49:12 +0200 Subject: [mapserver-users] Migrating mapcache sqlite database to new format In-Reply-To: References: Message-ID: Hi Michael, You'd have some options here: - either manually hack your sqlite schema so it corresponds to the new one (you probably only need to drop/add a few columns) - implement a "single tileset" sqlite backend in cache_sqlite.c (copying and adapting mapcache_cache_sqlite_create() should be sufficient) - implement a "generic" sqlite backend where you supply the sql prepared statements yourself in the mapcache.xml configuration file. regards, thomas On Thu, Aug 16, 2012 at 1:33 AM, Smith, Michael ERDC-RDE-CRREL-NH wrote: > Thomas, > > Was just trying to update my mapcache installation and found out that the > sqlite databases I had built are no longer compatible with the current > format. Specifically, they don't have the TILESET column and I have multiple > sqlite db files for multiple layers. Is there a current configuration > method to using this format or is there a workaround? Or should I just use > and old SHA (b62172775d1377ef74c5499fef21101280d84377) until I have time to > rebuild the caches. These are scattered tile caches, eg lots of areas of no > coverage and the seeding (using GDAL to select the seed areas) can't take > advantage of multiple threads to to the use of GDAL. > > Mike > > -- > Michael Smith > US Army Corps > Remote Sensing GIS/Center > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yves.jacolin at camptocamp.com Fri Aug 31 05:21:18 2012 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Fri, 31 Aug 2012 14:21:18 +0200 Subject: [mapserver-users] label offset bug In-Reply-To: <50363483.1010304@camptocamp.com> References: <50363483.1010304@camptocamp.com> Message-ID: <5040AC3E.2070901@camptocamp.com> Le 23/08/2012 15:47, Yves Jacolin a ?crit : > Hello, > > I have a layer with label (and offset on this lable). Some labels don't > displayed correctly, ie offset value seems not used: see > http://imageshack.us/f/163/mapserverstyleoffsetbug.png/ > > My label config looks like this: > > LABEL > TYPE TRUETYPE > FONT arial > SIZE 7 > COLOR 0 150 150 > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 2 > ANTIALIAS TRUE > ANGLE follow > POSITION cc > OFFSET 0 7 > END > > Does follow ANGLE value change someting with the OFFSET value? > > Thanks, > > Y. Hello (cc dev list), I guess I found the problem. Labels with no offset come from feature with lines geometries with several vertex: X------X---X----X----X Lines with only two vertex work correctly: X---------X Do I need to fill a ticket? Thanks, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From thomas.bonfort at gmail.com Fri Aug 31 05:37:18 2012 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 31 Aug 2012 14:37:18 +0200 Subject: [mapserver-users] label offset bug In-Reply-To: <5040AC3E.2070901@camptocamp.com> References: <50363483.1010304@camptocamp.com> <5040AC3E.2070901@camptocamp.com> Message-ID: Yves, Offset labelling is not (yet :) ) supported for follow labels. For lines with only two points, follow labels fall back to auto labels, which do support offsetting. On Fri, Aug 31, 2012 at 2:21 PM, Yves Jacolin wrote: > Le 23/08/2012 15:47, Yves Jacolin a ?crit : > >> Hello, >> >> I have a layer with label (and offset on this lable). Some labels don't >> displayed correctly, ie offset value seems not used: see >> http://imageshack.us/f/163/mapserverstyleoffsetbug.png/ >> >> My label config looks like this: >> >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 7 >> COLOR 0 150 150 >> OUTLINECOLOR 255 255 255 >> OUTLINEWIDTH 2 >> ANTIALIAS TRUE >> ANGLE follow >> POSITION cc >> OFFSET 0 7 >> END >> >> Does follow ANGLE value change someting with the OFFSET value? >> >> Thanks, >> >> Y. > > Hello (cc dev list), > > I guess I found the problem. Labels with no offset come from feature with > lines geometries with several vertex: X------X---X----X----X > > Lines with only two vertex work correctly: X---------X > > Do I need to fill a ticket? > > > Thanks, > > Y. > -- > Responsable Formation et Support > Camptocamp France SAS > Savoie Technolac, BP 352 > 73377 Le Bourget du Lac, Cedex > Tel (France) : +33 4 79 26 57 98 > Mob. : +33 6 18 75 42 21 > Fax : 04 79 70 15 81 > Mail : yves.jacolin at camptocamp.com > http://www.camptocamp.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Fri Aug 31 09:02:04 2012 From: ian.walberg at airborne.aero (Ian Walberg) Date: Fri, 31 Aug 2012 12:02:04 -0400 Subject: [mapserver-users] WMS layer example Message-ID: Hello folks, We had weather layers working ok previously and now cannot find the map file we used. Anyone got an example that works with the AS_RIDGE_NEXRAD layer from here http://nowcoast.noaa.gov/help/mapservices.shtml Works with QGIS but cannot get the syntax correct for mapserver. Thanks Ian From stiramdasu at qcoherent.com Fri Aug 31 12:42:56 2012 From: stiramdasu at qcoherent.com (Sowmya Tiramdasu) Date: Fri, 31 Aug 2012 14:42:56 -0500 Subject: [mapserver-users] compiling mapserver error : can not find gd.lib Message-ID: <025d01cd87b0$d20047c0$7600d740$@com> Hi, I am trying to compile mapserver from sources on windows 7 computer. I am facing the following problem. Can anyone please guide me. I used the link given in the Mapserver manual to download the GD library package (http://www.boutell.com/gd/http/gdwin32.zip.) When I am trying to compile mapserver this is the error I am getting. When I try to look for gd.lib I do not have it :( ---------------------------------------------------------------------------- --------------------------------------------------------------------- LINK : fatal error LNK1181: cannot open input file 'C:\Projects\gdwin32\gd.lib' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\link.EXE"' : return code '0x49d' Stop. ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Where can I get gd.lib? Thanks , Sowmya. _______________________________ Sowmya Tiramdasu QCoherent Software 9668 Madison Blvd., Suite 202 Madison, AL 35758 (256) 461-8289 Telephone (256) 461-8249 Fax www.geocue.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Fri Aug 31 13:07:20 2012 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 31 Aug 2012 21:07:20 +0100 Subject: [mapserver-users] OGR Virtual Format and character encoding In-Reply-To: References: Message-ID: All One thought I did have, if the characters where html encoded in the SQL table (e.g. ? as ü) is there anyway to get MapServer to render them correctly again in a label? I guess OGR can only deal with UTF-8 encoded characters (I am using nvarchar fields, but in an ISO collation in SQL 2005 - not v.UTF-8 friendly I think!) Thanks Chris On 30 August 2012 15:46, Chris Jackson wrote: > Hi all > > I have OGR Virtual Format layer in my map file and the underlying .OVF is > calling a flat MS SQL table of point data. The layer displays fine, but I > am having issues with umlauts etc for one of the attribute fields. When I > run the ogrinfo command on the layer, it has already messed up the > encoding. In SQL it looks and queries fine. Any pointers on how you can > maintain the encoding? > > Many thanks > Chris > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Aug 31 13:16:50 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 31 Aug 2012 13:16:50 -0700 Subject: [mapserver-users] OGR Virtual Format and character encoding In-Reply-To: References: Message-ID: Chris, I'm a bit unclear if the problem is happening in the MS SQL driver, or in the VRT driver. If you use OGR directly against the MS SQL data are things messed up? Are you using ODBC or the actual MSSQLSpatial driver? Best regards, Frank On Fri, Aug 31, 2012 at 1:07 PM, Chris Jackson wrote: > All > > One thought I did have, if the characters where html encoded in the SQL > table (e.g. ? as ü) is there anyway to get MapServer to render them > correctly again in a label? I guess OGR can only deal with UTF-8 encoded > characters (I am using nvarchar fields, but in an ISO collation in SQL 2005 > - not v.UTF-8 friendly I think!) > > Thanks > Chris > > > On 30 August 2012 15:46, Chris Jackson wrote: >> >> Hi all >> >> I have OGR Virtual Format layer in my map file and the underlying .OVF is >> calling a flat MS SQL table of point data. The layer displays fine, but I >> am having issues with umlauts etc for one of the attribute fields. When I >> run the ogrinfo command on the layer, it has already messed up the encoding. >> In SQL it looks and queries fine. Any pointers on how you can maintain the >> encoding? >> >> Many thanks >> Chris > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer From webturtles at gmail.com Fri Aug 31 13:37:39 2012 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 31 Aug 2012 21:37:39 +0100 Subject: [mapserver-users] OGR Virtual Format and character encoding In-Reply-To: References: Message-ID: Frank I am using ODBC:..... in the OVF file. I am parsing the file using OGRinfo via commandline and the characters are looking odd straight away. Hadn't thought about using the spatial add-on for 2005, can that be called directly from the mapfile instead? I usually just use shapefiles (performance surprising good), but have need of a SQL table of point data (all over Europe - hence the character issues) updated via a web-form to be called via MapServer and another application. Any pointers appreciated! Cheers Chris On 31 August 2012 21:16, Frank Warmerdam wrote: > Chris, > > I'm a bit unclear if the problem is happening in the MS SQL driver, or in > the > VRT driver. If you use OGR directly against the MS SQL data are things > messed up? Are you using ODBC or the actual MSSQLSpatial driver? > > Best regards, > Frank > > On Fri, Aug 31, 2012 at 1:07 PM, Chris Jackson > wrote: > > All > > > > One thought I did have, if the characters where html encoded in the SQL > > table (e.g. ? as ü) is there anyway to get MapServer to render them > > correctly again in a label? I guess OGR can only deal with UTF-8 encoded > > characters (I am using nvarchar fields, but in an ISO collation in SQL > 2005 > > - not v.UTF-8 friendly I think!) > > > > Thanks > > Chris > > > > > > On 30 August 2012 15:46, Chris Jackson wrote: > >> > >> Hi all > >> > >> I have OGR Virtual Format layer in my map file and the underlying .OVF > is > >> calling a flat MS SQL table of point data. The layer displays fine, > but I > >> am having issues with umlauts etc for one of the attribute fields. > When I > >> run the ogrinfo command on the layer, it has already messed up the > encoding. > >> In SQL it looks and queries fine. Any pointers on how you can maintain > the > >> encoding? > >> > >> Many thanks > >> Chris > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Software Developer > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Aug 31 13:59:24 2012 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 31 Aug 2012 13:59:24 -0700 Subject: [mapserver-users] OGR Virtual Format and character encoding In-Reply-To: References: Message-ID: On Fri, Aug 31, 2012 at 1:37 PM, Chris Jackson wrote: > Frank > > I am using ODBC:..... in the OVF file. I am parsing the file > using OGRinfo via commandline and the characters are looking odd straight > away. Chris, I'm not convinced that command windows support UTF-8 output properly so funny looking output from ogrinfo in a command window may not be a conclusive indicator of whether the driver is returning UTF-8 or not. Since you are going through ODBC I imagine the key to the translation is in gdal/port/cpl_odbc.cpp. In particular I see that SQL_WCHAR and friends are translated as wide characters while SQL_CHAR is not. I am not clear on whether NVARCHAR fields in MS SQL are represented as SQL_VARCHAR or SQL_WVARCHAR at the ODBC level of the code. You might want to try changing: case SQL_CHAR: case SQL_VARCHAR: case SQL_LONGVARCHAR: return SQL_C_CHAR; in the cpl_odbc.cpp GetTypeMapping() code to return SQL_C_WCHAR instead and see if that helps. You might also want to put in a printf() in the SQL_WCHAR case to see if it being used or not. > Hadn't thought about using the spatial add-on for 2005, can that be > called directly from the mapfile instead? I usually just use shapefiles > (performance surprising good), but have need of a SQL table of point data > (all over Europe - hence the character issues) updated via a web-form to be > called via MapServer and another application. Any pointers appreciated! I am not clear on the details of the MSSQLSpatial driver, but if you aren't using the mssql spatial types then you might be just as well to stick with ODBC. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Software Developer