Question

Does anyone know a way to programmatically create a cold/warm front vector given a list of vertices (note the vertices do not contain the little triangles or half circles; [-105W, 40.45N],etc...)?

I'm trying to drop a "Current Front Positions" overlay on a web mapping application.

I was hoping to use PHP, Python, Javascript or even a map server to accomplish this task, but wanted to see if there were any good suggestions of where to start.

Was it helpful?

Solution

For Python;

You would have to capture the image first, e.g. using the Python Imaging Library. You could use its ImageDraw module to draw lines and arcs on the image.

If you want to draw (Bézier) curves, you would need to find a library that can handle those. E.g. cairo, with the py-cairo bindings.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top