[mapserver-users] Mapserver 5.6 PHP-Mapscript Crash (processquerytemplate)
hi all, can anybody confirm to me, that the function processquerytemplate of the mapObj still works in PHP-Mapscript 5.6.x (used with postgis layers)? if so, what has changed since 5.4.x (i didnt't saw anything in the migration guide...) or is this a bug, since the implementation of single pass queries? i used this function in PHP-Mapscript 4.10 / 5.2 / 5.4 whithout any problem... but in all versions of 5.6 i've tested, the php script ends up with a crash (no response, no error message) i tried: fedora 11, php 5.2 mapserver (compiled) fedora 12 php 5.3 mapserver (binary, compiled) ubuntu 9.1 php 5.2 mapserver (binary: ubuntugis) ubuntu 10.04 php 5.3 mapserver (binary: standard) thanks for any reply dieter___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi, I believe that version 5.2.1 supports setting EXTENT_PRIORITY. Read http://lists.osgeo.org/pipermail/mapserver-users/2008-October/058227.html -Jukka Rahkonen- Lars I. Nielsen wrote: Hi Frank, This may work, but I'm unable to test it, since I'm currently unable to retrieve anything newer than 5.2.1 (included in the latest ms4w.zip). There's a newer version 5.7beta of Mapserver included in the FWTools package, but the DLL set it uses seems totally different from the one used in cgi-bin in the ms4w package. Please advise as to how I can download a newer version of Mapserver. Cheers. Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Frank Warmerdam skrev: Lars I. Nielsen (GisPro) wrote: Hi, I'm trying to set up Mapserver as a WMS server, serving multiple seamless coverages consisting of ECW raster tiles. My problem is, that the ECW files have been delivered with faulty header information, and there's too many to fix manually, and the error cannot easily be remedied programmatically. However, I have generated TFW files for each tile that are correct, but how do I force Mapserver to use the TFW files and disregard the faulty ECW header ? Lars, As it happens this is not a unique situation and MapServer itself has some logic to address it. If you add: PROCESSING EXTENT_PRIORITY=WORLD to your layer definition, then world files will be searched for in preference to using the georeferencing returned by GDAL. I'm not sure exactly when this was incorporated but I imagine it is in 5.4 and later. Also the file extension should likely be either .eww or .wld, not .tfw for ecw files. Best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Log analysis for OGC services
Hi everybody, We need to make statistics from our OGC services. Does anyone have experience about this subject? We think to use a generalist statistical httpd analyzer (like Webalyzer or AWstats), but we don't know If there is some solutions specifically for OGC services. Thanks a lot. - Alexandre Rodier Asistencia Técnica del SIGA Servicio de Información e Integración Ambiental Dirección General de Patrimonio Natural y Biodiversidad Consejería de Agricultura y Agua. c/ Arquitecto Emilio Piñero, 1 Entresuelo C 30.007 Murcia Tel. 968246272 Correo-e: alexandre.rod...@carm.es mailto:alexandre.rod...@carm.es http://www.carm.es/medioambiente http://www.carm.es/medioambiente - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: gdalinfo - error while opening CADRG map
Even, thanks for your reply. I managed to build my own gdal dll with removed lines in gdal/frmts/nitf/rpftocfile.cpp, and everything seems to be all right. CADRG map loaded without problems and it looks fine. Unfortunately I am not allowed to send you a copy of my dataset. Thank you very much. Please reply if you need more feedback. wostok Even Rouault wrote: wostok, I'd think that such a TOC file would be invalid. It would mean that the same CADRG tile is used several times at different geolocations. But as a CADRG tile contains its own georeferencing, this doesn't make much sense. However, if you can compile gdal yourself, you could remove the following lines (around line 423-430) in gdal/frmts/nitf/rpftocfile.cpp and see what happens. if (frameEntry-exists) { CPLError( CE_Failure, CPLE_NotSupported, Invalid TOC file. Frame entry(%d,%d) for frame file index %d is a duplicate., frameRow, frameCol, i); RPFTOCFree(toc); return NULL; } I'd be interested in having your feedback and/or seeing this dataset if you can share it. Maybe this test should just be turned into a warning. Best regards, Even Le Tuesday 20 April 2010 14:33:10 wostok, vous avez écrit : Hello, I'm getting error while executing gdalinfo on CADRG map (.toc file): gdalinfo.exe my_toc_file.toc ERROR 6: Invalid TOC file. Frame entry(15,6) for frame file index 421 is a duplicate. gdalinfo failed - unable to open 'path_to_A.TOC'. It looks like the map file is bad, but when I opened it in CADRG viewer - Tatuk Gis, there weren't any problems. I haven't found any information about this error on google. Is this a bug or my map file has been corrupted? I use fwtools 2.4.7 on win xp, Thanks in advance. wostok ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/gdalinfo-error-while-opening-CADRG-map-tp4930886p4973736.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi Jukka, Alas, it doesn't, or it doesn't work. I made a copy of the errornous ECW file, and edited the header. The original doesn't display, while the edited does (perfectly so), with the exact same mapping file. Adding the PROCESSING directive doesn't help, the errornous ECW file still doesn't show. And I'm sure that the TFW is both present and correct :-) The debug log reports: msResampleGDALToMap(): no overlap ... no result. The errornous ECW header setting tells GDAL that the Y axis is downwards, not upwards. And it has UL=(0,0) and dx,dy = 1,1. I.e. dummy data. Is GDAL still reading the (here errornous) Y axis direction setting although it shouldn't (with the directive in place) ? Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Rahkonen Jukka skrev: Hi, I believe that version 5.2.1 supports setting EXTENT_PRIORITY. Read http://lists.osgeo.org/pipermail/mapserver-users/2008-October/058227.html -Jukka Rahkonen- Lars I. Nielsen wrote: Hi Frank, This may work, but I'm unable to test it, since I'm currently unable to retrieve anything newer than 5.2.1 (included in the latest ms4w.zip). There's a newer version 5.7beta of Mapserver included in the FWTools package, but the DLL set it uses seems totally different from the one used in cgi-bin in the ms4w package. Please advise as to how I can download a newer version of Mapserver. Cheers. Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Frank Warmerdam skrev: Lars I. Nielsen (GisPro) wrote: Hi, I'm trying to set up Mapserver as a WMS server, serving multiple seamless coverages consisting of ECW raster tiles. My problem is, that the ECW files have been delivered with faulty header information, and there's too many to fix manually, and the error cannot easily be remedied programmatically. However, I have generated TFW files for each tile that are correct, but how do I force Mapserver to use the TFW files and disregard the faulty ECW header ? Lars, As it happens this is not a unique situation and MapServer itself has some logic to address it. If you add: PROCESSING EXTENT_PRIORITY=WORLD to your layer definition, then world files will be searched for in preference to using the georeferencing returned by GDAL. I'm not sure exactly when this was incorporated but I imagine it is in 5.4 and later. Also the file extension should likely be either .eww or .wld, not .tfw for ecw files. Best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Log analysis for OGC services
-Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of RODIER BATISSE, ALEXANDRE Sent: Wednesday, 28 April 2010 06:09 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Log analysis for OGC services Hi everybody, We need to make statistics from our OGC services. Does anyone have experience about this subject? We think to use a generalist statistical httpd analyzer (like Webalyzer or AWstats), but we don't know If there is some solutions specifically for OGC services. I haven't seen any add-ons or modules like this for webstats-like packages, but I think this would be very valuable. I have some Python scripts which parse httpd logfiles and report stats on OGC services (total hits, hits by request, hits by layer, etc.). I can send them along if they would be of any help. ..Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
On Wed, Apr 28, 2010 at 6:33 AM, Lars I. Nielsen (GisPro) l...@gispro.dk wrote: Hi Jukka, Alas, it doesn't, or it doesn't work. I made a copy of the errornous ECW file, and edited the header. The original doesn't display, while the edited does (perfectly so), with the exact same mapping file. Adding the PROCESSING directive doesn't help, the errornous ECW file still doesn't show. And I'm sure that the TFW is both present and correct :-) Did you rename the .tfw world files to .eww and/or .wld? -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi Richard, Ah, Mapserver and/or GDAL doesn't support the TFW extension anymore ? Didn't know that. When did this happen ? Renaming the TFW to WLD did the trick, now the ECW displays nicely. Thanks Richard :-) Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Richard Greenwood skrev: On Wed, Apr 28, 2010 at 6:33 AM, Lars I. Nielsen (GisPro) l...@gispro.dk wrote: Hi Jukka, Alas, it doesn't, or it doesn't work. I made a copy of the errornous ECW file, and edited the header. The original doesn't display, while the edited does (perfectly so), with the exact same mapping file. Adding the PROCESSING directive doesn't help, the errornous ECW file still doesn't show. And I'm sure that the TFW is both present and correct :-) Did you rename the .tfw world files to .eww and/or .wld? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Lars I. Nielsen (GisPro) wrote: Hi Richard, Ah, Mapserver and/or GDAL doesn't support the TFW extension anymore ? Didn't know that. When did this happen ? Renaming the TFW to WLD did the trick, now the ECW displays nicely. Lars, As far as I know the .tfw extension was only ever for tiff files. The rule for worldfiles is that you take the first and last letter of the regular extension and add a w to make the three letter world file extension for the target file. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi Lars, You should have read the link I sent for you :) Here is an excerpt: Yes, it should work, though looking at the code it only looks for world files with the extension .wld in this case (not .tfw, or .tifw). The code is: So this piece of code that Frank kindly made when I asked if it could be possible to override georeferencing info of geotiffs and use world files instead is looking just for .wld files. Generally gdal does not behave this way. -Jukka- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Frank Warmerdam Lähetetty: ke 28.4.2010 16:28 Vastaanottaja: l...@gispro.dk Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ? Lars I. Nielsen (GisPro) wrote: Hi Richard, Ah, Mapserver and/or GDAL doesn't support the TFW extension anymore ? Didn't know that. When did this happen ? Renaming the TFW to WLD did the trick, now the ECW displays nicely. Lars, As far as I know the .tfw extension was only ever for tiff files. The rule for worldfiles is that you take the first and last letter of the regular extension and add a w to make the three letter world file extension for the target file. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OGC log services analysis
Hi, I am using the standard demo report of AWStats and I have been thinking that somebody who can write Perl could make it to suit better for analysing Mapserver logs. Have a try, even the demo report is useful and AWStats makes the reports very fast. -Jukka Rahkonen- RODIER BATISSE, ALEXANDRE wrote: Hi everybody, We need to make statistics from our OGC services. Does anyone have experience about this subject? We think to use a generalist statistical httpd analyzer (like Webalyzer or AWstats), but we don't know If there is some solutions specifically for OGC services. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi Jukka, Right you are, I just assumed the link was to a post wrt. version 5.2.1. I probably wouldn't have noticed the extension issue anyway ,-) Goes to show, I _have_ been away from Mapserver for too long :-) Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Rahkonen Jukka skrev: Hi Lars, You should have read the link I sent for you :) Here is an excerpt: Yes, it should work, though looking at the code it only looks for world files with the extension .wld in this case (not .tfw, or .tifw). The code is: So this piece of code that Frank kindly made when I asked if it could be possible to override georeferencing info of geotiffs and use world files instead is looking just for .wld files. Generally gdal does not behave this way. -Jukka- -Alkuperäinen viesti- Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Frank Warmerdam Lähetetty: ke 28.4.2010 16:28 Vastaanottaja: l...@gispro.dk Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ? Lars I. Nielsen (GisPro) wrote: Hi Richard, Ah, Mapserver and/or GDAL doesn't support the TFW extension anymore ? Didn't know that. When did this happen ? Renaming the TFW to WLD did the trick, now the ECW displays nicely. Lars, As far as I know the .tfw extension was only ever for tiff files. The rule for worldfiles is that you take the first and last letter of the regular extension and add a w to make the three letter world file extension for the target file. Best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
Hi Frank, Ok, I learned another new thing today :-) TFW worked fine in 4.x. I did notice mention of an alternative extension named WLD sometime back, but never paid full attention to its implications. Is WLD an officially supported extension, or is it Mapserver and/or OSGeo specific ? Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Frank Warmerdam skrev: Lars I. Nielsen (GisPro) wrote: Hi Richard, Ah, Mapserver and/or GDAL doesn't support the TFW extension anymore ? Didn't know that. When did this happen ? Renaming the TFW to WLD did the trick, now the ECW displays nicely. Lars, As far as I know the .tfw extension was only ever for tiff files. The rule for worldfiles is that you take the first and last letter of the regular extension and add a w to make the three letter world file extension for the target file. Best regards, ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Download of stand-alone Mapserver ?
Thanks Lester, Yeah, I found out about the CONFIG PROJ_LIB issue. But version 5.2.1 from MS4W does indeed work for me, so no more worries. As you can see from my other thread, there were several pitfalls in setting this up, and I managed to fall into almost every one :-) Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro Lester Caine skrev: Lars I. Nielsen (GisPro) wrote: I've obviously been away from Mapserver work for too long :-) I cannot seem to find a download for a stand-alone Mapserver as Windows binary. I can only find integrated installers for OSGeo4W, MS4W and FWTools, but I don't need anything else than Mapserver. I need the stand-alone Mapserver (i.e. mapserv.exe) to work as a WMS/WFS server with support for e.g. ECW and MS/SQL 2008. Which package will help me get just that ? Take care ... mapserv.exe may need things like proj4 to process map data ;) On the windows boxes I have to admit to installing the maptools package, and then just moving the bits I needed to my real webserver ;) ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] OGC log services analysis
All, This is something I'm familiar with, if someone has a AWSTATS already setup, I can do some tweaking to a running (perl) install if needed. bobb Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I am using the standard demo report of AWStats and I have been thinking that somebody who can write Perl could make it to suit better for analysing Mapserver logs. Have a try, even the demo report is useful and AWStats makes the reports very fast. -Jukka Rahkonen- RODIER BATISSE, ALEXANDRE wrote: Hi everybody, We need to make statistics from our OGC services. Does anyone have experience about this subject? We think to use a generalist statistical httpd analyzer (like Webalyzer or AWstats), but we don't know If there is some solutions specifically for OGC services. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
On Wed, Apr 28, 2010 at 8:44 AM, Frank Warmerdam warmer...@pobox.com wrote: WLD is a mapserver/gdal specific naming convention as far as I know. I do not think it is supported by ArcGIS which I assume is what you mean by official. Well in my little world mapserver/gdal is pretty official! -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Download of stand-alone Mapserver ?
Lars I. Nielsen (GisPro) wrote: Thanks Lester, Yeah, I found out about the CONFIG PROJ_LIB issue. But version 5.2.1 from MS4W does indeed work for me, so no more worries. Great, I am glad that MS4W could help you publish your spatial information. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapscript Rasterquery returns empty result
Hi, I have the following code: $oMap-prepareQuery(); $oPoint = ms_newPointObj(); $oPoint-setXY($x,$y); //coords received from a AJAX call $oLayer = $oMap-GetLayerByName($szLayer); //Name received from a AJAX call $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); $status = $oLayer-open(); $result = $oLayer-getResult(0); $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); echo(var2json($shape)); This results in the follwing json code to be returned: {_handle_:Resource id #45,numlines:1,type:0,index:-1, tileindex:-1,classindex:0,numvalues:8,text:, bounds:{_handle_:Resource id #46,minx:607000, miny:677000,maxx:607000,maxy:677000}, values:[null,null,null,null,null,null,null,null]} No matter what I try, it keeps returning empty shapes. How can this be? P.S. I'm using mapserver 5.2.1 from the ms4w package. Cheers, Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
The .wld extension was supported by ArcView at the time MapServer was first developed so that's where it originated... From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Frank Warmerdam [warmer...@pobox.com] Sent: Wednesday, April 28, 2010 9:44 AM To: l...@gispro.dk Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Disregard ECW header for TFW in TILEINDEX ? Lars I. Nielsen (GisPro) wrote: Hi Frank, Ok, I learned another new thing today :-) TFW worked fine in 4.x. I did notice mention of an alternative extension named WLD sometime back, but never paid full attention to its implications. Is WLD an officially supported extension, or is it Mapserver and/or OSGeo specific ? Lars, WLD is a mapserver/gdal specific naming convention as far as I know. I do not think it is supported by ArcGIS which I assume is what you mean by official. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, warmer...@pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush| Geospatial Programmer for Rent ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript Rasterquery returns empty result
I'd try and narrow down the area in the code where the issue might be. More specifically, start working with a pair of coordinates (in the same CRS as your raster), for which you can look up the raster value by other means (say, use qgis or write short gdal code). Then, knowing what the end result should be, narrow it down to where you get issues in your code. On Wed, Apr 28, 2010 at 8:48 AM, Tom van der Putte t...@vdputte.nl wrote: Hi, I have the following code: $oMap-prepareQuery(); $oPoint = ms_newPointObj(); $oPoint-setXY($x,$y); //coords received from a AJAX call $oLayer = $oMap-GetLayerByName($szLayer); //Name received from a AJAX call $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); $status = $oLayer-open(); $result = $oLayer-getResult(0); $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); echo(var2json($shape)); This results in the follwing json code to be returned: {_handle_:Resource id #45,numlines:1,type:0,index:-1, tileindex:-1,classindex:0,numvalues:8,text:, bounds:{_handle_:Resource id #46,minx:607000, miny:677000,maxx:607000,maxy:677000}, values:[null,null,null,null,null,null,null,null]} No matter what I try, it keeps returning empty shapes. How can this be? P.S. I'm using mapserver 5.2.1 from the ms4w package. Cheers, Tom ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: gdalinfo - error while opening CADRG map
wostok, based on feedback, I've just changed the RPFTOC driver in GDAL SVN trunk to accept A.TOC files with frame entries that have same (row,col) coordinates. See http://trac.osgeo.org/gdal/changeset/19568 Best regards, Even Le Wednesday 28 April 2010 12:29:00 wostok, vous avez écrit : Even, thanks for your reply. I managed to build my own gdal dll with removed lines in gdal/frmts/nitf/rpftocfile.cpp, and everything seems to be all right. CADRG map loaded without problems and it looks fine. Unfortunately I am not allowed to send you a copy of my dataset. Thank you very much. Please reply if you need more feedback. wostok Even Rouault wrote: wostok, I'd think that such a TOC file would be invalid. It would mean that the same CADRG tile is used several times at different geolocations. But as a CADRG tile contains its own georeferencing, this doesn't make much sense. However, if you can compile gdal yourself, you could remove the following lines (around line 423-430) in gdal/frmts/nitf/rpftocfile.cpp and see what happens. if (frameEntry-exists) { CPLError( CE_Failure, CPLE_NotSupported, Invalid TOC file. Frame entry(%d,%d) for frame file index %d is a duplicate., frameRow, frameCol, i); RPFTOCFree(toc); return NULL; } I'd be interested in having your feedback and/or seeing this dataset if you can share it. Maybe this test should just be turned into a warning. Best regards, Even Le Tuesday 20 April 2010 14:33:10 wostok, vous avez écrit : Hello, I'm getting error while executing gdalinfo on CADRG map (.toc file): gdalinfo.exe my_toc_file.toc ERROR 6: Invalid TOC file. Frame entry(15,6) for frame file index 421 is a duplicate. gdalinfo failed - unable to open 'path_to_A.TOC'. It looks like the map file is bad, but when I opened it in CADRG viewer - Tatuk Gis, there weren't any problems. I haven't found any information about this error on google. Is this a bug or my map file has been corrupted? I use fwtools 2.4.7 on win xp, Thanks in advance. wostok ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Do MINSCALEDENOM and MAXSCALEDENOM effect the Scale for MINSIZE and MAXSIZE
Hi Astrid: Nope they don't. MINSCALEDENOM and MAXSCALEDENOM only control layer visibility. SYMBOLSCALE and the computed SCALE are combined to form a scale factor that is applied to a symbol's SIZE. Once that's done, the MINSIZE/MAXSIZE values are applied to make sure the final computation is in range. Steve From: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] On Behalf Of Astrid Emde [astrid.e...@wheregroup.com] Sent: Monday, April 26, 2010 10:00 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Do MINSCALEDENOM and MAXSCALEDENOM effect the Scale for MINSIZE and MAXSIZE Hello list, in my mapfiles I often use SYMBOLSCALEDENOM in combination with SIZE MINSIZE MAXSIZE For some layer the features are only visible between MINSCALEDENOM and MAXSCALEDENOM. Does MapServer takes regard for MINSCALEDENOM and MAXSCALEDENOM when the size for the objects are calculated? -- Best regards Astrid Emde ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] WMS and tiles cutting off
Hi all I am having a problem with WMS. I am using OpenLayers as my rendering engine. Basically I am already aware of the fact that when you have a feature that is a point geometry, if the label/symbol spans multiple tiles, it will not render on the tile that the point is not located on. I was able to get this working in single tile mode, but it just isn't efficient enough, and the map lags at each pan. I am just wondering if anyone has tackled and solved this issue before, or if this is one of those issues that remains a mystery. Any help would be greatly apreciated. One last thing, here is my WMS request details: BBOX991230.11986447,215212.28608623,991771.98623853,215754.15246029 CATEGORIES 338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363 ,364,365,366,367,368,369,370,371,372,373,374,375,376,401,377,378,379,380,381,382,383,385,386,387,388 ,402,389,390,391,392,393,394,395,396,397,398,399,400,384EXCEPTIONS application/vnd.ogc.se_inimageFORMATimage/png; mode=24bitHEIGHT256LAYERS thelayerREQUESTGetMapSERVICEWMSSRSEPSG:2959STYLES TRANSPARENTTRUEVERSION1.1.1WIDTH256map /var/www/htdocs/mapfiles/e72b402fa0b6eb81dd2ee218611879c6.map And for those familiar with OpenLayers, this is my openlayers object: var thelayer = new OpenLayers.Layer.WMS(Logos, /cgi-bin/mapserv?map=/var/www/htdocs/mapfiles/?php echo session_id() ?.map, { format: 'image/png; mode=24bit', layers:'thelayer', transparent:'TRUE', categories:'?php echo $all_cats ?'}, { isBaseLayer:false} ); ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users