[postgis-users] gdal2wktraster.py wildchar not working
Sebastian E. Ovide
sebastian.ovide at gmail.com
Thu Jul 22 09:45:23 PDT 2010
Hi Jorge,
running the same gdal2wktraster script with those options that have
suggested have fixed the error...
i.e:
sebas at SeansPC:~/rasters$ time ./gdal2wktraster.py -k 512x512 -s 81989 -I -r
raster/ -t sebastable -o ok.sql
./gdal2wktraster.py:727: DeprecationWarning: integer argument expected, got
float
hexwkb += wkblify(pt2fmt(pixtype), nodata)
that means that if the image is too big, "-k is mandatory" (probably it
should be set with some default...)
I have to go now.. if it gives any error I'll let you know !
thanks
2010/7/22 Jorge Arévalo <jorge.arevalo at deimos-space.com>
> Hi Sebastian,
>
> On Wed, Jul 21, 2010 at 6:35 PM, Sebastian E. Ovide
> <sebastian.ovide at gmail.com> wrote:
> >> Also, normally you will also want to retile your smaller rasters with
> the
> >> –k option to tiles (something like 100x100 or 200x200), specify the
> >> reference system with the –s option and create an index with the –I
> option.
> >> Did you read the tutorial?
> >>
> >>
> >
> > it should not matter for gdal2wktraster.py right ?
> >
>
> Could you please provide a link to download the big raster that caused
> the first problem in Linux? We're trying to reproduce it, in the same
> conditions. You should be able to deal with big rasters by splitting
> them into small blocks by using -k option to specify the size of the
> blocks, and -I option to create an index, without using any other tool
> before.
>
> About the wildcard problem, we're working on it too. Thanks for reporting
> it.
>
> Best regards,
> Jorge
>
> >>
> >> Pierre
> >>
> >>
> >>
> >> From: postgis-users-bounces at postgis.refractions.net
> >> [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
> >> Sebastian E. Ovide
> >> Sent: 21 juillet 2010 04:15
> >> To: PostGIS Users Discussion
> >> Subject: [postgis-users] gdal2wktraster.py wildchar not working
> >>
> >>
> >>
> >> Hi All,
> >>
> >> as gdal2wktraster.py has a bug that prevents importing big rasters, I
> have
> >> split the raster using
> >>
> >> gdal_retile.py -v -ps 10000 10000 -targetDir test test.png
> >>
> >> I created a lot of tif files...
> >>
> >> then I've tried to create a sql with this:
> >>
> >> ./gdal2wktraster.py -r test/*.tif -t newtable -o newtable.sql
> >>
> >> and gdal2wktraster.py read only 1 file:
> >>
> >> sebas at SeansPC:~/rasters$ ./gdal2wktraster.py -r test/*.tif -t newtable
> -o
> >> newtable.sql
> >> ------------------------------------------------------------
> >> Summary of GDAL to WKT Raster processing:
> >> ------------------------------------------------------------
> >> Number of processed raster files: 1 (test/test_01_01.tif)
> >> List of generated tables (number of tiles):
> >> 1 newtable (1)
> >>
> >>
> >> any other easy way to import big rasters ?
> >>
> >>
> >>
> >> --
> >> Sebastian E. Ovide
> >>
> >>
> >>
> >> _______________________________________________
> >> postgis-users mailing list
> >> postgis-users at postgis.refractions.net
> >> http://postgis.refractions.net/mailman/listinfo/postgis-users
> >>
> >
> >
> > --
> > Sebastian E. Ovide
> >
> >
> >
> >
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> >
> >
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
--
Sebastian E. Ovide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100722/3cfd72ad/attachment.html>
More information about the postgis-users
mailing list