Although I do not have the answer to your question, I guess but you
might want to have a look at the module Geo::Shapefile. Using it you
can extract the coordinates of the vertices within the desired region
and then use PDL to "rasterize" the arcs. Of course there may be
better or cleaner methods out there.

H.

2011/2/1 Puneet Kishor <[email protected]>:
> A colleague was staring at his monitor trying to figure out how to clip
> a portion of a Shapefile using a rectangular image as a mask using
> Matlab. Sidenote: the rect mask was "tilted," that is, its rect bounding
> box was bigger than the actual mask image.
>
> I started wondering if I could do this with PDL. Matlab can read a
> Shapefile (a vector format) and essentially convert it into a gridded
> data set. I am assuming something to the effect of 1s for the inside and
> 0s for the outside (or some other value for the inside based on an
> attribute column).
>
> Question -- Is there a way to read in a Shapefile into PDL?
>
>
>
>
>
>
> --
> Puneet Kishor
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to