[Gdal-dev] hi, does GDAL supports shapefile?

Jason jason.wangz at gmail.com
Mon Jan 16 03:35:19 EST 2006


hi, thanks for the replies.

I have another problem.
As for OGRPolygon Class Reference, there has a method name: virtual
int  PointOnSurface (OGRPoint *poPoint) const

Is this method provides a polygon point array? But how can I know
about the total number of OGRPoint objects in this point array?

Thanks.

2006/1/16, Jeshua Lacock <jeshua at openosx.com>:
>
> On Jan 15, 2006, at 7:37 PM, Jason wrote:
>
> > Hi, I am a fresh man in using GDAL. I read the document of GDAL, found
> > that shapefile (.shp) seems doesn't supported by GDAL. And I also try
> > used GDALOpen () to open a shapefile file, but got errors. Does GDAL
> > (gdal v1.22 )supports read/write of shapefile?
>
> The OGR branch of GDAL handles all of the vector formats, and .shp is
> supported. This example command will convert the specified .shp file to
> OGR format:
>
>     ogr2ogr -f GML  contours.gml contours/contour.shp
>
>
> Cheers,
>
> Jeshua Lacock ___________________________
> Programmer/Owner                Phone:  877.240.1364
> http://OpenOSX.com              Fax:            415.462.6211
> -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
>
>




More information about the Gdal-dev mailing list