Define Geometries from WKT

Well Known Text is a standard text-based format for defining geometries.

  • Specify spatial coordinates with the first number as longitude and the second number as latitude.

    POINT (-73.935242 40.730610)  # LONGITUDE=-73.935242 LATITUDE=40.730610
    
  • Note that polygons must be closed, meaning that the first and last coordinates must be the same.

    POLYGON ((0 0, 0 1, 1 1))       # BAD
    POLYGON ((0 0, 0 1, 1 1, 0 0))  # GOOD
    
  • Add holes to polygons by specifying a second set of coordinates.

    POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0), (1 1, 1 9, 9 9, 9 1, 1 1))
    
Anyone with the link

Pay Tool Creator: Roy Hyunjin Han0
Set Visibility: Hidden0
Total0