Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove crs (custom map projection) feature to match standard #124

Merged
merged 1 commit into from
Apr 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions geojson/crs.py

This file was deleted.

4 changes: 0 additions & 4 deletions geojson/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@
from geojson.geometry import GeometryCollection
from geojson.feature import Feature, FeatureCollection
from geojson.base import GeoJSON
from geojson.crs import Named, Linked

__all__ = ([Point, LineString, Polygon] +
[MultiLineString, MultiPoint, MultiPolygon] +
[GeometryCollection] +
[Feature, FeatureCollection] +
[GeoJSON])

name = Named
link = Linked
6 changes: 1 addition & 5 deletions geojson/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ class Geometry(GeoJSON):
Represents an abstract base class for a WGS84 geometry.
"""

def __init__(self, coordinates=None, crs=None, validate=False, **extra):
def __init__(self, coordinates=None, validate=False, **extra):
"""
Initialises a Geometry object.

:param coordinates: Coordinates of the Geometry object.
:type coordinates: tuple or list of tuple
:param crs: CRS
:type crs: CRS object
"""

super(Geometry, self).__init__(**extra)
Expand All @@ -33,8 +31,6 @@ def __init__(self, coordinates=None, crs=None, validate=False, **extra):
errors = self.errors()
if errors:
raise ValueError('{}: {}'.format(errors, coordinates))
if crs:
self["crs"] = self.to_instance(crs, strict=True)

@classmethod
def clean_coordinates(cls, coords):
Expand Down
30 changes: 0 additions & 30 deletions tests/test_crs.py

This file was deleted.