[Gdal-dev] hi, does GDAL supports shapefile?
Frank Warmerdam
warmerdam at pobox.com
Mon Jan 16 08:45:46 EST 2006
On 1/16/06, Jason <jason.wangz at gmail.com> wrote:
> 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?
Jeshua,
Currently the implementation of this method looks like:
/************************************************************************/
/* PointOnSurface() */
/************************************************************************/
int OGRPolygon::PointOnSurface( OGRPoint * ) const
{
// notdef ... not implemented yet.
return OGRERR_FAILURE;
}
that is, there is no implementation.
The intention was that you would pass in a pointer
to an existing OGRPoint object, and this would be
reinitialized with a point on the surface.
I think I had expected to implement this using GEOS
but looking know I don't see an obvious way to implement
it using the GEOS C API. Perhaps I could use the centroid
function, but it isn't clear to me that the centroid is guaranteed
to be on the surface.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list