|
Geometry : |
Subject: [ggl] Custom polygons
From: Mateusz Loskot (mateusz)
Date: 2009-10-04 12:32:48
Barend Gehrels wrote:
> Hi Chris,
>> Is there a possibility to have custom polygons (without holes) the
>> same way as std::vector<my_custom_point> for linestrings?
>
> Yes, but...
>
> 1) You have to assign it the ring tag.
> 2) You cannot assign two different tags to the same structure. So either
> you have to make this a std::deque or so, or (probably more convenient)
> derive two different structs from your std::vector<my_custom_point> and
> register them separately. The derived structs do not have to add
> anything. Just deriving and registering must be enough.
I'm going to gather custom geometry examples on the Wiki:
http://trac.osgeo.org/ggl/wiki/User/CustomGeometryTypes
Feel free to extend.
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Geometry list run by mateusz at loskot.net