Skip to content

Instantly share code, notes, and snippets.

@kmtracey
Created April 26, 2012 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmtracey/2501200 to your computer and use it in GitHub Desktop.
Save kmtracey/2501200 to your computer and use it in GitHub Desktop.
geom_tests output
(openrural) kmtracey@caktus006 13:35:14: ~/projects/openrural
--> python geom_tests.py
==== convert1 on geosp_with_srid ====
orig SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
==== convert2 on geosp_with_srid ====
orig SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
==== convert1 on geosp_no_srid ====
orig SRID: None, WKT: POINT (1.0000000000000000 2.0000000000000000)
geom_tests.py:6: UserWarning: Calling transform() with no SRID set does no transformation!
geom = geom.transform(srid, True)
geom_tests.py:6: FutureWarning: Calling transform() with no SRID will raise GEOSException in v1.5
geom = geom.transform(srid, True)
convert1 returned None!
==== convert2 on geosp_no_srid ====
orig SRID: None, WKT: POINT (1.0000000000000000 2.0000000000000000)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
==== convert1 on ogrp_with_srid ====
orig SRID: 4326, WKT: POINT (1 2)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
==== convert2 on ogrp_with_srid ====
orig SRID: 4326, WKT: POINT (1 2)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
==== convert1 on ogrp_no_srid ====
orig SRID: None, WKT: POINT (1 2)
Got exception from convert1: OGR failure.
==== convert2 on ogrp_no_srid ====
orig SRID: None, WKT: POINT (1 2)
new SRID: 4326, WKT: POINT (1.0000000000000000 2.0000000000000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment