[geos-devel] Exposing Precision model through C-API
Sandro Santilli
strk at keybit.net
Wed Feb 19 07:53:00 PST 2014
On Wed, Feb 19, 2014 at 07:51:48PM +0530, Varun Saraf wrote:
> On Mon, Feb 17, 2014 at 8:29 PM, Varun Saraf <varunsaraf14 at gmail.com> wrote:
>
> > On Mon, Feb 17, 2014 at 5:10 PM, Sandro Santilli <strk at keybit.net> wrote:
> >
> >> On Mon, Feb 17, 2014 at 03:53:29PM +0530, Varun Saraf wrote:
> >> > Hi,
> >> >
> >> > I am not sure if I have understood the solution, but this is what I
> >> think.
> >> >
> >> > For exposing PrecisionModel through the C-API, we need to write a
> >> function
> >> > in the geos_ts_c.cpp file which takes the required arguments for the
> >> > precision model. It constructs a new GeometryFactory with appropriate
> >> > arguments which in turn calls PrecisionModel with those arguments.
> >>
> >> What needs to be done is really to be decided, and deciding that is
> >> part of the task. You should make an RFC document and sollicit comments
> >> from this mailing list until some kind of consensus is found, basically.
> >>
> >> Note that anything you construct in that function needs to have a way
> >> to be destroyed.
> >
> >
> >> > My doubt is what all arguments need to be passed to this C-API function
> >> and
> >> > is that what we are supposed to design. Also we will have to make
> >> > appropriate changes to the GeometryFactory constructor.
> >>
> >> I don't think any change in the C++ interface is required.
> >
> Any suggestions?
About what ? Which args need to be passed to a C-API function ?
Are you sure is a single C-API function ?
Making a plan is part of the projet...
--strk;
More information about the geos-devel
mailing list