Hey you have my input already: Just allow changes to metadata: CS, namespace, 
and others :-)
(what does that even mean?)

Okay all kidding aside the goal here is to replace an existing table; or 
shapefile with a new one based on the provided schema. We try and carry across 
the current contents; but the technique is not very sophisticated so we better 
document as safe for:
- adding attributes  (the default value of the new attribute descriptors will 
be used)
- removing attributes (don't include them in the schema you are providing)

And remain carefully silent about modification of existing attributes.

Thinking:
- To actually allow change/addition of attributes we would need to supply an 
expression; for modified attribute. Personally with the current api I would 
attach an "update" expression to the attributes descriptors being passed in and 
expect them to be evaluated to produce the "new values".
- we should port the uDig "reshape" operation to geotools :-(

Jody


On 06/05/2010, at 9:54 PM, Michael Bedward wrote:

> Hi Jody and all,
> 
> Next javadoc query...  I'm looking at DataStore.updateSchema where the
> current docs include entertaining comments:
>     * <li>Sean - don't do this</li>
>     * <li>Jody - Just allow changes to metadata: CS, namespace, and 
> others</li>
>     * <li>James - Allow change/addition of attribtues</li>
> 
> Does this method have a contract that I can summarize in the docs ?
> 
> cheers
> Michael


------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to