[postgis-users] gdal2wktraster.py wildchar not working

Sebastian E. Ovide sebastian.ovide at gmail.com
Wed Jul 21 09:35:33 PDT 2010


Hi Pierre

On Wed, Jul 21, 2010 at 4:26 PM, Pierre Racine
<Pierre.Racine at sbf.ulaval.ca>wrote:

>  Sabastian,
>
>
>
> This is strange… They are all in the same folder? How many there are? As a
> test, does it work if there is only 2?
>
>
sebas at SeansPC:~/rasters$ ls -l test/ | wc -l
188

sebas at SeansPC:~/rasters$ ls test/
test_01_01.tif  test_02_11.tif  test_04_10.tif  test_06_09.tif
test_08_08.tif  test_10_07.tif  test_12_06.tif  test_14_05.tif
...
test_02_10.tif  test_04_09.tif  test_06_08.tif  test_08_07.tif
test_10_06.tif  test_12_05.tif  test_14_04.tif  test_16_03.tif

with only 2... NOP, same result (I've copied 2 of the same size... just in
case)




>
>
> Where did you get WKT Raster? Do you have the last version?
>
>
from a binary version for Windows... as I've installed it on windows.. then
copied it to Linux

>
>
> What if you do: gdal2wktraster.py --version
>
>
>

 sebas at SeansPC:~/rasters$ ./gdal2wktraster.py --version
gdal2wktraster.py $Revision: 5692 $


If you could reduce the big raster to a smaller one which repeat the
> original bug and provide it to us use it would be very useful.
>
>
>
> 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 ?


>  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100721/a1ecde70/attachment.html>


More information about the postgis-users mailing list