617,10 → 617,11 |
|
static function identReferentiel($referentiel, $ligne, $ref_ligne) { |
// SELECT DISTINCT nom_referentiel, COUNT(id_observation) AS count FROM cel_obs GROUP BY nom_referentiel ORDER BY count DESC; |
if(strpos($referentiel, 'bdtfx') !== FALSE) return 'bdtfx:v1.01'; |
if(strpos($referentiel, 'bdtxa') !== FALSE) return 'bdtxa:v1.00'; |
if(strpos($referentiel, 'bdnff') !== FALSE) return 'bdnff:4.02'; |
if(strpos($referentiel, 'isfan') !== FALSE) return 'isfan:v1.00'; |
if(strpos($referentiel, 'bdtfx') !== FALSE) return 'bdtfx'; //:v1.01'; |
if(strpos($referentiel, 'bdtxa') !== FALSE) return 'bdtxa'; //:v1.00'; |
//if(strpos($referentiel, 'bdnff') !== FALSE) return 'bdnff'; //:4.02'; |
if(strpos($referentiel, 'bdnff') !== FALSE) return 'bdtfx'; |
if(strpos($referentiel, 'isfan') !== FALSE) return 'isfan'; //:v1.00'; |
if(strpos($referentiel, 'autre') !== FALSE) return 'autre'; |
|
if($referentiel && isset($ligne[C_NOM_SEL]) && $ligne[C_NOM_SEL]) { |
635,7 → 636,7 |
+ accepter les n° de version */ |
} |
|
static function traiterLonLat($lon = NULL, $lat = NULL, $referentiel = 'bdtfx:v1.01', $ref_ligne) { |
static function traiterLonLat($lon = NULL, $lat = NULL, $referentiel = 'bdtfx', $ref_ligne) { |
// en CSV ces valeurs sont des string, avec séparateur en français (","; cf défauts dans ExportXLS) |
if($lon && is_string($lon)) $lon = str_replace(',', '.', $lon); |
if($lat && is_string($lat)) $lat = str_replace(',', '.', $lat); |
961,7 → 962,7 |
|
// retourne une BBox [N,S,E,O) pour un référentiel donné |
static function getReferentielBBox($referentiel) { |
if($referentiel == 'bdtfx:v1.01') return Array( |
if($referentiel == 'bdtfx') return Array( |
'NORD' => 51.2, // Dunkerque |
'SUD' => 41.3, // Bonifacio |
'EST' => 9.7, // Corse |