On Thu, Dec 2, 2010 at 11:51 PM, Miles Jordan <[email protected]> wrote:
>> If you are interested in coding that I can show you where to put your
>> hands?
>
> Ok, sure. I can take a look at that starting almost immediately. Where to 
> start?

Well, to do this you basically need:
- a way to store the mappings between old and new name (maybe some new object
  to be stored in the FeatureTypeInfo user map, not sure)
- a store that can perform the remapping on the fly

For the first I'd suggest to have a look at how the VirtualTable class
is handled in
the org.geoserver.catalog.ResourcePool class, as well as in
org.geoserver.config.util.XStreamPersister

For the second you can probably extend the functionality of the
org.geoserver.feature.retype.RetypingDataStore
and add support for attribute renaming:
- configure the attribute renames
- apply them on feature reading
- apply them on feature writing
- apply them on filters (by rolling a visitor that changes the names
  dynamically, look for DuplicatingFilterVisitor in geotools main module
  and its various subclasses for inspiration

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to