[mapguide-users] Devguide sample buffer Error
padmini godavarthi
godavarthi.padmini at gmail.com
Tue Mar 9 03:01:57 EST 2010
Hi,
iam creating buffer in php by looking at the devguide application . i
followed the same process as
from index.php i called task pane in analyzing_features folder. ad then
createbuffer.php
but i when calling createbuffer.php i got nothing means
in createbuffer.php
<?php
include '../common/common.php';
$args = ($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET;
$sessionId = $args['SESSION'];
$mapName = $args['MAPNAME'];
$mapName = ($_SERVER['REQUEST_METHOD'] == "POST")? $_POST['MAPNAME']:
$_GET['MAPNAME'];
try
{
// Initialize the Web Extensions and connect to the Server using
// the Web Extensions session identifier stored in PHP session state.
MgInitializeWebTier ($webconfigFilePath);
$userInfo = new MgUserInformation($sessionId);
$siteConnection = new MgSiteConnection();
$siteConnection->Open($userInfo);
$resourceService =
$siteConnection->CreateService(MgServiceType::ResourceService);
$featureService =
$siteConnection->CreateService(MgServiceType::FeatureService);
$queryOptions = new MgFeatureQueryOptions();
$map = new MgMap();
$map->Open($resourceService, $mapName);
// Check for selection data passed via HTTP POST
if (isset($_POST['SELECTION']) && $_POST['SELECTION'] != '')
{
$selection = new MgSelection($map, $_POST['SELECTION']);
$selectedLayers = $selection->GetLayers();
}
i deleted include '../common/common.php'; and replaced with include
'utilityfunctions.php' only
but it displays nothing in map and the page is just emplty...............
can any boby plz tell me what is my mistake??????????????????????
Regards,
padmini G.
--
View this message in context: http://n2.nabble.com/Devguide-sample-buffer-Error-tp4700780p4700780.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list