Great, that seems simple enough.

I've created a Jira task http://jira.codehaus.org/browse/GEOS-4249 for this. 
You can reassign it to me if you like (I can't). It looks like now I won't be 
working on it for 3-4 weeks though as I've been asked to push ahead without 
being able to rename attributes. I have approval to make the contribution 
anyway but not until January.

Cheers,

Miles

Andrea Aime wrote:
> 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


___________________________________________________________________________

    Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not 
the
intended recipient, you are notified that use or dissemination of this 
communication is
strictly prohibited by Commonwealth law. If you have received this transmission 
in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 
3209 and
DELETE the message.
        Visit our web site at http://www.antarctica.gov.au/
___________________________________________________________________________
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to