Skip to content
Advertisement

How to create a polygon in JTS when we have list of coordinate?

We can create a LineString using coordinates list like this:

JavaScript

How can we create a polygon using coordinates list?

Thanks in advance.

Advertisement

Answer

Use these line of codes:

JavaScript

I hope it will help 🙂

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement