Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
polygon/patch as index

Subject: polygon/patch as index

From: Robert

Date: 19 Aug, 2009 12:38:06

Message: 1 of 3

Are there any suggestions as to how I can use a polygon/patch (or other method) to sub-select geo-referenced data? i.e. I want to create a group 'a' vector that falls into sub-region 'a'. I am working with coastal station data and want to select stations by non-rectangular sub-regions (so I can't simply use logical operators on lat long) to both analyze and display,

Secondly and less importantly, can I trim the polygon where it overlaps the coastline with, say hi res gshhs coastline data?

Subject: polygon/patch as index

From: Naresh Pai

Date: 19 Aug, 2009 13:37:01

Message: 2 of 3

"Robert " <rsa.robert@gmail.com> wrote in message <h6grne$a3n$1@fred.mathworks.com>...
> Are there any suggestions as to how I can use a polygon/patch (or other method) to sub-select geo-referenced data? i.e. I want to create a group 'a' vector that falls into sub-region 'a'. I am working with coastal station data and want to select stations by non-rectangular sub-regions (so I can't simply use logical operators on lat long) to both analyze and display,

Try the "inploygon" function. Although, it is used to identify a point within a polygon, you may be able to use it for your case.
>
> Secondly and less importantly, can I trim the polygon where it overlaps the coastline with, say hi res gshhs coastline data?

The "polybool" function can be used to intersect two vector data. Perhaps that may work for you.

Subject: polygon/patch as index

From: Robert

Date: 21 Aug, 2009 08:01:33

Message: 3 of 3


> The "polybool" function can be used to intersect two vector data. Perhaps that may work for you.

Thanks, I will look into it...

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us