Re: [gdal-dev] C# version of ogr2ogr function

2013-06-27 Thread Tamas Szekeres
Make sure to copy all the dll-s from the /bin and /bin/gdal/csharp directories into you application directory, or make the location of this files available in the PATH environment variable. Best regards, Tamas 2013/6/28 Genhan Chen > Hi Tamas, > > I am using pre-compiled *ogr_csharp.dl*l, d

[gdal-dev] Need solution for C# exception: OSGeo.OGR.OgrPINVOKE

2013-06-27 Thread Genhan Chen
I am using ogr_csharp.dll in my c# program. See the following code snippet: using OSGeo.OGR; namespace Test { public class Test { public Test() { ... Ogr.RegisterAll(); } } } Then the following exception message was thrown out

Re: [gdal-dev] C# version of ogr2ogr function

2013-06-27 Thread Genhan Chen
Hi Tamas, I am using pre-compiled ogr_csharp.dll, downloaded from http://vbkto.dyndns.org/sdk/ . I added "using OSGeo.OGR" in front of the class. and did not see any error during build process. However, I got the following error message if any Ogr method (e.g. " Ogr.RegisterAll();") was added i

[gdal-dev] OGRSpatialReference::autoIdentifyEPSG and the pcs.csv table

2013-06-27 Thread David Strip
After an admittedly quick skim of the code base, it appears that the pcs.csv file is used only to go from an EPSG to the parameters for a spatial reference. If my reading is right, then it is not used to go from a WKT to an EPSG. The autoIdentifyEPSG works for a few special cases, but otherwise

Re: [gdal-dev] pcs.csv values don't match spatialreference.org

2013-06-27 Thread David Strip
SInce posting this, I've learned that the pcs.csv is in degree.minutes, while the wkt is in decimal degrees, so that explains the pcs.csv. This still leaves the question as to why autoIdentifyEPSG won't return the value. On 6/26/2013 11:44 PM, David Strip wrote: I'm working with some files in M

[gdal-dev] gdalwarp for affine transformation?

2013-06-27 Thread Agustin Lobo
Is it possible to warp a raster using a 6 parameters transformation? I've found that I can set gcp and the order of the polynomial in gdal_transform and then use gdalwarp to apply the polynomial, but is it possible to set the transformation matrix? Thanks Agus