hi list,
i am using gt 2.7.1 and I am trying to convert a JTS geometry which was
created from a WKT into a Geojson object, but I am running into a few
problems
here is my code
*
import* org.geotools.geojson.GeoJSON;
*
import* org.geotools.geometry.jts.WKTReader2;
*
import* com.vividsolutions.jts.geom.Geometry;..
...
..
WKTReader2 wkt = *new* WKTReader2();
g = (Geometry) wkt.read(geomWkt);//geomWkt is a string = POINT (
8136668.86140000 3590334.97430000)...
GeoJSON json = (GeoJSON) GeoJSON.*read*(p); //ERROR line
----------
*
java.lang.UnsupportedOperationException
*at org.geotools.geojson.GeoJSON.read(*GeoJSON.java:35*)
any idea what i might be doing wong here?
thanks,
Imran
.
--
I.R
------------------------------------------------------------------------------
Got Input? Slashdot Needs You.
Take our quick survey online. Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users