Showing posts with label Filters. Show all posts
Showing posts with label Filters. Show all posts

Tuesday, February 26, 2008

Using GSAK Polygon Filters

Finally, the last episode in the adventures of GSAK line, arc, and polygon filters! Since we've already covered lines and arcs, that would leave . . . . POLYGONS! If you were paying attention during Geometry class, you know that a polygon is is a plane figure that is bounded by a closed path or circuit, composed of a finite sequence of straight line segments (i.e., by a closed polygonal chain). These segments are called its edges or sides, and the points where two edges meet are the polygon's vertices or corners. The interior of the polygon is called its body. Also, in a simple polygon, the boundary of the polygon does not cross itself.

You did remember that, right? Right?? Oh, well, even if you didn't, I'm sure you have the idea. A triangle is a simple polygon. So is a square. So is that hexagonal stop sign at the street corner. Unlike those examples, which are all convex and often equilateral, a GSAK polygon can be any shape as long as it is simple (no crossing edges), and each of its sides can be any length.

This filter will select all of the waypoints that are contained INSIDE a closed polygon. You can have as many sides to the polygon as you wish. To keep the example simple, I will just take the route I used in the previous example, and turn it into a closed polygon by connecting my last Rockford lat/long to my initial Schaumburg lat/long. There are two important things you have to remember about polygons. First, just like with a route, the lat/long pairs have to appear in order as you make your way around the polygon (but it doesn’t matter what your starting point is). Second, the LAST lat/long in your polygon definition has to be the same as your FIRST – that is, you have to CLOSE the polygon. Notice in the following filter that the first and last lat/long pairs are the same, and also that the box for specifying distance is no longer available.





Here’s the map, showing the closed polygon, and all the caches contained inside that area.




Finally, one other option that wasn’t discussed earlier is the “Exclude” option on the Arc/Poly tab. If you check this box, it basically reverses the filter – select all waypoints that are NOT within “x” miles of these points, select all waypoints that are NOT within “x” miles of this line/arc, select all waypoints that are NOT contained inside this polygon. Go back and take a look at the original map showing ALL of the northern Illinois waypoints. Using the same polygon filter as in our last example, but specifying “Exclude”, we get a result like the next map. See the big empty area inside the polygon?

The "Exclude" option works just as well with points, lines, and arcs -- that is, you can find everything that is NOT within 5 miles of a point (for example), or NOT within 2.5 miles of a route. You're limited only by your imagination!



Profile for WascoZooKeeper

Tuesday, February 12, 2008

Using GSAK Arc Filters - Part II

Ready for a more complicated route? I’m going to travel from Schaumburg, to Downers Grove, DeKalb, Aurora, Rochelle, and Rockford, and I want to find all the caches that are within 2 miles of my route. I’ll use Maporama again to get my lat/long coordinates that I need. Here’s what my route looks like.

And here’s what the GSAK filter looks like:

Notice that you have to list the coordinates in the filter in the order they will occur on the route! When I apply that filter, I get 197 waypoints, which are plotted on the next map.





Profile for WascoZooKeeper

Saturday, February 9, 2008

Using GSAK Arc Filters - Part I


Enough of Webby's warm and fuzzy stories! Let's get geeky again!

Just a short time ago, I explained the basics of using a GSAK point filter and then extended that to including multiple points in a filter. With a few clicks of the mouse, it's easy to move on to an arc filter -- similar to gc.com's "caches along a route", but working from your offline GSAK database. (In fact, before gc.com introduce the oft-requested "caches along a route", this was pretty much the only way you could do it.)

We’ll start with a real simple one. You notice that the two points I used before in Schaumburg and Lombard have a north-south road that nearly connects them. For the sake of this example, let’s assume that I plan to travel on that road, and as I travel from Schaumburg to Lombard, I’m willing to go about 1-1/2 mile off my route to find a cache. So this example is very simple. In the filter, I will select “Arc/Line” instead of “Points”, and will limit my distance to 1-1/2 miles.This gives me 44 waypoints, all within 1-1/2 miles of the black line on the map which connects the two points of the arc. In this simple example, since I only have two points, it doesn't matter in what order I list them in the filter.




Profile for WascoZooKeeper

Friday, January 25, 2008

