On Wed, Jun 15, 2011 at 12:47 PM, Jon Britton <[email protected]>wrote:
> Hi,
>
> Sorry, the email was supposed to go to the users list as well. Anyway, it
> seems the problem occurs in the shapefileDataStore.createDbaseHeader(..)
> method. From what I can gather, if fails to add a column for the
> "metaDataProperty" attribute because it's type is set to Object (not
> Integer, Short, Date etc.).
>
> Should I even be calling ShapefielDataStore.createSchema(..) with the
> result of my DefaultFeatureCollection.getSchema()?
>
You should probably fix the schema a bit by either forcing the data types
to
something the shapefile datastore can handle, or just remove the attributes
that cannot be recognized.
And then account for the fact that the schema created by the target
datastore
is not equal to the one you passed: for shapefiles the geometry is the first
attribute and it's called "the_geom", for oracle all the attributes will
become
uppercase, and so on
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users