Hi again Paulo:
I had a look at your code (to figure out why your prj file was not
created) - it comes down to this section:
> types[0] = AttributeTypeFactory.newAttributeType("centerline",
> line.getClass());
> types[1] = AttributeTypeFactory.newAttributeType("name", String.class);
> FeatureType lineType = FeatureTypes.newFeatureType(types,
> "linefeature");
>
When creating your "centerline" you need to pass in a
CoordinateReferenceSystem to the GeometryFactory, a
GeometryAttirbuteType will be produced with the correct
CoordinateReferneceSystem.
There is a quick way to create FeatureTypes here if you are just writing
quick code like this:
- http://docs.codehaus.org/display/GEOTDOC/01+DataUtilities+Utility+Class
I also added some examples of using the subType method to supply a CRS
after the fact incase you are interested.
Cheers,
Jody
-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users