Using GSAK Point Filters - Part II

In my previous post, I showed how to use a simple GSAK point filter. As you saw, it did pretty much the same thing as filtering based on distance from your centre point, but you're not restricted to using your centre point or, for that matter, any cache in your database. The point filter can be based on any arbitrary lat/long you wish (although it's obviously useless to pick a lat/long outside of the area covered by your database).

Now, let’s do the same thing with multiple points. Let’s say I’m going to be at the Marriott in Schaumburg for a day, then I’m going to be in Lombard the next day. I’d like to find caches near both locations and load them at the same time, so I’ll be all set for my trip.

Using Maporama again, I find that the lat/long for the location I’ll be in Lombard is 41.887 , -88.018. So, I just add that to the same filter in GSAK. (Remember, you can click on the image here to see a bigger view of it.)

You can see that the list of points now includes TWO lat/long combinations. When I apply this filter, I now get 79 waypoints – 17 more than I did for just the Schaumburg filter.

When I plot those on a map, I now have two clusters of waypoints – one set within 3 miles of the green flag in Schaumburg, and another set within 3 miles of the yellow flag in Lombard.

It doesn't get much easier than that!


Coming up next: Arc filters




Profile for WascoZooKeeper



Thursday, January 24, 2008

Using GSAK Point Filters - Part I

A lot of geocachers use GSAK (Geocaching Swiss Army Knife) for managing an offline database of geocaching waypoints, and most have used simple filters for focusing in on a subset of caches they're interested in. Many I've spoken to, however, have never explored the power of "point", "arc", and "polygon" filters. At first glance, they can seem intimidating -- but they're quite powerful and useful, and once you've tried them you'll find they're not that hard to use. I wrote up some documentation on this subject a while back to share with some other members of GONIL (Geocachers of Northeastern ILlinois), which I'll share with you here. Due to its length, I'll address each type of filter in a separate post.

My default GSAK database contains over 4000 waypoints in northern Illinois, roughly from I-80 north to the Illinois/Wisconsin state line (also known as the “cheese curtain”). This is what the waypoints look like when plotted on Microsoft Streets & Trips -- click the map to see a bigger image.

Let’s look at point filters first. You’ve probably used filters before where you specify an existing waypoint (or a defined GSAK “location”) as your center point and then specify a given distance from that waypoint. That filter would look something like this. A point filter is similar, in that it selects waypoints within a circular boundary, but there are two key differences – you can specify any arbitrary lat/long coordinates as your center points (not just an existing waypoint or location), and you can have multiple center points.

We’ll start with a simple example of a single point for a point filter. Let’s say I’m going to be at a meeting at the Marriott Hotel in Schaumburg, Illinois. I expect to have some free time, so I want to know what caches are within 3 miles of the Marriott. I need a way to center a filter at (or very close to) the Marriott.

One way I could do this is to find an existing cache near the Marriott and specify that as my center point in GSAK. But another way is to simply find out the lat/long of the Marriott. There are many ways to do this, but one easy way I do this is to use the website www.maporama.com, because once I find the location I want, it displays the lat/long right there on the map page. So I’ve found the Marriott at Golf Road just west of I-290:
and to the left of the map, I see that the lat/long at that location is 42.05, -88.038 (I’ve highlighted it in blue). (Important note: Maporama displays the lat/long of the CENTER of the current map – NOT the circular target you see on the map. The target may be in a different location because of how you searched. Don’t worry about whether you SEE the target or not – as long as the location you want is in the center of the map, the lat/long displayed is what you want.) Google Earth is another good option for locating the lat/long of a location for you.


So now I go to GSAK and set a filter. Click on the “Arc/Poly” tab. Enter the lat/long of the Marriott into the box on the left, select “Points” as the filter type, and specify a distance. Click “Go”.







When I apply this filter, I get 62 waypoints returned, and they look like this on the map (I put a green flag on the map to display where the Marriott is). As you can see, I could have picked that cache just SW of the Marriott and used it as my center point for a simple filter, but by specifying the lat/long of the Marriott itself, it doesn’t matter whether there’s a cache nearby.

That was pretty painless, wasn't it? In my next post, I'll show how to use multiple points in the same filter.



Profile for WascoZooKeeper