Jim, Others,
If we do use the same ID, can we count on the previous value getting “overwritten”/replaced?
In other words, if I actually intend to overwrite/replace a feature with a specific ID (if it exists, otherwise create a new feature), which of the following
is the best option:
1.
Act as if I am adding the feature, counting on any existing feature with the same ID to be overwritten/replaced
2.
Query GeoMesa for the existence of a feature with the specific ID, modify feature if it exists, add feature if it doesn’t exist
3.
Blindly attempt to remove the feature with the specific ID, add a new feature with the same ID
Any suggestions for a recommended approach would be helpful.
Thanks,
Beau
From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx]
On Behalf Of Jim Hughes
Sent: Wednesday, June 18, 2014 9:06 AM
To: Geomesa User discussions
Subject: Re: [geomesa-users] Feature writing issue...
Hi Adnan,
Great question! Geomesa uses the feature id as a unique identifier. It sounds like you might using the id field to identify/name a thing which is moving/changing shape/varying attributes through time. If that's the use case, I'd suggest putting that information
which identifies the object into a different field like 'name' or 'identifier'.
As for documentation, I'd suggest checking out
http://geomesa.github.io/ and looking through the tutorials. We've integrated with GeoTools, so I'd also point to their documentation about DataStores/FeatureStores (http://docs.geotools.org/latest/userguide/library/api/datastore.html
and
http://docs.geotools.org/stable/userguide/library/data/featuresource.html).*
Let us know what others questions we can help with,
Jim
* In particular, I believe that you would see the same behavior with (most) other GeoTools FeatureStores.
On 06/18/2014 06:14 AM, Adnan Yaqoob wrote:
Hello Everybody,
I am new to Geomesa and trying its API. I have a question, how can I store features with same id and geometry with different time stamp and attributes values. I tried to write feature with same id with different attributes and it was overwriting
previous feature. I am stuck on this point, please help me understand.
Is there any documentation for Geomesa API?
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
http://www.locationtech.org/mailman/listinfo/geomesa-users