Location: PHPKode > projects > AppForMap > appformap/wfs/capabilities.php
<WFS_Capabilities version="0.0.14">
   <Service>
      <Name>MaplinkWebFeatureServer</Name>
      <Title>Web Feature Server</Title>
      <Abstract>Open source simple web feature server</Abstract>
      <OnlineResource><?=$thePath?></OnlineResource>
   </Service>
   <Capability>
      <Request>
         <GetCapabilities>
            <DCPType>
               <HTTP>
                  <Post onlineResource="<?=$thePath?>"/>
               </HTTP>
            </DCPType>
         </GetCapabilities>
         <DescribeFeatureType>
            <SchemaDescriptionLanguage>
               <XMLSCHEMA/>
            </SchemaDescriptionLanguage>
            <DCPType>
               <HTTP>
                  <Post onlineResource="<?=$thePath?>"/>
               </HTTP>
            </DCPType>
         </DescribeFeatureType>
         <GetFeature>
            <ResultFormat>
               <GML2/>
            </ResultFormat>
            <DCPType>
               <HTTP>
                  <Post onlineResource="<?=$thePath?>"/>
               </HTTP>
            </DCPType>
         </GetFeature>
         <Transaction>
            <DCPType>
               <HTTP>
                  <Post onlineResource="<?=$thePath?>"/>
               </HTTP>
            </DCPType>
         </Transaction>
      </Request>
      <VendorSpecificCapabilities>
      </VendorSpecificCapabilities>
   </Capability>
<?
    $depth=1;
    writeTag("open",null,"FeatureTypeList",null,True,True);
    $depth++;
    $sql="SELECT f_table_name FROM geometry_columns";
    $result = $postgisObject->execQuery($sql);
    while ($row = pg_fetch_array ($result)) {
      $TableName=$row["f_table_name"];
      writeTag("open",null,"FeatureType",null,True,True);
      $depth++;
      writeTag("open",null,"Name",null,True,False);
      echo $TableName;
      writeTag("close",null,"Name",null,False,True);
      writeTag("open",null,"Title",null,True,False);
      echo $TableName;
      writeTag("close",null,"Title",null,False,True);
      $depth--;
      writeTag("close",null,"FeatureType",null,True,True);
    }
    $depth--;
    writeTag("close",null,"FeatureTypeList",null,True,True);
?>
</WFS_Capabilities>
Return current item: AppForMap