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

2011-08-09 Thread Peter Hopfgartner
On 08/09/2011 12:32 AM, Jean-François Gigand wrote: Hi, I am writing a PHP 5 module providing bindings for GDAL and OGR. This would be a very usefull addition to GDAL. It is GPL3-licensed and available here: http://projects.geonef.fr/projects/php5-gdal/wiki I'm wondering if it would'nt be

[gdal-dev] save raster as point-vector file

2011-08-09 Thread Mateusz Kędzior
Hello, I would like to show value of each raster cell as label. My idea (I don't know any plugin or any functionality in GDAL/OGR which allow to do it easier) is to export raster using gdal2xyz.py into coordinates-value format and then save it as vector (GML or shapefile). For this second task, I

Re: [gdal-dev] save raster as point-vector file

2011-08-09 Thread Chaitanya kumar CH
Mateusz, gdal2xyz.py creates space delimited fields. Consider running it with the -csv option to delimit it with comma. Now you can almost use it as a csv format vector file. You just need to add a header row and define a small VRT file as described in OGR's CSV driver page[1]. Run ogrinfo and

Fwd: [gdal-dev] gdalwarp under python

2011-08-09 Thread Balazs Szabó
Probably my SRS was wrong, my historical maps are in EPSG:3819, but I needed to convert this coordinates to EPSG:23700, wich has wrong parameters in open source softwares (I have to add to the proj.4 format of EPSG:23700 the following towgs parameter:

[gdal-dev] Re: How to use gdalinfo for HDF- Windows

2011-08-09 Thread Luisa Peña
Greetings This seems odd but it does not work with HDF4_EOS:EOS_GRID:C:/filepath only HDF4_EOS:EOS_GRID:filepath And if my MERIS data is not placed in my main hard disk (C:) it does not work. Anyone with some experience on this in WINDOWS? Thanks Luisa

Re: [gdal-dev] Re: How to use gdalinfo for HDF- Windows

2011-08-09 Thread Brent Fraser
Luisa, I use GDAL to access MODIS data in HDF4 on Windows like this: gdalinfo HDF4_EOS:EOS_SWATH:G:\Projects\temp\image3\MOD02HKM.A2011186.1640.005.NRT.hdf:MODIS_SWATH_Type_L1B:EV_500_RefSB So I'd suggest using double quotes around your path. Best Regards, Brent Fraser On 8/9/2011 8:24

[gdal-dev] How to register ArcSDE driver

2011-08-09 Thread L.M Tan
hi, I am interested in using *OGR *to read data from an ArcSDE (9.2-9.3) database. I have built ogr_SDE.dll,but i can not open the SDE database. This is the csharp code : Ogr.RegisterAll(); Driver sdedr = Ogr.GetDriverByName(SDE); // sdedr = null /*

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

2011-08-09 Thread Daniel Morissette
On 11-08-09 04:04 AM, Peter Hopfgartner wrote: On 08/09/2011 12:32 AM, Jean-François Gigand wrote: Hi, I am writing a PHP 5 module providing bindings for GDAL and OGR. This would be a very usefull addition to GDAL. We should add a link to it from the GDAL Wiki once the php5-gdal webpage

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

2011-08-09 Thread David Baker (Geoscience)
Frank. Thanks for the info. David Baker Sent from my iPhone On Aug 8, 2011, at 7:07 PM, Frank Warmerdam warmer...@pobox.com wrote: 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

Re: [gdal-dev] save raster as point-vector file

2011-08-09 Thread Mateusz Kędzior
Chaitanya, if I understand properly, I need to add one line to each of processed files. How I can do it quickly? Is there any option in gdal2xyz.py script? If no - what would You recommend? I think about sed utility, but it's general difficult in use. When I am thinking about Python I see only

Re: [gdal-dev] save raster as point-vector file

2011-08-09 Thread Chaitanya kumar CH
Create a text file with just the header. Use the cat command to join this file and the xyz file. $ cat HeaderFile.csv file1.csv file1.csv You can repeat this on all files in a shell script. Otherwise add the following line in the gdal2xyz.py script at line 144 [1]. dst_fh.write(

Re: [gdal-dev] How to register ArcSDE driver

2011-08-09 Thread Tamas Szekeres
Hi, Make sure to place the ogr_SDE.dll into the /gdalplugins subdirectory from where your application is running. Alternatively you can set the GDAL_DRIVER_PATH environment setting to point to the directory of the plugin dll-s Best regards, Tamas 2011/8/9 L.M Tan konglon...@gmail.com hi,

Re: [gdal-dev] save raster as point-vector file

2011-08-09 Thread Mateusz Kędzior
Hi again, is it mandatory to create such file? Regarding to information on GDAL/OGR page should I create simple text file which contains only other OGRVRTLayer name property : OGRVRTDataSource OGRVRTLayer name=test SrcDataSourcetest.csv/SrcDataSource

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

2011-08-09 Thread Jean-François Gigand
Hi, 2011/8/9 Daniel Morissette dmorisse...@mapgears.com: On 11-08-09 04:04 AM, Peter Hopfgartner wrote: On 08/09/2011 12:32 AM, Jean-François Gigand wrote: Hi, I am writing a PHP 5 module providing bindings for GDAL and OGR. This would be a very usefull addition to GDAL. We should add

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

2011-08-09 Thread Tamas Szekeres
2011/8/9 Jean-François Gigand j...@geonef.fr I decided to write this library when I got limited at using OGR/PHP (segfault crash) and noticed the latter has not been maintained for years. After trying to compile the SWIG bindings with no success, I thought a good robust C++ code would be

[gdal-dev] GDAL_DATA

2011-08-09 Thread Nikolaos Hatzopoulos
Hi, Is there any way you can define GDAL_DATA using code and not environmental variable? --Nikos Hatzopoulos ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] GDAL_DATA

2011-08-09 Thread Kyle Shannon
I believe you can use CPLSetConfigOptions() docs are here: http://trac.osgeo.org/gdal/wiki/ConfigOptions /** * * Kyle Shannon * ksshan...@gmail.com * */ On Tue, Aug 9, 2011 at 15:11, Nikolaos Hatzopoulos nhat...@gmail.comwrote: Hi, Is there any way you can define GDAL_DATA using

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

2011-08-09 Thread Jean-François Gigand
Hi Thomas, I actually noticed that initiative 2 days ago by searching the ML, posts dated from around March. If I had seen them on that time, I would have shared my code earlier. I never used SWIG. When I wondered in last December if I should leverage SWIG or write a C++ PHP extension, I chose

Re: [gdal-dev] GDAL_DATA

2011-08-09 Thread Nikolaos Hatzopoulos
Because I was looking for java is this: gdal.SetConfigOption(GDAL_DATA, /home/nikos/mygdal/data); and it is working :) thanks, --Nikos On Tue, Aug 9, 2011 at 2:13 PM, Kyle Shannon ksshan...@gmail.com wrote: I believe you can use CPLSetConfigOptions() docs are here:

Re: [gdal-dev] save raster as point-vector file

2011-08-09 Thread Chaitanya kumar CH
Mateusz, You have to change the OGRVRTLayer name property to point to the file name without the extension. Also change the SrcDataSource element. FYI, this process creates a vector file with points. gdal_polygonize produces polygons. 2011/8/10 Mateusz Kędzior matand...@gmail.com Hi again,