Changes between Version 4 and Version 5 of GeoDjangoExtras


Ignore:
Timestamp:
10/18/2007 10:45:41 PM (8 years ago)
Author:
tlp
Comment:

Added extents usage for DataSource

Legend:

Unmodified
Added
Removed
Modified
  • GeoDjangoExtras

    v4 v5  
    6666>>> max(layer.get_fields('AREA'))
    6767>>> 6144504439.3812199
    68 
     68>>>
     69>>> # get the extent of your layer (what is the bounding box that this layer covers?)
     70>>> layer.extent.wkt
     71'POLYGON((2901388.75258 13655150.1056,2901388.75258 14013756.5554,3265973.14723 14013756.5554,3265973.14723 13655150.1056,2901388.75258 13655150.1056))'
     72>>> # seeing this does not tell you much if you do not know what srs you are using
     73>>>  print layer.srs
     74PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
     75    GEOGCS["GCS_North_American_1983",
     76        DATUM["North_American_Datum_1983",
     77            SPHEROID["GRS_1980",6378137.0,298.257222101]],
     78        PRIMEM["Greenwich",0.0],
     79        UNIT["Degree",0.0174532925199433]],
     80    PROJECTION["Lambert_Conformal_Conic_2SP"],
     81    PARAMETER["False_Easting",1968500.0],
     82    PARAMETER["False_Northing",13123333.33333333],
     83    PARAMETER["Central_Meridian",-99.0],
     84    PARAMETER["Standard_Parallel_1",28.38333333333333],
     85    PARAMETER["Standard_Parallel_2",30.28333333333334],
     86    PARAMETER["Latitude_Of_Origin",27.83333333333333],
     87    UNIT["Foot_US",0.3048006096012192]]
     88>>>
    6989
    7090}}}
Back to Top