Skip to content

Conversation

halfabrane
Copy link
Contributor

@halfabrane halfabrane commented Jul 27, 2017

This PR adds support for parsing multipolygons in Magellan by treating a MultiPolygon as a list of polygons and emitting a row per polygon.
Emitting one row per shape allows us to use spatial indexes without having to create a specialized datastructure for Multipolygons whose overhead is heavy.
Multipolygons all share the same properties map.
Client side code that needs to logically regroup this multipolygon for any reason can add / use identifiers in the properties map to regroup the polygons as needed.

This closes issues #30 , #55 , #66

@codecov-io
Copy link

Codecov Report

Merging #123 into master will increase coverage by 0.22%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
+ Coverage   78.59%   78.81%   +0.22%     
==========================================
  Files          47       47              
  Lines        1551     1553       +2     
  Branches      111      107       -4     
==========================================
+ Hits         1219     1224       +5     
+ Misses        332      329       -3
Impacted Files Coverage Δ
src/main/scala/magellan/GeoJSONRelation.scala 87.87% <91.66%> (+4%) ⬆️
src/main/scala/magellan/IntegerArrayData.scala 20.83% <0%> (+4.16%) ⬆️
src/main/scala/magellan/DoubleArrayData.scala 20.83% <0%> (+4.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbc870f...3c5d09b. Read the comment docs.

@harsha2010 harsha2010 merged commit 6f1e3aa into harsha2010:master Jul 27, 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.

3 participants