Skip to content

Generates one random coordinate from a set of polygons in a .kml

License

Notifications You must be signed in to change notification settings

ov3qPI/random_coordinate_from_polygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Generates one random coordinate from a set of polygons in a .kml

This script generates a random coordinate point within the boundaries of polygons defined in a KML file. The script parses the KML file, extracts polygon data, and produces a point that lies within the polygons.

Requirements

  • Python 3
  • Required Python libraries:
    • lxml
    • shapely

You can install the required libraries by running the following command:

pip install lxml shapely

Notes

  • Ensure that the KML file structure adheres to the expected format, specifically with <Placemark> and <Polygon> tags.

About

Generates one random coordinate from a set of polygons in a .kml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages