Coyote Graphics Map Projection Routines

Date: Fri Nov 29 13:44:27 2013

single page | use frames     summary     class     fields     routine details     file attributes

.\

cgshaperange.pro


top cgShapeRange

Utilities, Map Projections

result = cgShapeRange( [shapefile] [, MEAN=float] [, MEDIAN=float] [, XRANGE=float] [, YRANGE=float])

Determines the X (longitude) and Y (latitude) data range of the entities in a shapefile.

Return value

A four-element array containing the extent of the entity data in the shapefile, in the order [xrange[0], yrange[0], xrange[1], yrange[1]].

Parameters

shapefile in optional type=string

The name of the shapefile for which you wish to know the extent. If not provided, the user will be asked to pick a shapefile.

Keywords

MEAN out optional type=float

A two-element float or double array giving the mean or average X value and the mean or average Y value of the entities in the shapefile, respectively

MEDIAN out optional type=float

A two-element float or double array giving the median X value and the median Y value of the entities in the shapefile, respectively

XRANGE out optional type=float

A two-element float or double array giving the minimum and maximum extent of the shapefile entities in the X (longitude) direction, respectively

YRANGE out optional type=float

A two-element float or double array giving the minimum and maximum extent of the shapefile entities in the Y (latitude) direction, respectively

Examples

shapeBoundary = cgShapeRange('states.shp')

Author information

Author:

FANNING SOFTWARE CONSULTING:

David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com

Copyright:

Copyright (c) 2012, Fanning Software Consulting, Inc.

History:

Modification History:

Written by David W. Fanning by 29 August 2012.

File attributes

Modification date: Wed Aug 29 17:20:20 2012
Lines: 147
Docformat: rst rst