Hello,
I've tried to develope the program that create a shape file with polygons.
But the GIS open the shp but there is nothing inside only the attributes,
not the polygons. I have the code from Python but I do not know the problem.
Here I paste the code:
int write_shapefilePolygon() {
const c
Hello Frank,
I have made your change and it works, I can open the .shp with my GIS. Many
thanks for your help.
Best Regards,
Jorge
2011/1/18 Frank Warmerdam
> On 11-01-18 11:28 AM, Jorge Martin wrote:
>
>> OGRPolygon myPoligon;
>>
>> tmp = strtok (Line, ":");
>>
>> szName = string (tmp);
>>
On 11-01-18 11:28 AM, Jorge Martin wrote:
OGRPolygon myPoligon;
tmp = strtok (Line, ":");
szName = string (tmp);
while (tmp != NULL)
{
OGRLinearRing MyRing;// = (OGRLinearRing*)
OGRGeometryFactory::createGeometry(wkbLinearRing);
tmp = strtok (NULL, ",");
Hello,
I've tried to develope the program that create a shape file with polygons.
But the GIS open the shp but there is nothing inside only the attributes,
not the polygons. I have the code from Python but I do not know the problem.
Here I paste the code:
int write_shapefilePolygon() {
const c
Hi,
Thank you very much in advance. I am developing with C++, but I will try to
understand the code. I think it will easy.
Thank you.
Jorge
El 17/01/2011, a las 18:18, Paolo Corti escribió:
>> I`m new developing software with GDAL and OGR libraries. I has used the code
>> from the OGR web t
> I`m new developing software with GDAL and OGR libraries. I has used the code
> from the OGR web that read and write a shapefile (points). What I really
> want is to read and write shapefiles with polygons.
Hi Jorge
if you are using Python this [0] is the best resource out there.
Look at the samp
Hi,
I`m new developing software with GDAL and OGR libraries. I has used the code
from the OGR web that read and write a shapefile (points). What I really
want is to read and write shapefiles with polygons.
There is any code that could help me to begin this program?
Many Thanks,
Jorge