Re: [gdal-dev] TIFF with different KEYS_DS

2011-05-24 Thread Jorge Martin
Many thanks for your answers!!! Now I am developing a library that handles TIFF and geoTIFF, but I have noted that I need to include RPCCoefficientTag to the TIFF file. Searching on the internet I have found that this tag is not suported by geoTIFF spec 1.0, it is only suported by gdal. Is this

Re: [gdal-dev] TIFF with different KEYS_DS

2011-05-24 Thread Frank Warmerdam
On 11-05-24 07:35 AM, Jorge Martin wrote: Many thanks for your answers!!! Now I am developing a library that handles TIFF and geoTIFF, but I have noted that I need to include RPCCoefficientTag to the TIFF file. Searching on the internet I have found that this tag is not suported by geoTIFF spec

[gdal-dev] gdalinfo: corner coords in other projection

2011-05-24 Thread Lefman, Jonathan ERDC-TEC-VA
Hi all, Is there an executable utility that takes the corner coordinates from a gtiff and translates them into another projection system? For example, I have a gtiff in UTM and I want to translate the coordinates of the bounding box (or corners) into WGS84. Or is there a way to do this

Re: [gdal-dev] gdalinfo: corner coords in other projection

2011-05-24 Thread Eli Adam
Jon, gdaltransform does some of this. It looks to do 4 corners you would need to do it four times or list the coordinate pairs on four lines and get four lines of output back. There might be a clever way to take the output of gdalinfo as input into gdaltransform saving you some

Re: [gdal-dev] TIFF with different KEYS_DS

2011-05-24 Thread Jorge Martin
Many Thanks Frank, I have insert the RPCCoeffcientTag to the file. Is any comercial software that could read this TAG? In order to check the implementation I need open the file with a comercial software. I have tried with ENVI but it does not recognize the format. Best Regards,

[gdal-dev] Re: gdalinfo: corner coords in other projection

2011-05-24 Thread Hermann Peifer
On 24/05/2011 18:15, Lefman, Jonathan ERDC-TEC-VA wrote: Hi all, Is there an executable utility that takes the corner coordinates from a gtiff and translates them into another projection system? For example, I have a gtiff in UTM and I want to translate the coordinates of the bounding box (or

[gdal-dev] overwrite shapefile

2011-05-24 Thread Ramiro Gonzalez
hello I want to overwrite a shapefile using ogr(c++). If the dbf file in the destination shapefile is already open by anather program(exel), the operation fails in the middle and only the shp and shx files are updated. How could I check, using OGR, if the dbf(or any other file in the shapefile)

[gdal-dev] OGR equivalent to ARCpy MakeFeatureLayer

2011-05-24 Thread Jay L.
I have a script, written to use ESRI's ArcPy, which I am attempting to re-write using the ogr/gdal python bindings. One of the parameters that I can pass to ESRI's MakeFeatureLayer function is an SQL Query. This creates a featurelayer (in memory) which contains only those rows which meet the

[gdal-dev] Re: Convert vector to raster with colored polygons

2011-05-24 Thread spiderplant0
Hi, Thanks for the reply. When I tried this first, the image was displaying just black and white. But after some experimentation I discovered that '-ot Byte' with gdal_rasterize gave polygons colored various shades of grey - though not related to my attribute - seemed to be random. I dont

Re: [gdal-dev] Re: Convert vector to raster with colored polygons

2011-05-24 Thread Chaitanya kumar CH
spiderplant0, 1. First, make sure the attribute value field contains a single value for each color, starting from one. 2. Run gdal_rasterize after adding the option '-init 0' to your original options. This option makes sure that the background pixels are initialized to zero. You will get a

Re: [gdal-dev] OGR equivalent to ARCpy MakeFeatureLayer

2011-05-24 Thread Chaitanya kumar CH
Jay, You can do all the stuff using OGR's SQL engine. OGR also supports memory layers. Refer to GDAL's RFC 28 [1], and the test scripts [2] [3] [1]: http://trac.osgeo.org/gdal/wiki/rfc28_sqlfunc [2]: http://trac.osgeo.org/gdal/browser/trunk/autotest/ogr/ogr_sql_rfc28.py [3]:

Re: [gdal-dev] overwrite shapefile

2011-05-24 Thread Chaitanya kumar CH
Ramiro, You can use the OGRLayer::TestCapability() method to check write capability of a layer. However, there are going to be errors if another process accesses the files in the mean while. When ogr2ogr is executed with -append, -overwrite or --update options, it should error out with the