问题
How are GeoTIFFs saved in GeoMesa and Accumulo given that it is a key-value datastore? Moreover, which indices are added (if!) and on which fields?
Likewise, for other formats such as:
- GeoJSON
- GML
- KML
回答1:
GeoMesa's raster support is targeted a narrow set of use cases. The documentation for the raster support (http://www.geomesa.org/documentation/user/accumulo/raster.html) has some of the details for ingest and setting up GeoServer. Raster data does need to be in longitude/latitude (and maybe pre-tiled).
GeoMesa's raster data is indexed by spatial extent solely.
(It may be worth looking at more general raster toolkits like GeoTrellis for Hadoop/Spark-based raster support.)
For vector data, GeoMesa has support via its converter library (http://www.geomesa.org/documentation/user/convert/index.html) for ingesting XML, Json, and other file formats. More generally, GeoMesa implements the GeoTools DataStore API. For any format with a GeoTools DataStore implementation, one could read from that source and write to GeoMesa using straightforward Java/Scala code.
GeoMesa's GeoJson support is documented here (http://www.geomesa.org/documentation/user/geojson.html). For GML, I think the converter library might be a sane approach. For KML, it appears there is an unsupported datastore here (https://github.com/geotools/geotools/blob/master/modules/unsupported/kml/src/main/java/org/geotools/data/kml/KMLDataStore.java).
来源:https://stackoverflow.com/questions/46939526/how-are-geotiffs-persisted-in-geomesa