PecanProject / BETYdb-YABA

Yet Another BETYdb API (for metadata upload)
BSD 3-Clause "New" or "Revised" License
5 stars 18 forks source link

Visualize the polygons #56

Closed im-prakher closed 4 years ago

im-prakher commented 4 years ago

Created a shape-visual.js and gmap.js component that uses react-leaflet to visualize the GeoJSON data.

dlebauer commented 4 years ago

we don't need to visualize the shapefiles directly, we want to visualize the data after it has been inserted into the database. For example, to look at the map of experiments we want to test that this is valid ....

select experiments.name, sitename, st_asgeojson(geometry) as polygon from sites 
    join experiments_sites on sites.id = experiments_sites.site_id 
   join experiments on experiments.id = experiments_sites.experiment_id 
   where ????<find the stuff that hasn't been committed e.g. sites.created_at = just now>;

similar w/ joins to treatments and cultivars

im-prakher commented 4 years ago

Done in #69