NAME
distancetopolygon - get minimum distance to polygon(s) from a database
SYNOPSIS
distancetopolygon [-v] dbname [lat lon]
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
DESCRIPTION
distancetopolygon is a simple tool do get minimm distance to a set of polygons for a specified point.
The script uses the method by Burke (1988). It gives either the distance to the closes point on the
boundary or to the closes vertex, whatever is smaller.
OPTIONS
-
-v
Verbose flag. When specified, the distance to all polygons found in the dataset is given and each polygon is checked for inclusion.
-
dbname
Name of database with polygon information. This argument is required. Note that the database must be in polygon1.x schema.
-
lat lon
Coordinates, separated by space(s). If no coordinates are given on the command line, the program will ask for them.
EXAMPLE
distancetopolygon $LDB/BekannteGrenzen 47 16
dbsubset $LDB/BekannteGrenzen.polygon "pname=~/Austria/||ptype !~/cb/" |\
distancetopolygon - 47 16
SEE ALSO
polygon(3), inwhichpolygons(3), polygon_schema(5), regions2polygon(1)
AUTHOR
Nikolaus Horn, 2014
ZAMG / Vienna, Nikolaus.Horn@zamg.ac.at
Antelope User Group Contributed Software