문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top