Esempio n. 1
0
 *          @SWG\Parameter(name="className", in="path", required=true, type="string", description="The class name"),
 *          @SWG\Parameter(name="filter", in="query", required=false, type="string", description="The FDO filter to apply"),
 *          @SWG\Parameter(name="properties", in="query", required=false, type="string", description="A comma-separated list of proprety names"),
 *          @SWG\Parameter(name="maxfeatures", in="query", required=false, type="string", description="The maximum number of features to restrict this response to"),
 *          @SWG\Parameter(name="transformto", in="query", required=false, type="string", description="The CS-Map coordinate system code to transform the resulting features into"),
 *          @SWG\Parameter(name="bbox", in="query", required=false, type="string", description="A comma-separated quartet (x1,y1,x2,y2) defining the spatial filter geometry"),
 *          @SWG\Parameter(name="type", in="path", required=true, type="string", description="xml or json", enum={"xml", "geojson"}),
 *        @SWG\Response(response=400, description="You supplied a bad request due to one or more missing or invalid parameters"),
 *        @SWG\Response(response=401, description="Session ID or MapGuide credentials not specified"),
 *        @SWG\Response(response=500, description="An error occurred during the operation")
 *     )
 */
$app->get("/session/:sessionId/:resName.FeatureSource/features.:format/:schemaName/:className", function ($sessionId, $resName, $format, $schemaName, $className) use($app) {
    $resId = new MgResourceIdentifier("Session:{$sessionId}//{$resName}.FeatureSource");
    $ctrl = new MgFeatureServiceController($app);
    $ctrl->SelectFeatures($resId, $schemaName, $className, $format);
});
/**
 *     @SWG\Get(
 *        path="/session/{session}/{resName}.LayerDefinition/features.{type}",
 *        operationId="SelectFeatures",
 *        summary="Queries features from the specified layer definition. Any hyperlink and tooltip expressions will be computed and returned in the response",
 *        tags={"session"},
 *          @SWG\Parameter(name="session", in="path", required=true, type="string", description="Your MapGuide Session ID"),
 *          @SWG\Parameter(name="resName", in="path", required=true, type="string", description="The feature source name"),
 *          @SWG\Parameter(name="filter", in="query", required=false, type="string", description="The FDO filter to apply"),
 *          @SWG\Parameter(name="properties", in="query", required=false, type="string", description="A comma-separated list of proprety names"),
 *          @SWG\Parameter(name="maxfeatures", in="query", required=false, type="string", description="The maximum number of features to restrict this response to"),
 *          @SWG\Parameter(name="transformto", in="query", required=false, type="string", description="The CS-Map coordinate system code to transform the resulting features into"),
 *          @SWG\Parameter(name="bbox", in="query", required=false, type="string", description="A comma-separated quartet (x1,y1,x2,y2) defining the spatial filter geometry"),
 *          @SWG\Parameter(name="type", in="path", required=true, type="string", description="xml or json", enum={"xml", "geojson"}),