Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. sql = """
  2. SELECT ST_AsText(ST_Transform(the_geom,4326)) as newgeom,*
  3. FROM public.parcels2010_small limit 5;
  4. """
  5. parcels = pd.read_sql(sql, engine)
  6. parcels
  7.  
  8. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  9. | id | newgeom | the_geom | parcel_id | osm_node_id |
  10. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  11. | 0 | MULTIPOLYGON(((-122.991093691444 38.4878691106... | 01060000209C0E00000100000001030000000100000097... | 1805792 | 66237 |
  12. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  13. | 1 | MULTIPOLYGON(((-122.444576448624 37.7346386006... | 01060000209C0E0000010000000103000000010000008A... | 10435 | 123826 |
  14. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  15. | 2 | MULTIPOLYGON(((-122.796785208193 38.5427593334... | 01060000209C0E0000010000000103000000010000007D... | 1817842 | 313047 |
  16. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  17. | 3 | MULTIPOLYGON(((-122.695538506163 38.3618570798... | 01060000209C0E0000010000000103000000010000009B... | 1934612 | 63776 |
  18. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
  19. | 4 | MULTIPOLYGON(((-122.223424422869 37.8416019090... | 01060000209C0E00000100000001030000000100000072... | 861785 | 26369 |
  20. +----+---------------------------------------------------+---------------------------------------------------+-----------+-------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement