|
From: Justin D. <jde...@op...> - 2011-07-28 14:47:22
|
A related note that geoscript (which ships with all the necessary jars)
makes this a one liner. Ok two lines with imports.
>>> from geoscript.geom import readWKT, writeJSON
>>> writeJSON(readWKT('POINT ( 8136668.86140000 3590334.97430000)'))
u'{"type":"Point","coordinates":[8136668.8614,3590334.9743]}'
If you are into python/jython it might be a good fit.
-Justin
On Thu, Jul 28, 2011 at 7:22 AM, Jody Garnett <jod...@gm...>wrote:
> Those things in turn need stuff ... see earlier post for the "tree".
>
> --
> Jody Garnett
>
> On Thursday, 28 July 2011 at 3:40 PM, Imran Rajjad wrote:
>
> according to this page I require 3 jars
>
> http://www.mvnbrowser.com/artifact-details.html?groupId=org.geotools&artifactId=gt-geojson&version=2.7-M2&tab=DEPENDENCIES#tabs
>
> json-simple.jar
> gt-espg-hsql,jar
> gt,main.jar
>
> is that ok?
>
> regards,
> Imran
>
>
> On Wed, Jul 27, 2011 at 10:52 PM, Imran Rajjad <ra...@gm...> wrote:
>
> so i need all the jars with a + to make it work in tomcat dynamic web
> project?
>
>
> On Wed, Jul 27, 2011 at 7:26 PM, Jody Garnett <jod...@gm...>wrote:
>
> We can check with maven (the tool we use to manage jars for geotools)
>
> org.geotools:gt-geojson:jar:8-SNAPSHOT
> [INFO] +- org.geotools:gt-main:jar:8-SNAPSHOT:compile
> [INFO] | +- org.geotools:gt-api:jar:8-SNAPSHOT:compile
> [INFO] | | \- org.geotools:gt-referencing:jar:8-SNAPSHOT:compile
> [INFO] | | +- java3d:vecmath:jar:1.3.2:compile
> [INFO] | | +- commons-pool:commons-pool:jar:1.5.4:compile
> [INFO] | | \- org.geotools:gt-metadata:jar:8-SNAPSHOT:compile
> [INFO] | | \- org.geotools:gt-opengis:jar:8-SNAPSHOT:compile
> [INFO] | | \-
> net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
> [INFO] | +- com.vividsolutions:jts:jar:1.12:compile
> [INFO] | | \- xerces:xercesImpl:jar:2.7.1:compile (version managed from
> 2.4.0)
> [INFO] | \- jdom:jdom:jar:1.0:compile
> [INFO] +- com.googlecode.json-simple:json-simple:jar:1.1:compile
> [INFO] +- org.geotools:gt-epsg-hsql:jar:8-SNAPSHOT:test
> [INFO] | \- hsqldb:hsqldb:jar:1.8.0.7:test
> [INFO] +- javax.media:jai_core:jar:1.1.3:compile
> [INFO] \- junit:junit:jar:4.4:test
>
> You can see the some of the things like junit are only needed for testing
> ...
>
>
> --
> Jody Garnett
>
> On Wednesday, 27 July 2011 at 10:58 PM, Imran Rajjad wrote:
>
> hi list,
>
> I am parsing a few WKT into JTS Geometries, now I need to serialize this
> into a json object, Is it possible to use the geojson.jar from geotools as
> standalone to carry out this serialization or what other jar files are
> required for this specific purpose?
>
> regards,
> 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
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
>
>
> --
> I.R
>
>
>
>
> --
> 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
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
|