Hi Emilio,
Thank you very much, I will take closer look at the new upcomming
release and also on the programaticall way of ingesting data.
Milan
On 13.12.2016 20:01, Emilio Lahr-Vivaz
wrote:
Hi Milan,
GeoMesa is a GeoTools data store, so at a general level you use
the GeoTools API to write features. That said, we have a set of
command-line tools that can simplify the process.
1. Define and create your simple feature type: http://www.geomesa.org/documentation/user/commandline_tools.html#create
2. Create a 'converter' - a mapping of JSON to simple features -
examples here: http://www.geomesa.org/documentation/user/convert.html#parsing-json
3. Ingest the data from JSON files using your converter: http://www.geomesa.org/documentation/user/commandline_tools.html#ingest
If you'd rather write data programatically (maybe you have
streaming data), then you can use the tools of your choice to
extract the attributes and then write them using a FeatureWriter.
An example using Apache Storm is available here:
http://www.geomesa.org/documentation/tutorials/geomesa-quickstart-storm.html
If you happen to be using GeoJSON, we have a new module which
simplifies things even further - you can just POST GeoJSON files
to a REST endpoint. Full instructions for the GeoJSON API will be
available in our upcoming 1.3.0 release, but the functionality is
present in 1.3.0-m2, and preliminary documentation is available
here:
https://github.com/ccri/geomesa/blob/fcr_docs_1.3/docs/user/geojson.rst
Thanks,
Emilio
On 12/13/2016 01:20 PM, Milan Muňko
wrote:
Hello everyone,
I am new to the scala programming and I would like to ask for
example on how to use geomesa library to convert JSONObject
into SimpleFeatureType and write it to the Accumulo store.
Is there any documentation about geomesa classes and their
methods?
Thank you very much,
Milan
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.locationtech.org/mailman/listinfo/geomesa-users
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.locationtech.org/mailman/listinfo/geomesa-users
|