On Mon, Aug 6, 2012 at 5:53 AM, Gabriel Roldan <grol...@opengeo.org> wrote:
> Hi Andrea,
>
> I think this makes for a very welcomed contribution.
>
> Of particular interest to me is the ability to "reshape" shapefiles.
> It's actually something that's been rounding my mind for the last week
> anticipating its need for another project. What do you think about the
> idea of having a (yet another) shapefile sidecar file that somehow
> defines the schema of the shapefile? The use case is exporting a
> feature type to shapefile without loosing type accuracy and/or
> attribute names.

I see. Well, sure, why not, I guess we can add this ability inside the
ShapefileDataStoreFactory, if the sidecar file is there it would first
build the plain shapefile and then wrap it.

Hm... actually there is a bit of a show stopper though.
The wrapper is meant for featuresource/featurestore, it actually builds
a data store too but right now it does not have the full capabilities
that a store should have, in particular the readers and writers method
cannot be implemented against the feature source abilities because
they take a Transaction per method, while the feature source/store
have a transaction as a field.

Now that I think about it though, it's just a matter of grabbing the DataStore
off the FeatureSource and fall back on those methods.

Long story short, to get where you want I guess the following is needed:
- fix the reshape store so that the missing methods are filled in
- push the module into supported land, so that shapefile can depend on it
- devise a file format that can hold the transforming definitions, use
it as a sidecar
  for the shapefile

Next weekend I'll merge the store into the official GeoTools repo

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 962313
mob:   +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to