Hi All!<div>This may be a naive question, but I am not sure how to do a cartesian projection in PostGIS (version 1.5).<div>Assume that we have a table MySpatialGeometries(id integer, geo geometry), and a tuple with id 10 and geo the rectangle <span style="font-weight: bold;color: #cc0000;"> </span>POLYGON(0 0 0,1 0 0,1 0 1,0 0 1,0 0 0).</div>

<div><br></div><div>How may I calculate the cartesian projection of the geometry along the x,y or z axis?</div><div><br></div><div>For example, how can I make the following calucations:</div><div>1. project on x-axis (project out y,z), result: Linestring (0 0 0, 1 1 0)</div>

<div>2. project on y-axis (project out x,z), result: Point (0 0 0)</div><div>3. project on x,y axis (project out z), result: Linestring (0 0 0, 1 1 0)</div><div>4. project on x,z axis (project out y), result: Polygon(0 0 0,1 0 0,1 0 1,0 0 1,0 0 0).</div>

<div>etc.</div><div><br></div><div>I think that I can express case 3 using the Force2D function.</div><div>But how can I express the other cases?</div><div><br></div><div>Thanks for your help!</div><div><br></div><div>Cheers,</div>

<div>Kostis</div></div>