title: Spatial SQL: Most suitable datatype for a square?
body: <p>I have a spatially enabled database (DB2, in this case). I need to store a large number of squares in a table. Which standard spatial SQL datatype is most suitable?</p>
  
  <p>I guess I could use an <em>ST_polygon</em>, but maybe there is a more specialized type which would give</p>
  
  <ul>
  <li>better performance</li>
  <li>better data guarantees (I want to catch it as an error if someone where to store a non-square value in the particular column)</li>
  </ul>
  
  <p>I've tried to find an <em>ST_rectangle</em> or <em>ST_square</em> type, but they don't seem to exist(?)</p>
  
  <p>While I'm working with DB2, I'm also interested in solutions which don't work on DB2, as long as they are standards-compliant.</p>