shapefile_dumper.php File Reference


Variables

 $strPathInDcmms = '../'
 $dcmPage = new DcmPage(basename(__FILE__))
$dcmPage strPathInDcmms = '../'
 $strMessage = ""
 $boolShowForm = true
 $_SESSION ['strZipCommand'] = trim($_SESSION['strZipCommand'])
 $boolShowForm = false
 $_SESSION ['strPgClientBinDirectory'] = trim($_SESSION['strPgClientBinDirectory'])
 $boolShowForm = false
 $strTable = $arrRow[0]
 $strColumn = $arrRow[1]
 $arrTranslationPostfix = array('name')
 $strCommand
 $strResult = system($strCommand, $intReturnValue)
 $blnSuccess = false
 $result
 $arrResult = array()

Variable Documentation

$_SESSION['strPgClientBinDirectory'] = trim($_SESSION['strPgClientBinDirectory'])
 

Todo:
Store full pgsql2shp path to ensure OS independence.

$_SESSION['strZipCommand'] = trim($_SESSION['strZipCommand'])
 

Check availability of commands

$arrResult = array()
 

$arrTranslationPostfix = array('name')
 

Update translations if necessary.

$blnSuccess = false
 

$boolShowForm = false
 

$boolShowForm = false
 

$boolShowForm = true
 

$dcmPage = new DcmPage(basename(__FILE__))
 

$result
 

Initial value:

 _("Download ") ?><a href="/ms_tmp/<?= 
           $strTable ?>.zip"><?= $strTable ?>.zip</a>.</p><?php
       } else {
         $strMessage = $strMessage.sprintf(
           _("Failed to dump table '%s' to a shapefile."), 
           $strTable);
         $dcmPage->writelog($strMessage); ?>
         <p class="important"><?= $strMessage ?></p><?php
       }
    }
  } ?>
  <form action="shapefile_dumper.php" method="POST">
    <p><?= _("Please select the table which you want to download.") ?>
      <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
      <table> <?php
  $strQuery = "select oid,f_table_name||'.'||f_geometry_column from ".
    "geometry_columns order by f_table_name, f_geometry_column" pg_query($strQuery)

$strColumn = $arrRow[1]
 

$strCommand
 

Initial value:

 "set PGCLIENTENCODING=".$_SESSION["strShapefileEncoding"].
         " & \"".$_SESSION["strPgClientBinDirectory"]."pgsql2shp.exe\"".
         " -f ".$_SESSION["strMsTmpDirectory"].$strTable." -g $strColumn dcmms ".
         $strTable." -u ".$_SESSION["UserName"]." -P ".
         $_SESSION["Password"].""

$strMessage = ""
 

$strPathInDcmms = '../'
 

$strResult = system($strCommand, $intReturnValue)
 

$strTable = $arrRow[0]
 

$dcmPage strPathInDcmms = '../'
 


Generated on Sat Jul 1 21:19:26 2006 for DCMMS by  doxygen 1.4.6-NO