Newbie question concerning repositories

2 messages Options
Embed this post
Permalink
Jan Peters-2

Newbie question concerning repositories

Reply Threaded More More options
Print post
Permalink
Dear list,
I am new to GeoTools and I am just at the beginning of trying things out. Right now I would like to test the sample code from the website

http://docs.codehaus.org/display/GEOTDOC/GML+XML+Support

in this case this code:

--------------8<---------------

org.geotools.xml.Configuration configuration = new org.geotools.gml2.GMLConfiguration();
org.geotools.xml.Parser parser = new org.geotools.xml.Parser( configuration );

--------------8<---------------

I tried to download (via Maven) the gt-xml (v2.6.0) jars, but they do not include the "Configuration" or "Parser" classes. Where do I find them? I am a bit confused about all these different deprecated, not compiling examples on the net, so maybe I am missing something fundamental here.

Thanks for all hints
Jan
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: Newbie question concerning repositories

Reply Threaded More More options
Print post
Permalink
Hi Jan,

The best way to find out what GeoTools module you need for a
particular class is to look in the javadocs here:

http://geotools.org/javadocs

So, for instance, the page for org.geotools.gml2.GMLConfiguration has
the module/jar name:
 modules/extension/xsd-gml2 (gt-xsd-gml2.jar

The dependency entry for your pom.xml file will be:
<dependency>
    <groupId>org.geotools<groupId>
    <artifactId>gt-xsd-gml2</artifactId>
    <version>2.6.0</version>
</dependency>

> Where do I find them? I am a bit confused about all these different deprecated, not
> compiling examples on the net, so maybe I am missing something fundamental here.

Apologies for the many old, broken examples on the GeoTools wiki.  A
new examples section has been started and as it grows the old pages
will be retired.  The new pages are here:

http://geotools.org/quickstart.html
http://geotools.org/examples/index.html

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users