[mapserver-users] GEOMTRANSFORM definition causing an error
tday
tday at notionslate.net
Fri Sep 27 07:06:11 PDT 2013
Yes, you are correct about the php...here is the entire php code:
$request = ms_newowsrequestobj();
$request->loadparams();
$request->setParameter("VERSION","1.1.0");
$request->setParameter("SERVICE","WFS");
ms_ioinstallstdouttobuffer();
$oMap = ms_newMapobj("mapfiles/wfs.map");
$oMap->owsdispatch($request);
$contenttype = ms_iostripstdoutbuffercontenttype();
$buffer = ms_iogetstdoutbufferstring();
header("Access-Control-Allow-Origin: http://wwwd.visualapms.com");
if (strtolower($request->getvaluebyname("REQUEST")) == "getcapabilities"
|| (strtolower($request->getvaluebyname("OUTPUTFORMAT")) != "json"
&& strtolower($request->getvaluebyname("OUTPUTFORMAT")) !=
"geojson"))
{
header('Content-type: application/xml');
}
echo $buffer;
ms_ioresethandlers();
I'm thinking the allow-origin header is probably why you could not get a
response...
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080566.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list