-
Notifications
You must be signed in to change notification settings - Fork 363
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
GeometryCollection encoding issue #3167
Labels
Comments
Besides serialization, some other operations are also affected by this:
On the other hand, |
agrian-joel
added a commit
to agrian-joel/geotrellis
that referenced
this issue
Sep 4, 2020
…eString should serialize those geometries once. Fixes locationtech#3167 Current behavior encodes them in geometries as both `type: MultX` and `type: GeometryCollection`
agrian-joel
added a commit
to agrian-joel/geotrellis
that referenced
this issue
Sep 4, 2020
…eString should serialize those geometries once. Fixes locationtech#3167 Current behavior encodes them in geometries as both `type: MultX` and `type: GeometryCollection` Signed-off-by: Joel Anna <joel@agrian.com>
agrian-joel
added a commit
to agrian-joel/geotrellis
that referenced
this issue
Sep 4, 2020
…eString should serialize those geometries once. Fixes locationtech#3167 Current behavior encodes them in geometries as both `type: MultX` and `type: GeometryCollection` Signed-off-by: Joel Anna <joel@agrian.com>
@atararaksin I moved your last comment into a separate issue: #3289 |
agrian-joel
added a commit
to agrian-joel/geotrellis
that referenced
this issue
Sep 4, 2020
…eString should serialize those geometries once. Fixes locationtech#3167 Current behavior encodes them in geometries as both `type: MultX` and `type: GeometryCollection` Signed-off-by: Joel Anna <joel@agrian.com>
pomadchin
added a commit
that referenced
this issue
Sep 4, 2020
* Encoding a GeometryCollection with a Multipolygon/MultiPoint/MultiLineString should serialize those geometries once. Fixes #3167 Current behavior encodes them in geometries as both `type: MultX` and `type: GeometryCollection` Signed-off-by: Joel Anna <joel@agrian.com> Co-authored-by: Grigory Pomadchin <gr.pomadchin@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code
prints
The same duplication happens with
MultiPolygons
andMultiLines
when nested intoGeometryCollection
. It appears that this is because aMultiPoint
IS aGeometryCollection
, so theEncoder
retrieves it two times - first bygetAll[MultiPoint]
, then bygetAll[GeometryCollection]
.The text was updated successfully, but these errors were encountered: