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] 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 ?
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
[mapserver-users] Disregard ECW header for TFW in TILEINDEX ?
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 ? We _have_ requested a new data shipment, but it may be long in coming, and I would like to have something working faster than that. Cheers. -- Best regards / Med venlig hilsen Lars I. Nielsen GIS DB Integrator GisPro ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users