Hi Christopher,

The Point and Geometry classes are part of the JTS library. So you need
to ensure that jts is on the classpath and import
com.vividsolutions.jts.geom.*.

In geotools 2.2 StyleFactory.createStyleFactory() was replaced with
StyleFactoryFinder.createStyleFactory().

Hope that helps.

-Justin

Christopher Jon Jursa wrote:
> Hello,
> 
> I am new to Geotools.  I have downloaded 2-2.2-RC3 and I am trying to get a
> sample map image to be visible.
> 
> I found an example of a simple map at
> http://docs.codehaus.org/display/GEOTOOLS/The+Map.  However, this code is
> not immediately compatable with the version of Geotools I am using.  I
> understand this is an issue with many of the examples on the site.
> 
> I tried to modify it to compile but I am still having trouble.  My java file
> is at http://gis.sis.pitt.edu/temp/chris/SampleMapChris.java.  I can't seem
> to get the Point class, GeometryFactory class and the
> StyleFactory.createStyleFactory() method to work.
> 
> Can someone tell me what classes and method to use here so my example will
> compile?
> 
> Sincerely,
> 
> Christopher Jon Jursa
> Geoinformatics Laboratory
> School of Information Sciences
> University of Pittsburgh
> web: http://gis.sis.pitt.edu
> email: [EMAIL PROTECTED]
> phone: 412-624-8858
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 
> !DSPAM:1004,4568da7c78941116498154!
> 


-- 
Justin Deoliveira
[EMAIL PROTECTED]
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to