[gdal-dev] intersecting two shapefiles in OGR C API

2012-06-15 Thread Mutlu Ozdogan
Hello All, I am writing a C code that reads in two shapefiles with very large number of polygons and intersects them and writes the intersect results to a new output shapefile. I am able to read in the files but I am stuck reading the contents of the two input shapefiles, intersecting them a

Re: [gdal-dev] netcdf driver does not support VSIFILE

2012-06-15 Thread Etienne Tourigny
On Fri, Jun 15, 2012 at 12:44 PM, Even Rouault wrote: > Selon Etienne Tourigny : > >> All VSIFILE interfaces (/vsicurl/ , /vsigzip/ , etc.) do not work with >> the netcdf driver. >> >> As the netcdf driver uses libnetcdf, I'm not sure the driver can be >> modified to use the "large file API". >> >

Re: [gdal-dev] netcdf driver does not support VSIFILE

2012-06-15 Thread Even Rouault
Selon Etienne Tourigny : > All VSIFILE interfaces (/vsicurl/ , /vsigzip/ , etc.) do not work with > the netcdf driver. > > As the netcdf driver uses libnetcdf, I'm not sure the driver can be > modified to use the "large file API". > > Can someone comment on this? > > The GTiff driver support VSI,

[gdal-dev] netcdf driver does not support VSIFILE

2012-06-15 Thread Etienne Tourigny
All VSIFILE interfaces (/vsicurl/ , /vsigzip/ , etc.) do not work with the netcdf driver. As the netcdf driver uses libnetcdf, I'm not sure the driver can be modified to use the "large file API". Can someone comment on this? The GTiff driver support VSI, how is this done given that the driver us

[gdal-dev] convert .tif/.tfwx/.aux.xml to a geotiff?

2012-06-15 Thread Martin Ouellet
Hi, I manually georeferenced some images in ArcGIS and at the end, I got a .tfwx file and a aux.xml. I wish to convert them into geotiff with the georeferenced info in the header: 1) I've renamed the .tfwx into .tfw and run a gdal_translate. The command didn't failed but the resulting image is

Re: [gdal-dev] GDAL GeoTiff tegs problem

2012-06-15 Thread Etienne Tourigny
To make sure it's recognized as WGS84 datum/spheroid you should use SetWellKnownGeogCS("WGS84") instead of SetGeogCS(...), and no need for convertToRadians Also, the arguments to SetGeogCS() are probably optional in your case This might solve this problem and the other one you sent in another em

[gdal-dev] How to write more stuff of GeoKeys?

2012-06-15 Thread Pavel Rudchenko
Hello, people! My task is to write more GeoKeys tegs to GeoTiff file. How can do it with the GDAL (C# wrapper)? Fow example, I can't write GeoKeys "GeogEllipsoidGeoKey", "GeogSemiMajorAxisGeoKey", "GeogSemiMinorAxisGeoKey", and others. Maximum keys that I can do with GDAL is: Keyed_Information:

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-15 Thread Etienne Tourigny
That file does not use the "bigfile" flag, but it is probably a netcdf-4 file (with hdf5 storage). Regardless, "bigfiles" are supported since gdal-1.9.0 on 32-bit platforms. I would guess your netcdf and gdal installation do not have netcdf-4 support. And probably a 'gdalinfo ' shows the hdf5 dri

Re: [gdal-dev] Cannot read NetCDF subdatasets

2012-06-15 Thread Free
Paolo, I had a similar issue with 32b system with some NetCDF files with "bigfile" flag. We should use (if I remember correctly) 64b system. Regards, Y. Le vendredi 15 juin 2012 12:10:57 Paolo Corti a écrit : > Hi all > > While I can succesfully read NetCDF in Mint 12 (my development > enviro

[gdal-dev] Cannot read NetCDF subdatasets

2012-06-15 Thread Paolo Corti
Hi all While I can succesfully read NetCDF in Mint 12 (my development environment), I cannot manage to read the subdatasets in REL5 (the production server). In REL5 I can succesfully read the NetCDF dataset with gdalinfo: gdalinfo /my/full/path/mydataset.nc4 But if I try reading a subdataset, I

Re: [gdal-dev] to store a shapeFile with the following code getting problem assigning goemetries in translateLayer Function

2012-06-15 Thread Mateusz Loskot
Read this first: http://www.catb.org/~esr/faqs/smart-questions.html Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] to store a shapeFile with the following code getting problem assigning goemetries in translateLayer Function

2012-06-15 Thread SIVA RAMA KRISHNA
#include "main.h"#include "ogrsf_frmts.h"#include "ogr_p.h"#include "cpl_conv.h"#include "cpl_string.h"#include "ogr_api.h"#include "gdal.h"static int TranslateLayer(OGRLayer *poPassedLayer,OGRDataSource *ODS,char *pszNewLayerName,int eGType);int main( ){ const char *pszFormat = "ESRI Shapefil

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character [SOLVED]

2012-06-15 Thread Jukka Rahkonen
Jeff McKenna gatewaygeomatics.com> writes: > > On 12-06-13 10:46 AM, Jukka Rahkonen wrote: > > > > Next trouble: I would now take the data back from PostGIS into Spatialite > > (it > > was much faster to do some processing with PostGIS) but the happens again: > > my > > non-ascii characters a

[gdal-dev] GDAL GeoTiff tegs problem: how to set GeogPrimeMeridianGeoKey?

2012-06-15 Thread Pavel Rudchenko
Hello, I have second question. How to set geo-tag GeogPrimeMeridianGeoKey? Now it isn't created. My GDAL code is: SpatialReference oSrs = new SpatialReference(null); oSrs.SetUTM(30, 1); Double convertToRadians = Double.Parse(Osr.SRS_UA_DEGREE_CONV, CultureInfo.InvariantCulture.NumberFormat); oSr

[gdal-dev] GDAL GeoTiff tegs problem

2012-06-15 Thread Pavel Rudchenko
Hello! I create GeoTiff files with GDAL library (.net wrapper). All right, but some geo-tags not setted. For example, GeogCitationGeoKey (Ascii,1): "" But shall be: GeogCitationGeoKey (Ascii,6): "WGS84" My vode to set geo-data is: SpatialReference oSrs = new SpatialReference(null); oSrs.SetUTM(30