Skip to content

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

@ivovandongen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions