Hello,
I try to transform coordinates between 2 projections.
But when I pass this line :
SpatialReference spaceRef1 = new SpatialReference("");
I get a P/Invoke exception...
I've downloaded the FWtools 247
I've add to my project all the dll in the directory C:\ Program Files (x86)
\FWTools
Anybody can help me please ?
I feel that the SHPWriteObject() write a bad way in the file.
Do you think it could come from compiler ? I use Borland C++ 6
When I edit the file in text editor it seems good, the length of the file is
1904
But when I read file with SHPOpen() the psSHP
Sorry, I forgot to tell you that I used SHPReadOGRObject for read the
SHPObject.
put it at the beginning of the code of previous mail
SHPHandle hSHP = SHPOpen(chemin.c_str(),"rb");
SHPObject *psShape = SHPReadObject(hSHP,0);
OGRGeometry *poPoly = SHPReadOGRObject(hSHP, 0,psShape);
Hello I try to draw a polygon from shapefile on geoconcept.
But the points that I get are corrupted.
Strangely a shapefile with no prj, and one ring in WGS84 works.
Here I try with a prj with lambert 2 extend projection.
The shapefile contains 2 rings.
See my code below.