ilker wrote: > Guys i am a new user for geotools and reading its all documentation at the > moment.And i wanna learn if i can do a thing by the help of the geotools(i > meant if there is a way to do it).I have a shape file of my city and i want > to get the roads' coordinate information to draw the roads like the men done > on google map by the help of the encoded polyline. Why not use GeoServer? It is an application written with GeoTools that does what you mean. You can even combine your shapefile with google maps using the "open layers" component that GeoServer makes use of. > But he took lots of points to draw the actual road...Is there a way to get > these points from a shapefile and to put them into an array? after i put them > into an array i will use openlayers to draw that road or roads... > Sounds like you are already familiar with open layers. If you do need to work with the coordiantes directly please visit the JTS Topology Suite project - it is what we use for the Geometry attribute of a shapefile. I think you will find that the Geometry class has a getCoordinateArray() method. > THX FOR YOUR REPLIES... > P.S. if there is no way to do this ,plz let me know and i wont try on > geotools more :) >
------------------------------------------------------------------------- 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 Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users