1 |
fraynaud |
72 |
<?php |
2 |
|
|
// $Id: var.inc,v 1.3 2010-09-09 15:36:39 fraynaud Exp $ |
3 |
|
|
// parametre general |
4 |
|
|
$longueurRecherche=1; |
5 |
|
|
// *** ADRESSE POSTALE INTERNE *** |
6 |
|
|
// table et champs de la requete adresse postale |
7 |
|
|
$t="adresse_postale"; // table adresse postale |
8 |
|
|
$t_voie = "rivoli"; // code adresse |
9 |
|
|
$t_numero="num_voi"; // numero dans la voie |
10 |
|
|
$t_complement="suf_voi"; // suffixe (bis, ter ...) |
11 |
|
|
$t_geom="the_geom"; // geometry point(X,Y) |
12 |
|
|
$t_adresse="(typevoie ||' '||nomvoie)"; // libelle de l adresse |
13 |
|
|
$t_quartier="id_parc"; |
14 |
|
|
// *** a voir |
15 |
|
|
$t_cp=''; // nom champ cp |
16 |
|
|
$t_ville=''; // nom champ ville |
17 |
|
|
$t_insee=''; // nom champ insee |
18 |
|
|
// prevoir un champ selection sur le code commune pour ign |
19 |
|
|
// $selection =" where codeinsee='13004'"; // |
20 |
|
|
// champ du formulaire |
21 |
|
|
$f_numero='numero_voie'; // nom champ du numero dans la voie |
22 |
|
|
$f_voie='voie'; // nom champ du code de la voie (rivoli) |
23 |
|
|
$f_complement='complement'; // nom champ du complement de numero |
24 |
|
|
$f_geom='geom'; // nom champ geometrique point(X,Y) |
25 |
|
|
$f_libelle='libelle_voie'; // nom champ libelle de la voie |
26 |
|
|
// *** a voir |
27 |
|
|
$f_cp=''; // nom champ cp |
28 |
|
|
$f_ville=''; // nom champ ville |
29 |
|
|
$f_insee=''; // nom champ insee |
30 |
|
|
// base de donnees externe a la base en cours |
31 |
|
|
$db_externe='Non'; |
32 |
|
|
$dsn_externe= array( |
33 |
|
|
'title' =>"base des adresses de l'IGN", |
34 |
|
|
'phptype' => "pgsql", |
35 |
|
|
'dbsyntax' => "pgsql", |
36 |
|
|
'username' => "postgres", |
37 |
|
|
'password' => "postgres", |
38 |
|
|
'protocol' => "tcp", |
39 |
|
|
'hostspec' => "localhost", |
40 |
|
|
'port' => "5432", |
41 |
|
|
'socket' => "", |
42 |
|
|
'database' => "odp", |
43 |
|
|
'formatdate'=> "AAAA-MM-JJ", |
44 |
|
|
'schema' => "public", |
45 |
|
|
'prefixe' =>"" |
46 |
|
|
); |
47 |
|
|
$db_option_externe=array('debug'=>2, |
48 |
|
|
'portability'=>DB_PORTABILITY_ALL); |
49 |
|
|
// *** ADRESSE POSTALE EXTERNE *** |
50 |
|
|
// variables par defaut cp et ville si non renseignées dans le formulaire |
51 |
|
|
// pour recherche |
52 |
|
|
$cp="13200"; |
53 |
|
|
$ville="Arles"; |
54 |
|
|
$pays = ""; // a voir |
55 |
|
|
// epsg de transformation pt adresse postale dans la base en cours |
56 |
|
|
$epsg= "EPSG:27563"; |
57 |
|
|
// acces au script adresse_postale externe |
58 |
|
|
$adresse_interne="Oui"; |
59 |
|
|
$google="Oui"; // google |
60 |
|
|
$bing="Oui"; // bing |
61 |
|
|
$osm="Oui"; // mapquest |
62 |
|
|
?> |