|
Geometry : |
Subject: [ggl] transform linestring into a ring
From: Bruno Lalande (bruno.lalande)
Date: 2011-04-13 12:52:56
Hi,
To view a model of a concept as a refinement of that concept is not safe in
> general, but based on runtime information or knowledge of the programmer
> than the invariant of the refinement is true it is a very useful capability.
> In Polygon I provide the view_as template function that returns a view_of
> wrapper type.
>
> template<typename concept_type, typename object_type>
> view_of<concept_type, object_type>
> view_as<concept_type>(object_type& obj);
>
That's exactly what I was about to propose, sounds like a very useful
addition indeed. Let's add it when we'll have time.
Regards
Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20110413/9e55e633/attachment.html
Geometry list run by mateusz at loskot.net