MapTiler / gdal2tiles and ECW files

488 views
Skip to first unread message

pmeems

unread,
Aug 6, 2009, 4:13:43 AM8/6/09
to MapTiler User Group
I have some large ECW files I want to tile them to use them in a
desktop GIS: MapWindow (www.mapwindow.org).
Hoping loading my projectfile will get faster.

When I use the MapTiler GUI I can select the ECW-file using the Add
button, but nothing is added to the 'Input raster map files' listbox
so I can't continue.

I've also installed OSGeo4W and de ECW SDK. Using this command I get
tiled files:
gdal2tiles -s EPSG:28992 -w none -p raster TilerTest.ecw
but the tiles are png. I need them to stay ECW with georeference
data.
I also want to be able to set the size of the tiles. How can I do
that?

Thanks,

Paul
The Netherlands

klo...@gmail.com

unread,
Aug 6, 2009, 4:36:25 AM8/6/09
to mapt...@googlegroups.com
Paul,

> When I use the MapTiler GUI I can select the ECW-file using the Add
> button, but nothing is added to the 'Input raster map files' listbox
> so I can't continue.

That seems to be a bug in MapTiler application specific for the ECW
file you have.
Can you please privately post me an small ECW example which is
behaving like this, so I can fix this bug in the next version of
MapTiler?
If this is a problem for you, then send me please at least the text
printed by the command: "gdalinfo youfile.ecw" so I can see what is up
with this ECW.

> I've also installed OSGeo4W and de ECW SDK. Using this command I get
> tiled files:
> gdal2tiles -s EPSG:28992 -w none -p raster TilerTest.ecw
> but the tiles are png. I need them to stay ECW with georeference
> data.
> I also want to be able to set the size of the tiles. How can I do
> that?

For the tiling you would like to do you should probably use another
gdal utility, the gdal_retile - info:
http://gdal.org/gdal_retile.html, also included in the OSGeo4W.
This allows you to set the size of tiles, choose the file format and
keep the georeferencing metadata for tiles.

MapTiler/GDAL2TIles is targeted to the tiles for publishing -
compatible with TMS, Google Maps, OpenStreetMap, Google Earth and
another applications... which is slightly different task.

Best regards,

Klokan
--
http://blog.klokan.cz/
http://www.maptiler.org/
http://www.oldmapsonline.org/

Paul Meems

unread,
Aug 7, 2009, 5:55:06 AM8/7/09
to MapTiler User Group
Thanks for the swift reply.

I'll try the gdal-retile.

But gdalinfo returns
ERROR 4: `TilerTest.ecw' not recognised as a supported file format.
gdalinfo failed - unable to open 'TilerTest.ecw'.

That doesn't sound good, right?
I am able to open the ecw file in MapWindow GIS, which is using GDAL
as well.

I can send you the ecw, but my smallest on is still 19MB. Do you still
want it?

Thanks,
Paul

Paul Meems

unread,
Aug 7, 2009, 6:05:45 AM8/7/09
to MapTiler User Group
Klokan,

I'm sorry I'm new to OSGeo4W and I forgot to first use gdal16 before
doing gdalinfo.
Here's the ECW info:
Driver: ECW/ERMapper Compressed Wavelets
Files: TilerTest.ecw
Size is 4000, 5000
Coordinate System is `'
Origin = (60000.000000000000000,387500.000000000000000)
Pixel Size = (2.500000000000000,-2.500000000000000)
Corner Coordinates:
Upper Left ( 60000.000, 387500.000)
Lower Left ( 60000.000, 375000.000)
Upper Right ( 70000.000, 387500.000)
Lower Right ( 70000.000, 375000.000)
Center ( 65000.000, 381250.000)
Band 1 Block=4000x1 Type=Byte, ColorInterp=Red
Overviews: arbitrary
Band 2 Block=4000x1 Type=Byte, ColorInterp=Green
Overviews: arbitrary
Band 3 Block=4000x1 Type=Byte, ColorInterp=Blue
Overviews: arbitrary

That looks a lot better ;)

Paul
Reply all
Reply to author
Forward
0 new messages