Michael,

I wonder if you would be able offer some more advice on this. I have a version 
of mapserver compiled with the POINT_Z_M option.
Despite my best efforts, the geometry always returns in 2D. Do you happen to 
have an example map file entry and GetFeatureInfo call example?
Information from my config given below.

Thanks,
Andrew


mapserv -v
MapServer version 6.4.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG 
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

My map file includes this output format

  OUTPUTFORMAT
                  NAME "OGRGML"
                  DRIVER "OGR/GML"
                  FORMATOPTION "STORAGE=filesystem"
                  FORMATOPTION "FORM=multipart"
                  FORMATOPTION "FILENAME=result.gml"
  END


Layers include this metadata definition

    METADATA
      "wms_title"            "ESU"
      "wfs_title"            "ESU"
      "wfs_featureid"        "NE_ID"
     "gml_featureid"        "NE_ID"
      "wfs_enable_request"   "*"
      "wms_enable_request"   "*"
      "gml_include_items"    "all"
                  "wfs_getfeature_formatlist"  "OGRGML"
      "gml_geometries"       "msGeometry"
      "gml_msGeometry_type"  "line"
                  "ows_geometry"                           "LineString25D"
                  "wfs_geometry"                            "LineString25D"
    END


Typical call:-

http://parra5900reml/Mapserver/mapserv.exe?map=nem_highways.map&LAYERS=ESU&QUERY_LAYERS=ESU&STYLES=&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-25660.108682%2C6716795.696074%2C8125.057815%2C6751574.543939&FEATURE_COUNT=1&HEIGHT=910&WIDTH=884&FORMAT=image%2Fpng&INFO_FORMAT=GML.1&SRS=EPSG%3A900913&X=287&Y=24


From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:[email protected]]
Sent: 03 April 2014 13:48
To: Andrew Parry; [email protected]
Subject: Re: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D 
geometries

Andrew,

This is possible. You do need to do several things.


  1.  Mapserver needs to be compiled with USE_POINT_Z_M
  2.  You need to use an OGR output format
  3.  You need to define the output as a 2.5D geometry type, eg, if its a point 
then define the ows/wfs_geometry type as Point25D. See 
mapserver.org/output/ogr_output.html for more info
Mike

--
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers

From: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Thursday, April 3, 2014 6:06 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D 
geometries
Resent-From: Michael Smith 
<[email protected]<mailto:[email protected]>>

Hi,

I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) 
from an Oracle spatial data source.
Right now it is returning 2D as GML. The z value contains a measure that is 
required to determine direction for distance calculations in the client 
(OpenLayers).
Any suggestions welcome.

Regards,
Andrew


Andrew Parry | Software Engineer II
Bentley Systems (UK) Ltd
E-mail:  [email protected]<mailto:[email protected]> | 
www.bentley.com<http://www.bentley.com/>
Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG
Registered in England No. 2957722




_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to