 |
MnGCA Minnesota Geocaching Association
|
| View previous topic :: View next topic |
| Author |
Message |
Moe the Sleaze Geocacher

Joined: 10 Jan 2003
Posts: 1130 Location: Champlin, MN
|
Posted: Tue Dec 02, 2003 6:24 pm Post subject: Available spots in the County Parks |
|
|
Feel free to move this under "Park relations" if you think it belongs there.
IMO, it would be handy to have a page on the web site that listed the various Ramsey and Three Rivers parks, how many caches were currently in each, and how many openings are left. Would that be possible? _________________ "Hi, I'm Moe, or as the women know me - Hey! You in the bushes."
-Moe, The Simpsons |
|
| Back to top |
|
 |
rickrich Geocacher
Joined: 06 Jul 2003
Posts: 673
|
Posted: Wed Dec 03, 2003 11:48 am Post subject: |
|
|
This could certainly be accomplished automatically by using the "polygon" filtering capability of gpsbabel. I volunteer to do the scripting to generate such a page if somebody else will enter sufficiently accurate polygons for each of the parks.
Here is the relevant documentation from gpsbabel.
| Code: |
POLYGON
The polygon filter includes points if they are inside of a polygon.
A polygon file looks like an arc file, except that the arc it
describes must be a closed cycle. That is, for a simple polygon,
the first and last points must be the same. Here's a square:
# A square (not really) polygon
41.0000 -85.0000
41.0000 -86.0000
42.0000 -86.0000
42.0000 -85.0000
41.0000 -85.0000
Polygons may include islands and holes. To specify an island or a
hole, just append it to the main polygon.
As with the arc filter, you specify a polygon by specifying the name
of the polygon that contains it, using the file option. You can also
specify the exclude option, which reverses the operation of the filter
so that it only includes points that are NOT in the polygon.
Note that this filter currently will not work properly if your polygon
contains one or both poles or if it spans the line of 180 degrees
east or west longitude.
For example, assume you have a polygon file that defines the border of
your county, called mycounty.txt. This command line will give you only
the points in your county:
gpsbabel -i geo -f 1.loc -x polygon,file=mycounty.txt \
-o mapsend -F 2.wpt
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group Geocaching Cache Icons, Copyright 2009, Groundspeak Inc. All rights reserved. Used with Permission.
|