I recommend using maven. It copies all the depending .jar files for you.
You can do this in a seperate project and copy all the needed geotools jar
files in your project. (to get the jars do: mvn dependency:copy-dependencies
all jar files are added in the dir /target/dependency)
Otherwise:
1) see what classes are missing
2) find the .jar files for those classes.
3) Add the jar files.
keep repeating this until all classes are found...
Docs can be found here:
http://docs.geotools.org/
_____
From: Imran Rajjad [mailto:[email protected]]
To: Roy Braam [mailto:[email protected]]
Cc: geotools-gt2-users [mailto:[email protected]]
Sent: Tue, 19 Oct 2010 09:01:26 +0200
Subject: Re: [Geotools-gt2-users] which jar file for
map.addLayer(SimpleFeatureCollection, style)
Hi,
No I do not go through maven! just putting the jars in reference
libraries. I have a SimpleFeature Collection which I`m trying to
visualize! I checked the map.addLayer function and it takes
SimpleFeatureCollection and a Sytle as argument. So I`m tryin to set
the style to null, my imports are
import org.geotools.feature.FeatureCollection;
import org.geotools.map.DefaultMapContext;
import org.geotools.map.MapContext;
import org.geotools.swing.JMapFrame;
import org.geotools.swing.JMapPane;
import org.geotools.styling.Style;
is there any user guide for Gt.2.6 on net
regards,
Imran
On 10/19/10, Roy Braam <[email protected]> wrote:
> Use maven?? :)
>
> Roy
> _____
>
> From: Imran Rajjad [mailto:[email protected]]
> To: geotools-gt2-users [mailto:[email protected]]
> Sent: Tue, 19 Oct 2010 07:35:47 +0200
> Subject: [Geotools-gt2-users] which jar file for
> map.addLayer(SimpleFeatureCollection, style)
>
> Hi,
>
> I have a SimpleFeatureCollection and I`m trying to add it to
> JmapFrame, but it seems a jar file needs to be added in buildclass
> path, and there are so many of them. any idea, which jar file im
> missing here..currently I am using
> geoapi-rending
> gt-api
> gt-data
> gt-main
> jts-1.10
> gt-render
> gt-metadata
> gt-epsg-extension
> gt-epsgh2.2...
> gt-epsg-hqpl
> gt-swing
>
>
> exclipse is telling me that a jar files need to included at this
>
> MapContext map = new DefaultMapContext();
> map.setTitle("Converted network data");
> map.addLayer(collection, null); <-- here im passing a
> simpleFeatureCollection
>
> any idea! or a link would be appreciated
>
> regards,
> Imran
>
> --
> I.R
>
>
------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
>
--
I.R
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users