Skip to content

Kaligo/python-polygon-coordinate-to-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Polygon Coordinate To Map

I am using python to visualize how a polygon (not yet with multipolygon) can be visualized within this map.

Create Virtual Environment

python -m venv env-name

Activate

source env-name/bin/activateA

Install shit (To env only)

pip install numpy

Deactivate Env

Do this after u finish coding session or sth, or wanna fk of frm env

deactivate

Install Packages

Make sure your env has all the lib inside requirements.txt. Usually just run this when you activate your environment already.

pip install

How to use the repo (once everything is installed and env activated)?

Inside ./script.py, change this line to your prefered polygon coordinates.

...
border = "SRID=4326;POLYGON((101.3260618 0.5985796,101.3277795 0.5965827,...))"

...

Run this to execute

python script.py

You will see changes inside ./polygon_map.html, then you can open it in your browser to see the map with the highlighted area.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published