[gdal-dev] Re: C GDAL beginner

2010-03-03 Thread deadpickle
h" #include "ogr_srs_api.h" #include "stdio.h" int main() { //~ variable declaration const char *name = "testc.shp", *dir = "C:\\Users\\deadpickle\\Desktop \\case study\\verify\\"; char *source, *target; const char *sprj

[gdal-dev] Driver pointer NULL

2010-03-03 Thread deadpickle
ver. When I compiled it I linked it to the libgdal.a library. Is there something I'm missing? #include "ogr_api.h" #include "ogr_srs_api.h" #include "stdio.h" int main() { //~ variable declaration const char *name = "testc.shp", *dir =

[gdal-dev] Re: C GDAL beginner

2010-03-02 Thread deadpickle
: passing argument 2 of â €˜OCTNewCoordinateTransformation’ discards qualifiers from pointer target type On Mar 2, 10:48 pm, brian wrote: > deadpickle, > > The types in the OGR C api pretty much end in H. > > OGRCoordinateTransformation ctrans; > should read > OGRCoordinate

[gdal-dev] C GDAL beginner

2010-03-02 Thread deadpickle
I'm trying to write a simple C program that creates and populates a shapefile (have one done in python). I'm very new to C and GDAL both and could use some help. I'm trying to apply coordinatetransformation to my points but first I have to create the coordinatetransformation. In python I can do thi

[gdal-dev] Re: Transform not working

2010-03-01 Thread deadpickle
gt; driver = ogr.GetDriverByName('ESRI Shapefile') > #~ set workspace > ws = 'C:\\Users\\deadpickle\\ > Desktop\\case study\\verify\\' > os.chdir(ws) > > #~ check if it exists > if os.path.exists('test.shp'): >     driver.DeleteDataSource('te