title: Storing a WKBElement in PostGis using Geoalchemy2 results in an incorrect longitude
body: <p>I'm working on an application which needs to be able to store a point in a PostGis database. I'm using GeoAlchemy, and it seems to store an incorrect longitude.</p>
  
  <p>I have this code to process a request to add an Event with Point location data.</p>
  
  <pre><code>json_data = request.get_json(force=True)
  if "location" in json_data:
      json_location = json_data["location"]
      geojson_geom = geojson.loads(json.dumps(json_location))
      geom = from_shape(asShape(geojson_geom), srid=4326)
      json_data["location"] = geom
  
  event = Event(**json_data)
  try:
    session = Session()
    session.add(event)
    session.commit()
    session.refresh(event)
  except IntegrityError as e:
    abort(409, error=e.args[0])
  </code></pre>
  
  <p>The model I use</p>
  
  <pre><code>class Event(Base):
      __tablename__ = 'events'
  
      id = Column(Integer, primary_key=True)
      name = Column(String, nullable=False)
      location = Column(Geography(geometry_type='POINT', srid=4326), nullable=False)
  </code></pre>
  
  <p>When I use this test data:</p>
  
  <pre><code>{
    "name": "Test",
    "location": {
      "coordinates": [
        47.65641, 
        -117.42733
      ],
      "type": "Point"
    }
  }
  </code></pre>
  
  <p>Then <code>str(geom)</code> will equal <code>010100000039622d3e05d4474061a6ed5f595b5dc0</code>, and if I use <a href="https://rodic.fr/blog/online-conversion-between-geometric-formats/" rel="nofollow noreferrer">this converter</a> I get <code>POINT(47.65641 -117.42733)</code>, which is the correct location.</p>
  
  <p>However when I look up the row in the database I see that <code>0101000020E610000039622D3E05D447403EB324404D494FC0</code> is stored in the location column, which is <code>POINT(47.65641 -62.57267)</code>: a very different longitude.</p>
  
  <p>As far as I know, I supply the correct data and format to GeoAlchemy2 and I would greatly appreciate if someone could hint at what I am doing wrong here.</p>