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

java.util.NoSuchElementException: None.get from TemporalProjectedExtentCodec.encode #2033

Closed
metasim opened this issue Feb 28, 2017 · 1 comment
Assignees
Milestone

Comments

@metasim
Copy link
Member

metasim commented Feb 28, 2017

The epsgCode in trait CRS is marked as Option[Int], but TemporalProjectedExtentCodec ignores the optionality and unsafely calls get.

https://github.com/locationtech/geotrellis/blob/master/spark/src/main/scala/geotrellis/spark/io/avro/codecs/TemporalProjectedExtentCodec.scala#L42

Getting this exception after reading in some MODIS data where the embedded CRS doesn't reference an EPSG code (assuming this branch was taken). At any rate, it doesn't seem uncommon for this function to come along a "proj4" string it doesn't recognize.

@lossyrob
Copy link
Member

Closed by #2034

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

No branches or pull requests

2 participants