[Geoserver-users] Does Geoserver use Z-values

Hello,

I've got a WFS set up on Geoserver backed by a postgis database. In the DB i have a geometry column which is a point column with 3d coordinates.

When I send a request to the WFS, those points are returned minus the Z-value.

<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#32610&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">664034.30585,5519355.87758</gml:coordinates>
</gml:Point>

This happens regardless of using a filter on that geom attribute or not.

Does anyone have Geoserver running and serving up 3D points (or other 3D geometries)? Or if this is even supported by Geoserver (1.7.0)?

Looking at some geotools code, it _looks_ as though this should work just fine.

Thanks,
Amr.

Hi Amr,

I am not surprised that information is lost along the way. While GeoServer and GeoTools have the ability to store more than 2 dimensions, little is ever done with the third dimension.

I believe both the gml2 and gml3 encoders both assume 2d, so my impression is that where the z value is being ignored. I know Jody tried to hook up 3d support some while back but failed. Perhaps he can provide more info.

-Justin

Amr A. Alam wrote:

Hello,

I've got a WFS set up on Geoserver backed by a postgis database. In the DB i have a geometry column which is a point column with 3d coordinates.

When I send a request to the WFS, those points are returned minus the Z-value.

<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#32610&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">664034.30585,5519355.87758</gml:coordinates>
</gml:Point>

This happens regardless of using a filter on that geom attribute or not.

Does anyone have Geoserver running and serving up 3D points (or other 3D geometries)? Or if this is even supported by Geoserver (1.7.0)?

Looking at some geotools code, it _looks_ as though this should work just fine.

Thanks,
Amr.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Yeah the guys in Sejong wanted GeoServer to serve up 3D data ... and the
only thing really stopping this is the lack of any 3D data to serve up.
I was able to modify the various GML generation code to notice if their
was 3 dimensions (by looking at the CRS and checking the dimension);
however things got bogged down when geotools / geoserver started trying
to negotiate the difference between 3D data and 2D bounding box requets.
As such we quoted them several weeks worth of work to do the QA etc...

Gabriel and Andrea know more ... but yeah you are in for some work Amr.

Jody

Justin Deoliveira wrote:

Hi Amr,

I am not surprised that information is lost along the way. While
GeoServer and GeoTools have the ability to store more than 2 dimensions,
little is ever done with the third dimension.

I believe both the gml2 and gml3 encoders both assume 2d, so my
impression is that where the z value is being ignored. I know Jody tried
to hook up 3d support some while back but failed. Perhaps he can provide
more info.

-Justin

Amr A. Alam wrote:

Hello,

I've got a WFS set up on Geoserver backed by a postgis database. In the
DB i have a geometry column which is a point column with 3d coordinates.

When I send a request to the WFS, those points are returned minus the
Z-value.

<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#32610&quot;&gt;
<gml:coordinates decimal="." cs="," ts="
">664034.30585,5519355.87758</gml:coordinates>
</gml:Point>

This happens regardless of using a filter on that geom attribute or not.

Does anyone have Geoserver running and serving up 3D points (or other 3D
geometries)? Or if this is even supported by Geoserver (1.7.0)?

Looking at some geotools code, it _looks_ as though this should work
just fine.

Thanks,
Amr.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

Amr A. Alam ha scritto:

Hello,

I've got a WFS set up on Geoserver backed by a postgis database. In the DB i have a geometry column which is a point column with 3d coordinates.

When I send a request to the WFS, those points are returned minus the Z-value.

<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#32610&quot;&gt;
<gml:coordinates decimal="." cs="," ts=" ">664034.30585,5519355.87758</gml:coordinates>
</gml:Point>

This happens regardless of using a filter on that geom attribute or not.

Does anyone have Geoserver running and serving up 3D points (or other 3D geometries)? Or if this is even supported by Geoserver (1.7.0)?

Looking at some geotools code, it _looks_ as though this should work just fine.

Afaik when we query postgis we use the force_2d function to make sure
we're not receiving the Z because the code is not ready to handle it.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.