I would have to say no to that.  The reason is that one way to  
efficiently edit is to null the data then append the new updated data  
to the end of the shapefile.  So often it will work but there is no  
guarantee.  However if you use the IndexedShapefile datastore looking  
up features by ID is very efficient because an index of the  
FeatureIDs is maintained..

Jesse

On Oct 10, 2007, at 3:12 AM, Christian Weaves wrote:

> Hi folks,
>
> I have a question for you, I'm new to Geotools so I hope you can help.
>
> If I have a shapefile which is of type MULTIPOLYGON that contains a
> number of polygons with the following attribute data:
>
> Feature ID,   Name
> field.1,      Calabon
> field.2,      Gartez
> ...
>
> Here's the scenario: If I have 2 shapefiles the first contains details
> of where the 100 polygons were last week, the second contains the same
> 100 polygons but with updated physical locations based on this week
> (updated lat/lon) can I assure be assured that the first polygon read
> from both shapefiles (field.1) will always have the name attribute of
> Calabon?
>
> Basically I'm storing the featureid (field.1) from one version of a
> shapefile and updating the record with the same featureid at a later
> date if you know what I mean??
>
> Thanks for your help anyway!
>
> Christian.
>
>
>
> ---
>
> Fugro Data Solutions Limited
> Tyn y Coed
> Llanrhos
> Llandudno
> North Wales
> LL30 1SA
> United Kingdom
>
> Tel: +44 (0)1492 563555
> Fax: +44 (0)1492 592030
>
> General Email: [EMAIL PROTECTED]
>
> Website: www.fugro-data.com
>
> This email and any attachments are confidential. They may
> contain privileged information and are intended for the named
> addressee(s) only. They must not be distributed without our
> consent. If you are not the intended recipient, please notify us
> immediately and do not disclose, distribute, or retain this
> email or any part of it. Unless expressly stated, opinions in
> this email are those of the individual sender, and not of Fugro
> Data Solutions Ltd. We believe but do not warrant that this
> e-mail and any attachments are virus free. You must therefore
> take full responsibility for virus checking. Fugro Data
> Solutions Ltd and its subsidiaries may monitor email traffic
> data and also the content of email for the purposes of security.
>
> Fugro Data Solutions Limited is a limited company registered in
> England and Wales (Reg No. 5583527) at Tyn y Coed, Pentywyn Road,
> Llanrhos, Llandudno, LL30 1SA.  VAT No. GB901440962.
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to