Hi Martin,

Please send your replies to the list so that others can help you out as well.

> thanks for your answer! I am trying to learn more about geotools
> featuretypes and JTS gemetires but I couldn`t find an example that combines
> the subjects! Maybe i am to blind ;-)

Not blind - just unfamiliar with what to look for. We all start out
like that. I still have a great many blind spots :)

> In detail how to build afeaturetype from jtsgeometry (and otherwise)!
>
> May you can help me out again?

In brief, you can create a feature type by using a builder class
(SimpleFeatureTypeBuilder) to combine the following...
- a geometry class
- a coordinate reference system (optional)
- one or more additional attributes (e.g. name, integer id)

Near the end of the CSV 2 SHP Lab page you can see an example of
building a feature type for point features (JTS Point class) using
SimpleFeatureTypeBuilder:

http://geotools.org/examples/csv2shp.html#another-way-to-build-a-simplefeaturetype

For more background on the concepts please see this workbook that goes
into the CSV 2 SHP Lab in more detail. In particular, Section 4 of the
workbook explains how feature types and geometries fit together.

http://snapshots.dist.codehaus.org/geotools/workshop/FeatureWorkbook.pdf

Finally, most people find that the best way to learn GeoTools is by
doing rather than just reading. If you work through the example pages
in order you will get quite a good overview of the library and many of
the important concepts.

Hope this helps.

Michael

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to