Hi Adrian,
YES i am confused, i have the JTS geometries in my libraries folder and
version 1.8 installed but every time i try to create a new object such as
GeometryFactory g= new GeometryFactory(); i keep getting the errors of
cannot find symbol. I have the jar file,the import statement as import
com.vividsolutions.jts.geom.Geometry;
and it is being shown on my NB. The problem i'm getting is that everytime i
create an object it shouts back at me. I mean i do not know where i am going
wrong here!! I can't seem to find examples on the wiki?
Thanks
Hey,
You seem royally confused between JTS geometries and ISO geometries
which is not really your fault since they unfortunately all share
objects of the same names. ISO geometry is a work in progress and not
usable for day to day work. It's not yet even clear how the
specification can be implemented. JTS is mature and powerful.
If you are trying to get work done, use JTS geometries. That means that
you are not importing any classes from the org.opengis.geometry*
packages. There are good examples on the wiki and in the demo directory
of the svn code. I know that demo/introduction starts with code to
create geometries using JTS and then integrates that into Feature
(although the latter is probably broken on trunk).
--adrian
Michael Bedward wrote:
> Just do this...
>
> GeometryFactory gf = new GeometryFactory();
>
> Michael
>
>
--
View this message in context:
http://www.nabble.com/Geomatry-example-tp19943308p19964230.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users