Skip to content

Adding another way to Create a polygon #2925

@OrenNoy28

Description

@OrenNoy28

Hello everyone, I want to ask if there is other way to create a polygon besides using an array.
In the present, i need to create a polygon in this way:
pic1

My problem is that my input is a big string that contains a lot of points, and to get each point i parse my string and set it to the above "Coord" array' and afterward I add it to the polygon.

Is there a way to set the string as is into the polygon without parse it?

Because what if I have a string that contains 20,000 points ? In the current way I will need to build an array with 20,000 cells and add it one by one, and in the end add it to the polygon as the example above.

If there isn't a way in the current version, can you add this ability to the next elastic API version, Please?

Best regards,
Oren Noy
GIS SoftWare Developer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions