I'd recommend that you use geotools version 2.5.0 (edit the version for each of your geotools dependencies in your pom.xml file). This version has the SimpleFeatureTypeBuilder which makes life easier.
Then have a look at these pages in the user's guide... http://docs.codehaus.org/display/GEOTDOC/03+SimpleFeatureTypeBuilder+and+SimpleFeatureBuilder http://docs.codehaus.org/display/GEOTDOC/Feature+Model+Guide These pages should help you figure out how to do the following... Create a new type of feature for your roads, give it a name (e.g. "Road"), define whatever fields you need (e.g. a String field for the name of the road, an Integer field for some road category etc), define the CRS (DefaultGeographicCRS.WGS84 for lat-longs) and the geometry (LineString). Create some features (your roads) Let us know how you go Michael 2008/10/12 fx5900 <[EMAIL PROTECTED]>: > > Hi guys, > > I'm still pretty new to geotools but i want to create a very simple and > BASIC road given some cordinates defined by lat/long titude. What i want to > know is, is it possible to create something like this using geotools api? If > so, which classes or functions would i need to pay attention to? Because at > the moment i just want to test out the api to see if this can be done and > don't want to use open source programs to do this for me. > > Cheers > -- > View this message in context: > http://www.nabble.com/How-to-create-a-simple-road-or-a-line-using-geotools--tp19941017p19941017.html > Sent from the geotools-gt2-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
