|
srid_list()
Return a list of numberic srids by looking in the spatial_ref_sys
table of the db. |
source code
|
|
|
units_from_srid(srid)
Get the linear units name from the srid definition. |
source code
|
|
|
area_unit_code_from_srid_unit(srid_unit)
Look at Area.LALIAS (a dictionary of lower case aliases found in srid
definitions for units) and return the proper unit abbreviation used
in the django.contrib.gis.measure.Area class. |
source code
|
|
|
distance_unit_code_from_srid_unit(srid_unit)
Look at Distance.LALIAS (a dictionary of lower case aliases found in
srid definitions for units) and return the proper unit abbreviation
used in the django.contrib.gis.measure.Distance class. |
source code
|
|
|
|
|
|
|
units_list()
Return a non repeating list of all the linear units from the
spatial_ref_sys table. |
source code
|
|
|
units_count_dict()
Return a dictionary with linear units as keys and a count of how many
projections in the spatial_ref_sys table use those units as values. |
source code
|
|
|
units(self)
Returns the name of the units, derived from the projection, for a
given geometry. |
source code
|
|
|
distance_object(self)
Return the django.contrib.gis.measure.Distance object for a given
geometry with origin units determined by the geometry's srid. |
source code
|
|
|
area_object(self)
Return the django.contrib.gis.measure.Area object for a given
geometry with origin units determined by the geometry's srid. |
source code
|
|
|
add_dist_meth(cls,
unit)
Add a method to cls called length_UNIT (where UNIT is the value of
unit) that will return the length in those units. |
source code
|
|
|
add_area_meth(cls,
unit)
Add a method to cls called area_UNIT (where UNIT is the value of
unit) that will return the length in those units. |
source code
|
|
|
|
|
convert_float_to_length_display_units(float_value)
Given a float value, this method will convert from the units found in
settings.GEOMETRY_DB_SRID to the units defined in
settings.DISPLAY_LENGTH_UNITS. |
source code
|
|
|
convert_float_to_area_display_units(float_value)
Given a float value, this method will convert from the units found in
settings.GEOMETRY_DB_SRID to the units defined in
settings.DISPLAY_AREA_UNITS. |
source code
|
|
|
|
|
|
|
length_in_display_units(geom_or_num)
Take either a geometry or a numeric length value and convert to
display units. |
source code
|
|
|
area_in_display_units(geom_or_num)
Take either a geometry or a numeric area value and convert to display
units. |
source code
|
|