comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Subset point data using shape file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Subset point data using shape file [message #85069 is a reply to message #85068] Mon, 01 July 2013 06:13 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Justin Beckers writes:

> Accessing the polygons vertices and bounds has been relatively straightforward, I am just unsure of how to proceed to subset the data using this information. I did subset the tracks using the latitude range of the bounding box, but this still leaves me with points that are outside my shapefile (e.g. for tracks that cut diagonally across near the top left of the bounding box/shape)

You can find an article, with a couple of functions, for finding whether
a point is inside a polygon here:

http://www.idlcoyote.com/tips/point_in_polygon.html

Ronn Kling also has an algorithm that I hear is very good:

http://www.rlkling.com/cool-stuff.htm

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL GSW toolkit?
Next Topic: Re: peak analysis

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 15:20:18 PDT 2025

Total time taken to generate the page: 0.63936 seconds