Changeset 81666 in spip-zone


Ignore:
Timestamp:
Mar 30, 2014, 1:36:13 PM (5 years ago)
Author:
kent1@…
Message:

Si on a GIS GEOMETRY, on transforme le champ geo en json

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/gis/trunk/inc/gis_xmlrpc.php

    r63218 r81666  
    117117        if(is_array($logo))
    118118                $res['result'][0]['logo'] = url_absolue($logo[0]);
    119        
     119
     120        if(defined('_DIR_PLUGIN_GISGEOM')){
     121                if(isset($res['result'][0]['geo'])){
     122                        include_spip('gisgeom_fonctions');
     123                        $res['result'][0]['geo'] = wkt_to_json($wkt);
     124                }
     125        }
     126
    120127        $gis_struct = $res['result'][0];
    121128        $gis_struct = array_map('texte_backend',$gis_struct);
Note: See TracChangeset for help on using the changeset viewer.