>  Docs Center  >  Libraries  >  Coyote  >  CGSHAPERANGE

CGSHAPERANGE

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

Categories


    Utilities, Map Projections
     

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
     

Examples


    shapeBoundary = cgShapeRange('states.shp')
   

Returns


    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]].
   

Params


    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

History


Modification History


      Written by David W. Fanning by 29 August 2012.
     

Copyright


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



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us