Hi,

I have a colum named "color" in my FeatureType which stores instances
of Color.class. Now, I am trying to save my FeatureCollection of this
type to a Shapefile and get the following exception:

java.io.IOException: Unable to write column color : java.awt.Color at
org.geotools.data.shapefile.ShapefileDataStore.createDbaseHeader(ShapefileDataStore.java:365)
at
org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:262)
at
org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:71)

My questions:
Is it ok to store more complex objects like java.awt.Color in a column?
Is it somehow possible to save these?
How can I convert the objects to something simple like a string (maybe
a hex-colorcode) before saving the FeatureCollection?

Thank you very much
Julian

------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to