[gdal-dev] [WKTRaster] WKT Raster band to GDAL band

2010-03-05 Thread Jorge Arevalo
Hello, I've created a WKTRasterBand-to-GDALRasterBand conversor, in the frame of WKT Raster project. I'm not sure if the results are correct. You can get the code from here https://svn.osgeo.org/postgis/spike/wktraster/rt_core/rt_api.c, but basically, the steps are: 1.- Register GDAL/OGR drivers

Re: [gdal-dev] Re: gdal_translate not working/ windows 7 64bit?

2010-03-05 Thread Kyle Shannon
Chris, gdal_translate requires selection of a subdataset if the NetCDF file has more than one subdataset. Either specify which subdataset you want, or use -sds for all of them as Tamas did. I don't know if that will solve your problem. kss -Kyle On Fri, Mar 5, 2010 at 3:01 PM, ggp08ctl wrote

Re: [gdal-dev] Re: gdal_translate not working/ windows 7 64bit?

2010-03-05 Thread Tamas Szekeres
It works for me. Tried with http://vbkto.dyndns.org/sdk/release-1500-gdal-1-7-mapserver-5-6.zip with the following cmdline. gdal_translate -sds sresa1b_ncar_ccsm3_0_run1_21.nc sample.tif Best regards, Tamas 2010/3/5 ggp08ctl > > Hi Tamas, > > Thanks for replying. Alas, I am not terribl

[gdal-dev] Re: gdal_translate not working/ windows 7 64bit?

2010-03-05 Thread ggp08ctl
Hi Tamas, Thanks for replying. Alas, I am not terribly able when it comes to binaries and compiling programs (hence my use of osgeo4w). I have just downloaded a *.nc file from another source altogether, to try. I get the same problem, so I don't think it is specific to the gebco data. The file is

Re: [gdal-dev] gdal_translate not working/ windows 7 64bit?

2010-03-05 Thread Tamas Szekeres
Hi Chris, While I'm no aware of any specific issues related to Win7 if you provide some test data I could try your command on my Win7 x64. So as to make sure about the problem you might also want to test with the binaries available at http://vbkto.dyndns.org/sdk/ (Run sdkshell.bat for the command

Re: [gdal-dev] Georeferencing Geostationnary (+proj=geos)

2010-03-05 Thread Stéphane
So, as far as I understand: GDAL can reference image with geos projection like +proj=geos +lon_0=42 +h=35785831 +datum=WGS84 GDAL can put GeoTransformation information like -a_ullr -924124.2 5421728.5 4179561.6 3468466.1 I guess this is related to maxium / minimum latitude and longi

Re: [gdal-dev] faster way to display shapeFile

2010-03-05 Thread pcreso
Hi Pawell, A shapefile is not usually spatially indexed, and ogr cannot use the ESRI index anyway, so the entire dataset is read every time to plot it. For a large shapefile this is considerable overhead, especially when you are zoomed in & only want to render a small region. See the info her

[gdal-dev] gdal_translate not working/ windows 7 64bit?

2010-03-05 Thread ggp08ctl
Hi all, I have used gdal before (very briefly) to translate gebco bathemetry data from the netcdf file it comes as, into a tif format that I can use/ further convert in esri arcgis software. When I used gdal before (on another system) I used the osgeo4w windows version on 64bit vista, and simply

Re: [gdal-dev] faster way to display shapeFile

2010-03-05 Thread Frank Warmerdam
Paweł Byszewski wrote: Hello, I have some map in ShapeFile and I am using OGR to display it. I folow the example od OGR website: OGR C++ API Read/Write Tutorial (http://gdal.org/ogr/ogr_apitut.html). Unfortunately that way is very slow. I have map of whole

[gdal-dev] Error inserting GDAL generated GML into Oracle Spatial

2010-03-05 Thread Alex Comer
Greetings, I am attempting to store a GML file generated by GDAL/OGR (specifically by the class "OGRGMLDataSource ") into Oracle Spatial. I am getting the error message "Error converting from GML to JGeome

[gdal-dev] faster way to display shapeFile

2010-03-05 Thread Paweł Byszewski
Hello, I have some map in ShapeFile and I am using OGR to display it. I folow the example od OGR website: OGR C++ API Read/Write Tutorial (http://gdal.org/ogr/ogr_apitut.html). Unfortunately that way is very slow. I have map of whole country(only roads) and even

Re: [gdal-dev] enable GEOS support (GDAL/OGR 1.7.1; GEOS 2.3.0; VB.NET)

2010-03-05 Thread Tamas Szekeres
Hi, You might wan't to make a test with the packages available at: http://vbkto.dyndns.org/sdk/ All of those gave geos support compiled in. By downloading the SDK pacakges your could also compile gdal by yourself easily using a VS Command Prompt and type 'nmake gdal' in the SDK root directory.

[gdal-dev] Error trying to use OGR tutorial code

2010-03-05 Thread allie92187
I am trying to get some code from http://www.gdal.org/ogr/ogr_apitut.html. I modified the code slightly to use a shapefile I had containing two points since the shapefile in the code is not provided. The code below is the code taken from above website with changes marked by comments. The problem i

Re: [gdal-dev] gdal_merge.py doesn't find input files.

2010-03-05 Thread Frank Warmerdam
Luca Fasano wrote: Hi list, I'm trying to use gdal_merge.py of GDAL 1.6.3 version. I encountered some problem merging datasets represented in GDAL subdataset format (i.e. DRIVERNAME:FILENAME://SUBDATASETS). In particular I'm trying to merge two HDF5 subdatasets. In this case the script crashes re

[gdal-dev] gdal_merge.py doesn't find input files.

2010-03-05 Thread Luca Fasano
Hi list, I'm trying to use gdal_merge.py of GDAL 1.6.3 version. I encountered some problem merging datasets represented in GDAL subdataset format (i.e. DRIVERNAME:FILENAME://SUBDATASETS). In particular I'm trying to merge two HDF5 subdatasets. In this case the script crashes returning strange messa

[gdal-dev] enable GEOS support (GDAL/OGR 1.7.1; GEOS 2.3.0; VB.NET)

2010-03-05 Thread toefftoeff1
Hello, I would like to build and use OGR with GEOS support on Windows XP 32 bit using Visual Basic.NET (.NET framework 2.0 or 3.5). GDAL/OGR 1.7.1 and GEOS 2.3.0 compilation seem to work fine (using nmake, Visual Studio 2008, only warnings, no error messages). I used the following GDAL/OGR nmake

Re: [gdal-dev] SetSpatialFilter not working?

2010-03-05 Thread Spencer Gardner
That makes sense. I was using FTools so perhaps the GEOS support is not built in? Anyway, I ran it on my Linux box and the analysis part works fine. However, the features that it identifies for deletion don't actually get deleted so the file remains unchanged. (code included at bottom) Th

Re: [gdal-dev] Copy / manipulate TIFF-header

2010-03-05 Thread Sigbjorn Herstad
Using the Python-script I was able to update the SetGeoTransform and SetProjection with success. I have also done the same with a VB-script with the same result. I do not see anything wrong in the header and the file itself opens without errors. Thanks for the warning regarding bugs in the libtiff

[gdal-dev] Re: Memory access violation withGDALGetRandomRasterSample and NITF/JPEG2000

2010-03-05 Thread Jukka Rahkonen
Frank Warmerdam pobox.com> writes: > Ah, I hadn't realized mrsid was built in too. If you set the GDAL_SKIP > environment variable to JP2ECW then the JP2ECW driver will not be > registered and things should fall through to JP2MrSID. JPEG2000 is perhaps the only file format that has several driv