Hi Even,

I need to convert the ECW file to GeoTiff because of license issues. It is
extremely expensive to host ECW files on GeoServer.
The converted GeoTiff is 100GB. GeoServer can only handle files up to 2GB
so I need to create smaller tiles.
That is what the python script will do for me. I'm hoping I can create
GeoTiff tiles using the ECW directly without converting it to a large
GeoTiff first.

I tried the files from http://www.gisinternals.com/sdk/ but that didn't
help. I think my problem is more with Python.

After updating FWTools with the files from gisinternals I get this error:
Traceback (most recent call last):
  File "E:\PROGRA~1\FWTOOL~1.7\bin\gdal_retile.py", line 38, in <module>
    import gdal
  File "e:\PROGRA~1\FWTOOL~1.7\pymod\gdal.py", line 191, in <module>
    import _gdal
ImportError: No module named _gdal

I'll try OSGeo4W next.

Thanks

Paul


2012/9/5 Even Rouault <even.roua...@mines-paris.org>

> Selon Paul Meems <bontepaar...@gmail.com>:
>
> > I'm trying to tile an ecw file to use in geoserver like explained here:
> >
>
> http://docs.geoserver.org/latest/en/user/tutorials/imagepyramid/imagepyramid.html
>
> I've no experience with GeoServer but this would be *extremely* weird that
> you
> would need to create an image pyramid for ECW, because, due to its
> compression
> algorithm, ECW has "natural" pyramid in it. Other formats might require
> pyramids
> however for good performance.
>
> >
> > I am on Windows and have no experience with Python, so I've installed
> > FWTools v2.4.7 from http://fwtools.maptools.org/
> > When I run gdal_retile I get this error:
> > gdal_retile.py", line 273
> >     print("Building internal Index for %d tile(s) ..." % len(inputTiles),
> > end='')
> > SyntaxError: invalid syntax
> >
> > Looking for in on Google I found this post:
> > http://old.nabble.com/gdal_retile-errors-td27916035.html
> > It seems to be some trouble between Python v2 and v3
> > The post states it has been fixed in the latest gdal_retile.py.
> >
> > So I downloaded that version and tried it, but now I'm getting even more
> > errors.
>
> I would have thought that grabbing latest gdal_retile.py should work, but I
> haven't tested. What are precisely the new errors you get ?
>
> But anyway, I'd recommand not using FWTools. It is no longer updated
> (corresponds to a developement version before GDAL 1.6.0 release). Use
> OSGeo4W
> or grab the builds you can find at http://www.gisinternals.com/sdk/ to
> use the
> latest & greatest versions.
>
> >
> > How can I get a working version of gdal_retile.py?
> > Or can I get a newer version of FWTools?
> >
> > Thanks,
> >
> > Paul Meems
> >
>
>
>
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to