Skip to content

arobase2b/Postgres-To-Gwern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PostgresToGwern

Exemples :

/**
     * Instanciation de PostgresToGwern, permet de générer un fichier SHP 
     *
     * @param string $host
     * @param string $username
     * @param string $password
     * @param string $destinationFolder chemin où sera sauvegarder le zip contenant de le shp
     */
$pTG = new PostgresToGwern("localhost", "postgres", "root", "downloadShpZip");

/**
     * Execute la requete passée en paramètre et génère un ZIP contenant le SHP.
     * 
     * @param string $filename
     * @param string $dbname
     * @param string $queryString
     * @return bool
     */
$pTG->query("test1", "gwern1", "\"SELECT * FROM ".'\"zh2-polygon\"'." WHERE id='idtutu'\"");

Requirements :

Php 7.1

postgresql 11

pgsql2shp dans le PATH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%