RE: [OpenMap Users] shapefile checking bounds

From: Hudson Brian R Contr AFRL/IFSF <Brian.Hudson_at_rl.af.mil>
Date: Wed, 4 Aug 2004 22:25:55 -0000

Hey,

If you have a spatial index file along with the shp file it should be pretty
easy.

You can just use the locateRecords function of the SpatialIndex class.

For an example, take a look at the ShapeLayer.

Brian Hudson

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Ben Podoll
Sent: Wednesday, August 04, 2004 5:49 PM
To: openmap-users_at_bbn.com
Cc: 'Don Dietrick'
Subject: [OpenMap Users] shapefile checking bounds


My problem is fairly complex but somewhat straightforward.

I have a shapefile of National Weather Service warnings and watches.

I want to be able to take the extents that the OpenMap is viewing (i.e. the
4 lat/lon corners) and check if any /shape/ in the shapefile intersects. Or
in other words is within their viewing area (or at least a piece of one)?

Is there any good way anyone knows of to do this?

Ben


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com" with the
following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Aug 04 2004 - 18:30:27 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT