Skip to content

GeoJson: Add factory methods to create Geometries from primitive arrays #171

Closed

Description

@ivovandongen

When using the geojson classes from jni, there is a performance hit as all factory methods are now neatly typed. For example: MultiPolygon#fromCoordinates(List<List<List<Position>>> coordinates). This means creating multiple nested arrays of Position objects and turning all of those into Lists. This is great from Java, very messy from jni.

Let's add methods like: MultiPolygon#fromCoordinates(double[][][][] coordinates) (already lost count of the []'s)

cc @zugaldia

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions