caleb87 Posted July 3, 2013 Share Posted July 3, 2013 I want to determine the point that is .0018 lat/lon (roughly a 1/10 mile) within the interior of different polygons at each veritces. It doesn't have to be precise, but I really just need to ensure it is within the polygon. The blue dots represent approximate coordinates I want. The google maps points I used for the L shaped polygon: var polygon1 = [ new google.maps.LatLng(48.110073077,-102.568801362), new google.maps.LatLng(48.124993054,-102.568801526), new google.maps.LatLng(48.124573268,-102.547401948), new google.maps.LatLng(48.124603482,-102.525802378), new google.maps.LatLng(48.110173554,-102.52560225), new google.maps.LatLng(48.095623624,-102.525702115), new google.maps.LatLng(48.09563336,-102.547381656), new google.maps.LatLng(48.110123313,-102.547401802), new google.maps.LatLng(48.110073077,-102.568801362), ]; The square wouldn't be too hard, but the L shape has my little brain going. Any suggestions? ** PS. I realize the post title doesn't make sense. Originally I wanted centroids, but decided vertices would be better. Link to comment https://forums.phpfreaks.com/topic/279818-determine-approximate-centroids-of-plss-sections/ Share on other sites More sharing options...
caleb87 Posted July 3, 2013 Author Share Posted July 3, 2013 Well I realized a solution. I guess I'm too quick to post a topic lol I didn't figure out how to determine the middle coordinate of the L shape polygons, which I would still find interesting if anyone knows. I realized I can just use all the verticies that are within 1/10 mile of the min/max XY values (rather than the ones that would fall in the middle). Link to comment https://forums.phpfreaks.com/topic/279818-determine-approximate-centroids-of-plss-sections/#findComment-1439191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.