/usr/lib/python2.7/dist-packages/geojson/crs.py is in python-geojson 2.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | from geojson.base import GeoJSON
class CoordinateReferenceSystem(GeoJSON):
"""
Represents a CRS.
"""
def __init__(self, properties=None, **extra):
super(CoordinateReferenceSystem, self).__init__(**extra)
self["properties"] = properties or {}
class Named(CoordinateReferenceSystem):
"""
Represents a named CRS.
"""
def __init__(self, properties=None, **extra):
super(Named, self).__init__(properties=properties, **extra)
self["type"] = "name"
def __repr__(self):
return super(Named, self).__repr__()
class Linked(CoordinateReferenceSystem):
"""
Represents a linked CRS.
"""
def __init__(self, properties=None, **extra):
super(Linked, self).__init__(properties=properties, **extra)
self["type"] = "link"
class Default(object):
"""GeoJSON default, long/lat WGS84, is not serialized."""
|