Ticket #3256 (new defect)
No valid WFS geometries from Oracle Spatial data source via PHP MapScript
| Reported by: | tnolte | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | MapServer C Library | Version: | 5.6 |
| Severity: | normal | Keywords: | oracle, wfs |
| Cc: |
Description
I'm using a PHP MapScript? WFS wrapper script:
$request = ms_newOwsRequestObj();
/* set some parameters specifically */
if (!array_key_exists('SERVICE',$_REQUEST)) {
$_REQUEST['SERVICE'] = "WFS";
}
if (!array_key_exists('VERSION',$_REQUEST)) {
$_REQUEST['VERSION'] = "1.0.0";
}
foreach ($_REQUEST as $key => $value) {
$request->setParameter($key, $value);
}
ms_ioinstallstdouttobuffer();
if ($_GET['features'] == "sites") {
$oMap = ms_newMapObj("../map/sites.map");
} else {
$oMap = ms_newMapObj("../map/wfs.map");
}
$oMap->owsdispatch($request);
$contenttype = ms_iostripstdoutbuffercontenttype();
$buffer = ms_iogetstdoutbufferstring();
header('Content-Type: '.$contenttype);
echo $buffer;
ms_ioresethandlers();
My WFS client is receiving the data columns but there is no geometry data returned to the client to map. The client that I an using is MapInfo? 9.5.1. Server versions are: Apache 2.2.4, PHP 5.2.6, Oracle 10G R2, MapServer 5.6
Change History
Note: See
TracTickets for help on using
tickets.
