APREDIT


ATTENTION: arpedit is up for a major rewrite into a module (Geo::ArcView::Apr). v1.2 should be out shortly.
Download / view script here

NAME

  apredit - Arcview GIS project file command line editor.


VERSION

  1.1


SYNOPSIS

  apredit [-f] inputfile newpath


DESCRIPTION

  apredit updates / edits path information of Arcview GIS project files in
  a command line fashion.  My main reasoning behind writing this utility is
  I was constantly editing my .apr files as a result of data changing locations
  over time, so I thought a simple tool would be helpful.

  The -f option forces checking the new path given to
  exist on the host system.  The script has been tested against .apr files of
  ArcView GIS version 2.0 and up.

 For portable .apr files, using the "rel" keyword will give coverages a relative
  linkage.

  For the project file entered, apredit creates a backup file (extension .bak)
  and edits the paths of each shapefile or coverage or theme to the user's input.


PREREQUISITES / MODULES

  This script uses the File::Copy and File::Basename modules, both in
  the Standard Perl Library.


OPTIONS / FLAGS

  -f  Force checking of newpath on local system directory structure.


ARGUMENTS

  inputfile - name of ArcView GIS .apr file to edit
  newpath   - name of newpath to insert/update


EXAMPLES

  To edit a file with your new path info:

  $ ./apredit myfile.apr /home/user/dem8/

  To invoke force checking of new path:

  $ ./apredit -f myfile.apr /home/user/dem8/

 To force relative coverages:

  $ ./apredit myfile.apr rel


AUTHOR

  Tom Kralidis
  tomkralidis@hotmail.com
  http://jedi.kralidis.ca/gis/


GIS Home
Home