Opened 15 years ago
Last modified 15 years ago
#257 closed enhancement
Ability to cast from geography to geometry — at Initial Version
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 1.5.0 |
Component: | postgis | Version: | |
Keywords: | Cc: |
Description
Perhaps I missed this -- but how does one CAST from geography to geometry without going thru ST_AsText
I can do this geography(somegeometry)
but no equivalent geometry(somegeography)
and when I do this: a.the_geog::geometry I get this: cannot cast type geography to geometry
Also by the way your tests are failing again.
Suite: Geodetic Suite Test: test_signum() ... passed Test: test_gbox_from_spherical_coordinates() ... passed Test: test_gserialized_get_gbox_geocentric() ... passed Test: test_clairaut() ... passed Test: test_edge_intersection() ... FAILED 1. cu_geodetic.c:353 - CU_ASSERT_EQUAL(rv,LW_TRUE) 2. cu_geodetic.c:361 - CU_ASSERT_EQUAL(rv,LW_TRUE) Test: test_edge_distance_to_point() ... passed Test: test_edge_distance_to_edge() ... passed Test: test_lwgeom_distance_sphere() ... passed
Note:
See TracTickets
for help on using tickets.