[mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D geometries

Smith, Michael ERDC-RDE-CRREL-NH Michael.Smith at erdc.dren.mil
Wed Jun 4 06:23:22 PDT 2014


Andrew,

Looks like your metadata key for the geometry type is wrong its not ows_geometry, should be   "ows_geomtype" “LineString25D"

Mike

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


From: "Andrew.Parry at bentley.com<mailto:Andrew.Parry at bentley.com>" <Andrew.Parry at bentley.com<mailto:Andrew.Parry at bentley.com>>
Date: Wednesday, June 4, 2014 at 7:26 AM
To: Michael Smith <michael.smith at erdc.dren.mil<mailto:michael.smith at erdc.dren.mil>>, "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: RE: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries

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:Michael.Smith at erdc.dren.mil]
Sent: 03 April 2014 13:48
To: Andrew Parry; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
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: "Andrew.Parry at bentley.com<mailto:Andrew.Parry at bentley.com>" <Andrew.Parry at bentley.com<mailto:Andrew.Parry at bentley.com>>
Date: Thursday, April 3, 2014 6:06 AM
To: "mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>
Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Resent-From: Michael Smith <michael.smith at usace.army.mil<mailto:michael.smith at usace.army.mil>>

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:  andrew.parry at bentley.com<mailto:gopi.kumarappan at bentley.com> | www.bentley.com<http://www.bentley.com/>
Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG
Registered in England No. 2957722




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140604/bb9e9d15/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 631 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140604/bb9e9d15/attachment-0001.jpg>


More information about the mapserver-users mailing list