Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide Open Imagery Network metadata for each map #178

Open
jywarren opened this issue May 29, 2015 · 3 comments
Open

provide Open Imagery Network metadata for each map #178

jywarren opened this issue May 29, 2015 · 3 comments

Comments

@jywarren
Copy link
Member

https://github.com/openimagerynetwork/metadata-spec/blob/master/sample.json

https://github.com/openimagerynetwork/metadata-spec

{
  "uuid" : "path/to/example.tif",
  "projection" : "PROJCS["NAD83 / Massachusetts Mainland", ...",
  "bbox" : [-180,-90,180,90],
  "footprint" : "POLYGON((-180 -90, -180 90, 180 90, 180 -90, -180 -90))",
  "gsd" : 0.35,
  "file_size" : 1024,
  "acquisition_start" : "2015-05-03T13:00:00.000",
  "acquisition_end" : "2015-05-04T13:00:00.000",
  "title" : "An scene from some satellite",
  "platform" : "satellite",
  "provider" : "Digital Globe",
  "contact" : "someone@nasa.gov",
  "properties" : {}
}
@jywarren
Copy link
Member Author

So OIN's spec also requires HTTP content-range, which nginx 1.2.1 provides, but apparently whatever Rails is doing to serve files does not. We could set up a separate nginx instance to just serve static files, though.

@grvsachdeva
Copy link
Member

Hey @jywarren, can you please add more details to this issue? Thanks!

@jywarren
Copy link
Member Author

So this would require a new function in the maps_controller.rb which would output JSON in this format with all the information we're able to provide, at a route like https://mapknitter.org/maps/<map-slug>/metadata.json. But as we are transitioning potentially to image-centric listings instead of map-centric, would we want to quickly change this to display for each image, instead?

Under the new exporter, we may have a GeoTiff for each image, but even a JPG would be OK to report in this format. Some of the fields we'll need to research a bit more using the above link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants