Skip to content

Fix TemporalProjectedExtentCodec to handling proj4 strings when CRS isn't available - #2034

Merged
echeipesh merged 4 commits into
locationtech:masterfrom
metasim:fix/2033
Mar 9, 2017
Merged

echeipesh merged 4 commits into
locationtech:masterfrom
metasim:fix/2033

Conversation

@metasim

@metasim metasim commented Feb 28, 2017 •

Copy link
Copy Markdown
Member

Fixes #2033

@lossyrob

Copy link
Copy Markdown
Member

I'm +1 on this, @echeipesh your review was requested.

}
else {
rec.put("proj4", crs.toProj4String)
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another (breaking) option would be to replace epsg all together with crs, and prefix EPSG codes according to this, falling back to "proj4" strings otherwise.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With Avro schema migration capabilities (which allow for aliasing), this might not have to be a breaking change. See: https://github.com/locationtech/geotrellis/blob/master/spark/src/main/scala/geotrellis/spark/io/avro/codecs/KeyCodecs.scala#L52

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@metasim

metasim commented Mar 6, 2017 •

Copy link
Copy Markdown
Member Author

@pomadchin Good catch. Will look for a mechanism to share code (independent codec?).

@echeipesh are you good with this?

@echeipesh

Copy link
Copy Markdown
Contributor

+1, nice that it was kept from being a breaking change. Shame that ProjectedExtentCodec can't directly use the CRS codec.

@metasim

metasim commented Mar 7, 2017

Copy link
Copy Markdown
Member Author

@echeipesh Created a shared CRS codec.

@metasim

metasim commented Mar 7, 2017 via email •

Copy link
Copy Markdown
Member Author

@echeipesh

Copy link
Copy Markdown
Contributor

@lossyrob As I'm reading this Avro schemes they fall under schema migration, so that isn't breaking: old records can be read using new versions. The new CRSCodec class is new so since we're adopting SemVer would place this change into 1.1.0, which seems alright to me.

Probably the moral is that we'll have to release 1.1.0 soon after 1.0.1 as a lot of the PRs that have been merged in since 1.0.0 have added classes or methods.

@echeipesh echeipesh added this to the 1.1 milestone Mar 9, 2017
@echeipesh
echeipesh merged commit 94dce0c into locationtech:master Mar 9, 2017
@lossyrob lossyrob modified the milestones: 1.0.1, 1.1 Mar 10, 2017
@metasim
metasim deleted the fix/2033 branch March 10, 2017 14:31
@lossyrob

lossyrob commented Mar 12, 2017 •

Copy link
Copy Markdown
Member

@metasim for future reference: The PR should be named describing the change, and the body of the PR should say "Fixes #XXXX" - this way they are properly linked in GitHub, and the issue actually closes once the PR is merged. This way (with Fixes comment in a commit, and issue number in PR name) took just a bit to track down, no big deal but just a heads up :)

I made changes to the PR title and description

@lossyrob lossyrob changed the title Fix/2033 Fix TemporalProjectedExtentCodec to handling proj4 strings when CRS isn't available Mar 12, 2017
@lossyrob lossyrob modified the milestones: 1.1, 1.0.1 Mar 12, 2017
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

Successfully merging this pull request may close these issues.

4 participants