geotrellis / geotrellis-chatta-demo

Demo of GeoTrellis - weighted overlay and zonal summary for University of Tennessee at Chattanooga.
50 stars 34 forks source link

load data #17

Closed wsf1990 closed 8 years ago

wsf1990 commented 8 years ago

dose anybody know how this demo load the data in the data dir?

pomadchin commented 8 years ago

@wsf1990 what to you mean by how?

There is a short README with a brief description. In short: using the ingest script (that's an example to ingest into Accumulo) you can ingest data into your storage (accumulo / s3 / hadoop / file), rasters would be tiled according to the layout scheme and to desired projection, indexed using desired index (zcurve / hilbert). In fact it uses GeotrellisETL, think this link is a good point to start with.

wsf1990 commented 8 years ago

I means how dose this demo know what data in the data dir dose it need when render PNG?

pomadchin commented 8 years ago

Demo consists of two logical parts:

So what do you mean by know what data in the data dir?

wsf1990 commented 8 years ago

where is the ingest part? I cant find it in the src

pomadchin commented 8 years ago

Ingest script: https://github.com/geotrellis/geotrellis-chatta-demo/blob/master/geotrellis/ingest.sh Ingest Src: https://github.com/geotrellis/geotrellis-chatta-demo/blob/master/geotrellis/src/main/scala/geotrellis/chatta/ChattaIngest.scala ETL explanations: https://github.com/geotrellis/geotrellis/blob/master/docs/spark-etl/

wsf1990 commented 8 years ago

I got it in this version.But why cant i find it in the last version?is it the new added? or this is my mistake?

pomadchin commented 8 years ago

This version is the last version actually, i am talking about master branch. Probably you are talking about previous GeoTrellis 0.9.x?

wsf1990 commented 8 years ago

yes, I clone this demo in the last week,then I can run this Demo.But i cant understand how this demo load the data its need. Last version of this demo have not use spark.

wsf1990 commented 8 years ago

I got it,Demo load data by the class of RasterSource and Catlog in GeoTrellis 0.9