Re: [gdal-dev] GML elevation

2011-08-08 Thread Frank Warmerdam
On Mon, Aug 8, 2011 at 8:14 PM, Nikolaos Hatzopoulos wrote: > GDAL 1.8.1 > java -Djava.library.path=. -cp gdal.jar:build/apps ogrinfo > /home/nickhatz/my.gml  Borehole > > INFO: Open of `/home/nickhatz/my.gml' >   using driver `GML' successful. >... > elevation: Real (0.0) > driller: String (0

Re: [gdal-dev] GML elevation

2011-08-08 Thread Nikolaos Hatzopoulos
GDAL 1.7.2 ogrinfo my.gml Borehole Had to open data source read-only. INFO: Open of `my.gml' using driver `GML' successful. Layer name: Borehole Geometry: Unknown (any) Feature Count: 1 Extent: (-28.413900, 121.142000) - (-28.413900, 121.142000) Layer SRS WKT: (unknown) name: String (71.0)

Re: [gdal-dev] GML elevation

2011-08-08 Thread Frank Warmerdam
On Mon, Aug 8, 2011 at 6:39 PM, Nikolaos Hatzopoulos wrote: > System.out.println("Elevation"+poDS.GetLayerByIndex(0).GetFeature(0).GetFieldAsString("elevation")); > > ERROR 1: No such a field 'elevation' Niko, Odd, for me ogrinfo reports: ... gml_id: String (0.0) name: StringList (0.0) sampled

Re: [gdal-dev] GML elevation

2011-08-08 Thread Nikolaos Hatzopoulos
System.out.println("Elevation"+poDS.GetLayerByIndex(0).GetFeature(0).GetFieldAsString("elevation")); ERROR 1: No such a field 'elevation' I am refetching to find where in the tree is the elevation :) yes I know is expensive does it has to do with the version I am using? I am using 1.7.2 --Nikos

Re: [gdal-dev] GML elevation

2011-08-08 Thread Frank Warmerdam
On Mon, Aug 8, 2011 at 5:09 PM, Nikolaos Hatzopoulos wrote: > Hi Community, > > we have this gml data: > http://nvclwebservices.vm.csiro.au/geoserverBH/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&maxFeatures=1&typeName=gsml:Borehole > > System.out.println("Layer Count: "+poDS.GetLayerCount())

[gdal-dev] GML elevation

2011-08-08 Thread Nikolaos Hatzopoulos
Hi Community, we have this gml data: http://nvclwebservices.vm.csiro.au/geoserverBH/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&maxFeatures=1&typeName=gsml:Borehole System.out.println("Layer Count: "+poDS.GetLayerCount()); System.out.println("Layer Name: "+poDS.GetLayerByIndex(0).GetName());

Re: [gdal-dev] C# OGR Modify Shapefile

2011-08-08 Thread Frank Warmerdam
David, With the latest GDAL/OGR you can add fields to an existing shapefile, add records and delete records. I'm not certain if all those capabilities were available in the last FWTools build or not. I will note that deleted shapes aren't completely deleted until you repack the file. There shou

[gdal-dev] C# OGR Modify Shapefile

2011-08-08 Thread David Baker (Geoscience)
All, Using the C# dll's that come in Frank's FWTools, is it possible to add, delete and modify records in a Shapefile, or do I need to create a new Shapefile with the changes? Thanks, David David M. Baker Senior Geologist - Chief Technology Advisor Chesapeake Energy Corporation 405-935-3715 of

[gdal-dev] New PHP bindings - php5-gdal

2011-08-08 Thread Jean-François Gigand
Hi, I am writing a PHP 5 module providing bindings for GDAL and OGR. It is GPL3-licensed and available here: http://projects.geonef.fr/projects/php5-gdal/wiki It is far from complete, bindings are available for about a third of the C++ interfaces. I have been working on/with it for 8 months yet,

Re: [gdal-dev] help resampling raster to coarser scale

2011-08-08 Thread Etienne
Vincent, I have tried your workaround, and it works with gdal_translate, with the following restriction: 1)  with gdal_translate -outsize option, the dimensions of the input raster MUST be a multiple of the desired resolution (or modified with srcwin),  or else the output resolution will be  mo

Re: [gdal-dev] gdalwarp under python

2011-08-08 Thread Balazs Szabó
Thank you Vadim! I tried the .GCPsToGeoTransform() method, and it is ok, but in the geotransform tuple (geotransform[0],geotransform[3] ) gave me fake starting point. Anyway, your python programs are very useful! ( I am a self made programmer, so those py files are very helpful for me!). Best re

Re: [gdal-dev] gdalwarp under python

2011-08-08 Thread Vadim Shlyakhov
Hi Balazs, On Thu, Aug 4, 2011 at 3:56 PM, Balazs Szabó wrote: > Dear list! > > How can I use this two bash command with gdal-python bindings? > > gdal_translate -of GTiff  -a_srs EPSG: -gcp 775 560 20.58329 48.12650 > -gcp 9518 539 20.8329 48.12650  -gcp 9525 7136 20.83329 48.00150  -gcp 758