title: 3D point to 2D point conversion - Postgresql
body: <p>I'm working on building the backend for a geospatial application. It involves the storage of latitude , longitude and altitude (optional). </p>
  
  <p>The column <code>Location</code> in the table is of the type - <code>Location geography(POINtZ,4326)</code></p>
  
  <p>The insertion statement 
  <code>"INSERT INTO someTable (Location) VALUES(ST_GeographyFromText('SRID=4326;POINT(?)');</code></p>
  
  <p>I do not have a problem in inserting a 3d point (in String format) in place of the "?", but how do I go about the case where I have just the longitude and latitude present? For obvious reasons I do not want to manipulate the location string to have a third value (altitude) to be set to zero.</p>
  
  <p>I'm hoping someone could help me to figure this issue out.</p>
  
  <p>Thanks in advance.</p>