Ticket #131 (feature request)
Opened 1 year ago
Last modified 1 year ago
Add CRS defaults to Geometry types
Status: closed (fixed)
| Reported by: | mattrussell | Assigned to: | seang |
|---|---|---|---|
| Priority: | major | Milestone: | geojson-1.0 |
| Component: | GeoJSON | Version: | |
| Keywords: | crs geojson | Cc: | |
Adds crs default structure (if not specified) to a geometry type. Also add from_value classmethod that allows geometry and features to be passed as GeoJSON isntances or dicts. Refactor check methods in geojson.geometry for better style.
Attachments
Change History
10/29/07 21:20:36: Modified by mattrussell
- owner changed from sgillies to mattrussell.
- version deleted.
10/29/07 21:33:46: Modified by mattrussell
Please make sure you get the latest attachment, I uploaded the wrong tar first time (sorry).
10/29/07 21:34:00: Modified by mattrussell
- attachment geojson-0.1a5-candidate.tgz added.
10/31/07 10:29:55: Modified by seang
- owner changed from mattrussell to seang.
- status changed from new to assigned.
Matt, I prefer omitting the crs member unless it is explicitly added to the geo interface.
11/06/07 10:45:03: Modified by seang
- milestone set to GeoJSON 1.0.
11/14/07 23:07:09: Modified by seang
- status changed from assigned to closed.
- resolution set to fixed.
Fixed in r945.
I fixed some Python 2.5 specific code, and changed default crs factory to lambda:None.

0.1a5 candidate is a bit presumptious, but it does offer a nicer way to deal with defaults.
Once again, all tests pass :)
There is a diff in this tar ball in the top level, but also there is one new file 'crs.py'