Thanks for the tip.<div><br></div><div>Basically I&#39;m looking to make advantage of the GWT by having a single API that I can use on both client and server.</div><div>We could indeed have 2 implementations (one using JTS one using JSTS), but what I&#39;m mainly looking for, is what model should the API ideally follow.<br>
<br><div class="gmail_quote">2011/7/13 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Pieter,<br>
<br>
this may not directly answer your question, but you could use the<br>
existing JSTS library: <a href="https://github.com/bjornharrtell/jsts" target="_blank">https://github.com/bjornharrtell/jsts</a> - this is<br>
basically a port of the Java Topology Suite. The advantage would be<br>
that you don&#39;t need a JS wrapper - you could use JTS on the server and<br>
JSTS on the client. And if things you need are missing in JSTS, you<br>
could contribute them.<br>
<br>
Just my 2¢ - sorry if they are inappropriate.<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
On Wed, Jul 13, 2011 at 10:36 AM, Pieter De Graef &lt;<a href="mailto:piedere@gmail.com">piedere@gmail.com</a>&gt; wrote:<br>
&gt; Hi everyone,<br>
&gt; for the Geomajas project, we are looking into separating the Geometry<br>
&gt; functionality into an independent project. In other words, I am talking<br>
&gt; about a Geometry project for the Web. This code would be written in Java for<br>
&gt; GWT and thus be available on Java backends as well as client environments<br>
&gt; (we intend to add a JavaScript wrapper around the GWT code).<br>
&gt; Now the problem that I&#39;m facing here, is which model to follow....<br>
&gt; On one hand there is the Simple Feature Specification which is clearly an<br>
&gt; Object Oriented model with the advantage that it is well known but is also<br>
&gt; more difficult to implement the JavaScript wrapper around.<br>
&gt; On the other hand we could follow a service based model (more like SFS for<br>
&gt; SQL) which is easier to get up and running, easier to create a JavaScript<br>
&gt; wrapper for and easier to translate into web services.<br>
&gt; As it&#39;s difficult for us to chose and as it&#39;s a pretty crucial decision for<br>
&gt; the future of the Geomajas project, I as wondering how you guys feel about<br>
&gt; this.<br>
&gt; Kind regards,<br>
&gt; Pieter De Graef<br>
</div></div>&gt; _______________________________________________<br>
&gt; Discuss mailing list<br>
&gt; <a href="mailto:Discuss@lists.osgeo.org">Discuss@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/discuss</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
_______________________________________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.osgeo.org">Discuss@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/discuss</a><br>
</font></blockquote></div><br></div>