title: Getting longitude and latidude from postgis database with sqlalchemy
body: <p>I am using the sqlalchemy package to state queries to my postgis database which is filled with .osm data of a city. I want to retrieve the longitude and latitude values from lets say the planet_osm_point table. 
  I state the sql query which looks like this:</p>
  
  <pre><code>      SELECT st_y(st_asewkt(st_transform(way, 4326))) as lat,
               st_x(st_asewkt(st_transform(way, 4326))) as lon
               "addr:housenumber" AS husenumber,
               "addr:street" AS street,
               "addr:postcode" AS postcode
        FROM planet_osm_point
  </code></pre>
  
  <p>Sqlalchemy throws me this error:</p>
  
  <pre><code>sqlalchemy.exc.InternalError: (psycopg2.InternalError) FEHLER:  Argument to ST_Y() must be a point
  </code></pre>
  
  <p>The only problem is the <strong>ST_Y()</strong> and <strong>ST_X()</strong> function.</p>