Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Geographical data

    Dear Statalist,

    I have a time series on road accidents that happened in a particular region. Each accident is recorded as a separate observation defined by two main variables - longitude and latitude of its location. Apart from this, I have five road-zones which I am interested in; these are defined by GPS coordinates of their start and end point. For each accident I want to find out if it happened in one of these specific zones, and if yes, in which one. Do you have any advice?

    Thanks a lot!

  • #2
    Presumably, the zones are defined by more than their start and end points. If you mean that the zone borders are defined by a shapefile (polygons), then you can use geoinpoly (from SSC) to get what you want.

    Comment

    Working...
    X