Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.5k views
in Technique[技术] by (71.8m points)

javascript - Place points in polygon

i start map on GeoConcept but i have a problem. i need to place some point on map, and for that i want to convert surface to point ( point at random position in this area), but GeoConcept don't have that possibility ( or i dont know how), so i search methot to convert the polygon shape to point in python ( or directly on geoconcept).

I have extract the position of polygon : POLYGON((1238877.32 6135356.13,1238863.39 6135351.75,1238864.98 6135341.4,1238878.91 6135339.41,1238877.32 6135356.13))

This is an simple polynom exemple. I'm not pro in mathematic :/

I have search how to convert polynom to an array / list of points but i dont find the solution. I work with python or JS if its more simple. If you know an function / algorythme that can be awsome :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...