<div dir="ltr">Hi,<div><br></div><div><font face="arial, helvetica, sans-serif">You had earlier said that no changes in C++ interface is required. C<font color="#000000"><span style="font-size:13px">onsider this for an example. We want to create a precision model using the C-API using the following arguments [1] PrecisionModel</span><span style="font-size:12px;background-color:rgb(249,250,252)"> (double newScale, double newOffsetX, double newOffsetY). Now the wrapper calls [2] GeometryFactory with these arguments but it has no constructor to accept them. Or is it that GeometryFactory need not be called at all and the wrapper directly calls existing PrecisionModel interface. I was asking suggestions for this doubt which might have been missed.</span></font></font></div>

<div><font color="#000000"><span style="font-size:12px;background-color:rgb(249,250,252);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif"><br></span></font></div><div><font color="#000000"><span style="font-size:12px;background-color:rgb(249,250,252);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif">Regards,</span></font></div>

<div><font color="#000000"><span style="font-size:12px;background-color:rgb(249,250,252);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif">Varun Saraf</span></font></div><div><font color="#000000"><span style="font-size:12px;background-color:rgb(249,250,252);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif"><br>

</span></font></div><div><div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000">[1] <a href="http://geos.osgeo.org/doxygen/classgeos_1_1geom_1_1PrecisionModel.html" target="_blank">http://geos.osgeo.org/doxygen/classgeos_1_1geom_1_1PrecisionModel.html</a></font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><font color="#000000">[2] <a href="http://geos.osgeo.org/doxygen/classgeos_1_1geom_1_1GeometryFactory.html" target="_blank">http://geos.osgeo.org/doxygen/classgeos_1_1geom_1_1GeometryFactory.html</a></font></div>

<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 9:23 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, Feb 19, 2014 at 07:51:48PM +0530, Varun Saraf wrote:<br>
> On Mon, Feb 17, 2014 at 8:29 PM, Varun Saraf <<a href="mailto:varunsaraf14@gmail.com">varunsaraf14@gmail.com</a>> wrote:<br>
><br>
> > On Mon, Feb 17, 2014 at 5:10 PM, Sandro Santilli <<a href="mailto:strk@keybit.net">strk@keybit.net</a>> wrote:<br>
> ><br>
> >> On Mon, Feb 17, 2014 at 03:53:29PM +0530, Varun Saraf wrote:<br>
> >> > Hi,<br>
> >> ><br>
> >> > I am not sure if I have understood the solution, but this is what I<br>
> >> think.<br>
> >> ><br>
> >> > For exposing PrecisionModel through the C-API, we need to write a<br>
> >> function<br>
> >> > in the geos_ts_c.cpp file which takes the required arguments for the<br>
> >> > precision model. It constructs a new GeometryFactory with appropriate<br>
> >> > arguments which in turn calls PrecisionModel with those arguments.<br>
> >><br>
> >> What needs to be done is really to be decided, and deciding that is<br>
> >> part of the task. You should make an RFC document and sollicit comments<br>
> >> from this mailing list until some kind of consensus is found, basically.<br>
> >><br>
> >> Note that anything you construct in that function needs to have a way<br>
> >> to be destroyed.<br>
> ><br>
> ><br>
> >> > My doubt is what all arguments need to be passed to this C-API function<br>
> >> and<br>
> >> > is that what we are supposed to design. Also we will have to make<br>
> >> > appropriate changes to the GeometryFactory constructor.<br>
> >><br>
> >> I don't think any change in the C++ interface is required.<br>
> ><br>
> Any suggestions?<br>
<br>
</div>About what ? Which args need to be passed to a C-API function ?<br>
Are you sure is a single C-API function ?<br>
Making a plan is part of the projet...<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</div></div></blockquote></div><br></div></div>