[gdal-dev] gdal warp of a shapefile

2010-08-05 Thread Giacomo Piva
Hi all, I have a somple and fast question: is it possible to execute a gdalwarp command on a shapefile? how? Thank you -- Giacomo ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Merging shapefile

2010-08-05 Thread Giacomo Piva
Hi all, I need to merge two shapefile, is it possible with GDAL ? Thank you -- Giacomo ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] ogr2ogr clipping shapefile

2010-08-06 Thread Giacomo Piva
Hi all, I need to cut a shapefile usins as bounding box another shapefile. Does someone can explain me how to do that with ogr2ogr? Thank you very much -- Giacomo ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listin

Re: [gdal-dev] Copy only georeference between two images

2010-09-14 Thread Giacomo Piva
tion. They represent the same scene, their sizes are identical, but one of them has a correct UTM georeferentiation and the second one hasn't. In which way can I copy and paste the correct georeferentiation from one to another? Thanks in advance. -- Giacomo Piva MEEO S.r.l. Via Saragat

[gdal-dev] raster resize

2010-10-15 Thread Giacomo Piva
Hi all, I would like to resize the dimension of a raster like the gdal_translate tool with "-outsize" option. I took a look into the gdal_translate.cpp source file but I didn't understand how it works, I can't find the resize operation lines. Does someone can help me to understand it? Thank y

Re: [gdal-dev] raster resize

2010-10-15 Thread Giacomo Piva
Thank you Even, this solve my problem. On 10/15/2010 10:49 AM, Even Rouault wrote: Selon Giacomo Piva: Giacomo, gdal_translate doesn't do the hard work itself and lets other part of GDAL do it. To be more precise, the resizing of the raster in the context of gdal_translate is done th

[gdal-dev] Help with import gdal import in python

2011-02-09 Thread Giacomo Piva
Hi all, I'm getting this error when calling gdal_merge.py command. Traceback (most recent call last): File "/home/meeo/bin/gdal_merge.py", line 31, in ? import gdal File "/usr/lib/python2.4/gdal.py", line 7, in ? import _gdal ImportError: No module named _gdal I don't know python 'c

Re: [gdal-dev] Help with import gdal import in python

2011-02-09 Thread Giacomo Piva
Frank, Thanks for your reply, I solved my problem by recompiling GDAL with --with-python option. Thanks. On 02/09/2011 05:40 PM, Frank Warmerdam wrote: On 11-02-09 11:23 AM, Giacomo Piva wrote: Hi all, I'm getting this error when calling gdal_merge.py command. Traceback (most recent

[gdal-dev] Image segmentation

2009-04-21 Thread Giacomo Piva
Hi All, I'm looking for a function that create an image segmentation. Is there a function in the GDAL collection that permit to do that? Thanks -- Giacomo Piva. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/ma

[gdal-dev] Area intersection

2009-08-03 Thread Giacomo Piva
Hi All, I'm trying to get georeferencing information from a GeoTIFF file in order to find if there is an intersection between two images. Does someone can help me in this stuff? What should i do? Thanks. -- Giacomo Piva ___ gdal-dev mailing

Re: [gdal-dev] Area intersection

2009-08-03 Thread Giacomo Piva
I found some useful instruction on how to use the GDALGetGeoTransform() function to get the affine transformation coefficients and how use them, but now, I need to get the UTM time zone too. Does someone can help me? Hi All, I'm trying to get georeferencing information from a GeoTIFF file in

Re: [gdal-dev] Area intersection

2009-08-03 Thread Giacomo Piva
I know, but I'm writing a C application and I need to get it by code. You can display it with gdalinfo 'filename' -- Giacomo Piva ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Area intersection

2009-08-04 Thread Giacomo Piva
on related methods: http://www.gdal.org/ogr/classOGRGeometry.html -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Giacomo Piva Sent: Monday, August 03, 2009 3:22 AM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] Area inters