[gdal-dev] ogr2ogr: dxf to postgis, is it possible to record dxf filename?

2013-05-13 Thread Pietro Rossin
Hello all I must convert lots of dxf files to a postgis table I wrote a python script to process a folder/subfolder and then create a table into a postgis database and to load there all the features coming from each dxf. This script handle each single dxf file so I can track its name during the loo

[gdal-dev] gdaladdo errors for overviews on vrt file

2013-03-06 Thread Pietro Rossin
Hi all I'm trying to make overviews on a vrt file. Windows XP x32, dual opteron 4Gb RAM, Osgeo4W. This file is a virtual dataset, a mosaic of 993 tiff images 1bit b/w. gdalinfo for one of these tiff is: Driver: GTiff/GeoTIFF Files: 109021.tif

Re: [gdal-dev] gdaladdo very slow

2013-02-28 Thread Pietro Rossin
Hello I must mosaic and compress many 1 bit images that should be used mainly by qgis users and ArcGIS users. After many attempts I have mosaicked them (983 images/998Mb) by this procedure 1) make a vrt mosaic gdalbuildvrt -hidenodata -srcnodata “0” -vrtnodata "0" test.vrt *.tif 2) make a geotiff

Re: [gdal-dev] gdaladdo don't seem to work..

2013-02-26 Thread Pietro Rossin
Ok, I found the answer for the aux/rrd pyramid here http://lists.osgeo.org/pipermail/gdal-dev/2008-August/017850.html Now I'm trying Bie 2013/2/26 Pietro Rossin > Hello Jukka > thanks for your reply > The axe file I think isn't necessary. > If I delete it qgis can open a

Re: [gdal-dev] gdaladdo don't seem to work..

2013-02-26 Thread Pietro Rossin
Hello Jukka thanks for your reply The axe file I think isn't necessary. If I delete it qgis can open and use pyramids... I got a good compromise between render and pyramid dimension with this command gdaladdo -r nearest --config COMPRESS_OVERVIEW deflate --config USE_RRD YES test.tif 4 16 32 64 I

Re: [gdal-dev] gdaladdo don't seem to work..

2013-02-26 Thread Pietro Rossin
I was wrong, it was working slow. But at the end it leaves a big file with extension .axe. Is this necessary? I know pyramids are inside the .aux file.. Thank you Pietro 2013/2/25 Pietro Rossin > Hi all > I'll like to add overviews to a 1 bit geotiff > > the gdalinfo

[gdal-dev] gdaladdo don't seem to work..

2013-02-25 Thread Pietro Rossin
Hi all I'll like to add overviews to a 1 bit geotiff the gdalinfo for this tiff is: *** Driver: GTiff/GeoTIFF Files: test.tif test.tfw test.aux Size is 292042, 284413 Coordinate System is `' Origin = (2311161.56486059590,5168752.55830754340

[gdal-dev] Best way to mosaic and compress lots of tiff Black/white?

2012-11-13 Thread Pietro Rossin
Hello all I have ~1000 tiff/tfw RGB but with only 0 or 255 color value in all bands (black/white). I want to mosaic them in a single image to be used in qgis and other gis software. Which is the best way to do this? And to compress the resulting image? May be Tiff?? Single band?? Another problem i

Re: [gdal-dev] Help on using Ogr2ogr to load dxf data to postgis

2012-10-16 Thread Pietro Rossin
After googlin' around I get an answer myself.. This is the string I use to load a dxf file to postgis without any Layer that begin with "X": ogr2ogr --config DXF_INLINE_BLOCKS FALSE --config DXF_MERGE_BLOCK_GEOMETRIES FALSE -f "PostgreSQL" PG:"host=localhost user=postgres dbname=mydb password=myP

[gdal-dev] Help on using Ogr2ogr to load dxf data to postgis

2012-10-15 Thread Pietro Rossin
Hello I wrote this question to Postgis user forum and they bounced me to this group, so I hope to be more lucky this time.. I'm trying to load a thousand dxf files to postgis using ogr2ogr (windows xp postgres9/postgis2). the syntax I use is: ogr2ogr --config DXF_INLINE_BLOCKS FALSE --config