Jump to content

Recommended Posts

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.

post-146636-0-57932200-1372823427_thumb.jpg

Edited by caleb87

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).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.