banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

Annonce

Pour sa 21ème année, l’association GeoRezo a toujours besoin de vous !

10€ = 1 mois de frais bancaires ; 15€ = 12 mois de nom de domaine ; 30€ = 1 semaine de location des serveurs …

Faire un don 

Retrouver nos membres bienfaiteurs

#1 Tue 10 September 2013 12:54

araking
Participant actif
Date d'inscription: 8 Jul 2013
Messages: 83

SyntaxError: JSON.parse: unexpected character

Bonjour,
je voulais  afficher des couches en format GeoJson avec un $_POST j'a eu 2 problèmes le premier c'est dés que j'ouvre la page html firebug me retourne une erreur SyntaxError: JSON.parse: unexpected character en entrant le nom dans la zone de text ;au lieu de m'afficher la couche une fêntre s'ouvre au lieu de celle contenant la carte pour m'afficher le résultat de code php généré en JSON.

Code:

var layer = new OpenLayers.Layer.Vector(
        "GeoJson",
        {
            strategies: [new OpenLayers.Strategy.Fixed()],
            isBaseLayer:false,
            projection : new OpenLayers.Projection("EPSG:4326"),
            protocol: new OpenLayers.Protocol.HTTP({
                url: "postgis.php",
                format: new OpenLayers.Format.GeoJSON()
            }),
            //styleMap
        }
    );
    map.addLayer(layer);

Dernière modification par araking (Tue 10 September 2013 12:56)

Hors ligne

 

#2 Tue 10 September 2013 14:07

simon_g
Participant assidu
Lieu: Paris
Date d'inscription: 4 Oct 2006
Messages: 195
Site web

Re: SyntaxError: JSON.parse: unexpected character

hello,

le message me semble relativement clair, ton geojson semble mal formé.

Peux-tu copier-coller ici le code généré pour qu'on t'aide à débugger?

Hors ligne

 

#3 Tue 10 September 2013 15:14

araking
Participant actif
Date d'inscription: 8 Jul 2013
Messages: 83

Re: SyntaxError: JSON.parse: unexpected character

pour le php

Code:

<?php
header('Content-Type: application/json; charset=utf-8');
$dbconn = pg_connect("host=localhost dbname=postgis user=postgres
password=metallica");
$requete="SELECT name_1,gid, ST_ASGeoJSON(geom) AS geojson FROM tun_adm2 where  name_1='$_POST[sliderValue]'";
$result = pg_query($dbconn,$requete);
$feature = array();
while ($row = pg_fetch_assoc($result)) {
$res['title'] = $row['name_1'];
 $geom = $row['geojson']; // chargement de la colonne géométrique en GeoJSON
$res['description'] = "Code  : " . $row['gid'] . "<br/>";
$res['description'] .= "NomLocal : " . $row['name_1'] . "<br/>";

$feature[] = '{"type": "Feature", "geometry": ' . $geom . ', "properties": '. json_encode($res) . '}'; // objet GeoJSON contenant la géométrie et les valeurs attributaires d'un enregistrement de la base
}
echo '{"type": "FeatureCollection", "features": [' . implode(', ',$feature).']}'; // liste de tous les objets GeoJSON provenants de la base
?>

pour le json

Code:

{"type": "FeatureCollection", "features": [{"type": "Feature", "geometry": {"type":"MultiPolygon","coordinates":[[[[10.609274,34.820988],[10.6177720000001,34.819943],[10.632982,34.820653],[10.632293,34.7862700000001],[10.630947,34.7661190000001],[10.6300780000001,34.7615070000001],[10.6286400000001,34.7573630000001],[10.62761,34.755574],[10.623501,34.7506740000001],[10.6211880000001,34.7449440000001],[10.620146,34.7381710000001],[10.6189190000001,34.723965],[10.6180520000001,34.719515],[10.6164710000001,34.715524],[10.6140360000001,34.7126070000001],[10.6053180000001,34.7055890000001],[10.6012640000001,34.7033060000001],[10.598835,34.7013850000001],[10.597294,34.6987920000001],[10.597107,34.695882],[10.5984350000001,34.691513],[10.6002840000002,34.6886860000001],[10.6094700000001,34.68162],[10.6124090000001,34.6782070000001],[10.613566,34.6762920000001],[10.6151160000001,34.6719170000001],[10.6175040000001,34.6586430000002],[10.6195840000001,34.654762],[10.6240730000001,34.6511200000001],[10.6508600000001,34.63521],[10.6469400000001,34.630695],[10.6468050000001,34.630695],[10.6468050000001,34.6305390000001],[10.6468050000001,34.6304170000001],[10.646698,34.6304170000001],[10.646529,34.6304170000001],[10.646527,34.6302200000001],[10.646527,34.630139],[10.6464570000001,34.630139],[10.6456170000001,34.630139],[10.645417,34.630139],[10.6454439999999,34.629845],[10.6451390000001,34.6298610000001],[10.6451390000001,34.630139],[10.644305,34.630139],[10.644305,34.629585],[10.6440290000001,34.629581],[10.6440290000001,34.6293070000001],[10.643751,34.6293070000001],[10.643751,34.629029],[10.6440290000001,34.629029],[10.6440290000001,34.6287510000001],[10.644305,34.6287510000001],[10.644305,34.6281930000001],[10.6434730000001,34.6281930000001],[10.6434730000001,34.6276390000001],[10.643195,34.6276390000001],[10.643195,34.627919],[10.6429170000001,34.627919],[10.6429170000001,34.6276390000001],[10.6423600000001,34.6276390000001],[10.6423600000001,34.627361],[10.6420820000001,34.627361],[10.6420820000001,34.6270830000001],[10.6418070000001,34.6270830000001],[10.6418070000001,34.626805],[10.641529,34.626805],[10.641529,34.6265290000001],[10.6412510000001,34.626526],[10.6412510000001,34.625695],[10.6409720000001,34.625695],[10.6409720000001,34.6251360000001],[10.6406940000001,34.6251360000001],[10.6406940000001,34.6236160000001],[10.6406940000001,34.623501],[10.6406940000001,34.623475],[10.6409720000001,34.6234700000001],[10.6409720000001,34.6229160000001],[10.6412510000001,34.6229160000001],[10.6412510000001,34.6223600000001],[10.6418070000001,34.6223600000001],[10.6418070000001,34.6218060000001],[10.6420820000001,34.6218060000001],[10.6420820000001,34.6212500000001],[10.6423600000001,34.6212500000001],[10.6423600000001,34.620972],[10.642639,34.620972],[10.642639,34.6206940000001],[10.6429170000001,34.6206940000001],[10.6429170000001,34.620418],[10.642639,34.620418],[10.642639,34.6201400000001],[10.6423600000001,34.6201400000001],[10.6423600000001,34.619862],[10.6420820000001,34.619862],[10.6420820000001,34.6190260000001],[10.6418070000001,34.6190260000001],[10.6418070000001,34.6184720000001],[10.641529,34.6184720000001],[10.641529,34.618194],[10.6412510000001,34.618194],[10.6412510000001,34.6179160000001],[10.6409720000001,34.6179160000001],[10.6409720000001,34.6176380000001],[10.640138,34.6176380000001],[10.640138,34.6173620000001],[10.6395850000001,34.6173620000001],[10.6395850000001,34.617084],[10.6390280000001,34.617084],[10.6390280000001,34.6168060000001],[10.6381939999999,34.6168060000001],[10.6381939999999,34.616528],[10.636806,34.616528],[10.636806,34.6162500000001],[10.635138,34.6162500000001],[10.635138,34.6159700000001],[10.6343060000002,34.6159700000001],[10.6343060000002,34.6156960000001],[10.6337500000001,34.6156960000001],[10.6337500000001,34.615418],[10.6331939999999,34.615418],[10.6331939999999,34.6151400000001],[10.6329160000001,34.6151400000001],[10.6329160000001,34.61486],[10.6323620000001,34.61486],[10.6323620000001,34.6145819999999],[10.631885,34.6145819999999],[10.631806,34.6145819999999],[10.631806,34.614516],[10.631806,34.614308],[10.631554,34.614308],[10.6315279999999,34.614308],[10.6315279999999,34.614287],[10.6315279999999,34.6140300000001],[10.6312500000001,34.6140300000001],[10.6312500000001,34.61375],[10.6309720000002,34.61375],[10.6309720000002,34.6134720000001],[10.6306940000001,34.6134720000001],[10.6306940000001,34.613194],[10.6309720000002,34.613194],[10.6309720000002,34.6123620000001],[10.6304110000001,34.6123620000001],[10.6304180000001,34.6115270000001],[10.63014,34.6115270000001],[10.630137,34.6112520000001],[10.63006,34.6112520000001],[10.6298619999999,34.6112520000001],[10.6298590000001,34.6109510000001],[10.6295840000001,34.6109740000001],[10.6295840000001,34.610415],[10.6293060000002,34.610415],[10.6293060000002,34.6101370000001],[10.6290280000001,34.6101370000001],[10.6290280000001,34.6098590000001],[10.6287490000001,34.6098590000001],[10.6287490000001,34.6095860000001],[10.6290280000001,34.6095860000001],[10.6290280000001,34.608998],[10.6290280000001,34.6081950000001],[10.6293060000002,34.6081950000001],[10.6293060000002,34.6076390000001],[10.6295840000001,34.6076390000001],[10.6295840000001,34.607361],[10.6293060000002,34.607361],[10.6293060000002,34.606251],[10.6290280000001,34.606251],[10.6290280000001,34.6059730000001],[10.6287490000001,34.6059730000001],[10.6287490000001,34.6056930000001],[10.628471,34.6056930000001],[10.628471,34.605415],[10.6281959999999,34.605415],[10.6281959999999,34.6051410000001],[10.627915,34.6051410000001],[10.627915,34.604305],[10.6276400000002,34.604305],[10.6276400000002,34.603749],[10.6273620000001,34.603749],[10.6273620000001,34.6034730000001],[10.6270830000001,34.6034730000001],[10.6270830000001,34.6031950000001],[10.626805,34.6031950000001],[10.626805,34.602917],[10.6265270000001,34.602917],[10.6265270000001,34.602639],[10.626249,34.602639],[10.626249,34.6023610000001],[10.6259710000001,34.6023610000001],[10.6259710000001,34.602085],[10.625693,34.602085],[10.625693,34.6018210000001],[10.6204450000001,34.60513],[10.6203980000001,34.605091],[10.613009,34.6082930000001],[10.6085510000001,34.6106420000001],[10.602492,34.615255],[10.5991370000001,34.617237],[10.5886990000001,34.6210070000001],[10.579391,34.6265890000001],[10.5710550000001,34.6294170000001],[10.5671390000001,34.6311730000001],[10.5616029999999,34.635401],[10.550515,34.6424140000001],[10.5314510000001,34.6580860000001],[10.526727,34.660855],[10.5241589999999,34.6619030000001],[10.517463,34.663176],[10.506969,34.6629150000001],[10.5025140000001,34.6631490000001],[10.4911750000001,34.6651200000001],[10.479431,34.666377],[10.458258,34.667629],[10.4466470000001,34.667699],[10.438848,34.666583],[10.4349850000001,34.6648510000001],[10.4253000000001,34.658448],[10.4156820000001,34.6497220000001],[10.413587,34.6465000000001],[10.410333,34.6395570000001],[10.403781,34.6317829999999],[10.399667,34.6230890000001],[10.3931719999999,34.615152],[10.3876430000001,34.6029580000001],[10.382981,34.596993],[10.375491,34.5893450000001],[10.355054,34.607691],[10.345183,34.6176150000001],[10.3425610000002,34.6210090000001],[10.3383240000001,34.62766],[10.333901,34.6327400000001],[10.3322030000001,34.6363320000001],[10.329882,34.644459],[10.3281180000001,34.6485110000001],[10.3207010000001,34.6607510000001],[10.3153359999999,34.667173],[10.313694,34.6710540000001],[10.3127960000001,34.6777800000001],[10.3128050000001,34.685018],[10.315848,34.740308],[10.3156880000001,34.747459],[10.314388,34.7539290000001],[10.3134830000001,34.755789],[10.3086400000001,34.7624510000001],[10.305886,34.769551],[10.3039830000001,34.7728450000001],[10.2992340000001,34.7773210000001],[10.2951010000001,34.782217],[10.291598,34.7856000000001],[10.289619,34.788544],[10.2884820000001,34.792207],[10.2870780000001,34.8020620000001],[10.2860900000001,34.8057530000001],[10.2853049999999,34.807418],[10.280572,34.8141810000001],[10.2769320000001,34.8231720000001],[10.2745610000001,34.826119],[10.26915,34.8305860000001],[10.263235,34.8364240000001],[10.2696770000001,34.841392],[10.277324,34.8460850000001],[10.2862000000001,34.85364],[10.288535,34.8562430000001],[10.2922,34.8627440000001],[10.2947880000002,34.865599],[10.2984480000001,34.867464],[10.3045520000001,34.869257],[10.308359,34.870792],[10.3174569999999,34.8777920000001],[10.319721,34.8803810000001],[10.322978,34.8869470000001],[10.3254580000001,34.8900060000001],[10.327012,34.8910660000001],[10.330552,34.8925270000001],[10.3342220000001,34.89341],[10.3380880000001,34.8937720000001],[10.3419980000001,34.8932970000001],[10.3501820000001,34.891104],[10.3615030000001,34.886119],[10.366493,34.8843910000001],[10.374626,34.882886],[10.390996,34.8811140000001],[10.398203,34.8794840000001],[10.4002370000001,34.8786190000001],[10.407847,34.874055],[10.4162120000001,34.8712050000001],[10.4200850000001,34.8695140000002],[10.424273,34.8666710000001],[10.4278760000001,34.8648509999999],[10.432624,34.8635320000001],[10.4428360000001,34.861625],[10.4475630000001,34.8603650000001],[10.4496330000001,34.859512],[10.4555330000001,34.8559650000001],[10.459937,34.8544250000001],[10.47053,34.852917],[10.505705,34.851343],[10.517195,34.8500410000001],[10.522608,34.8486910000001],[10.53437,34.8437400000001],[10.5483500000001,34.8393910000001],[10.5560880000002,34.834804],[10.5606100000001,34.8332],[10.5686490000001,34.8318830000001],[10.5872330000001,34.830312],[10.599849,34.82417],[10.609274,34.820988]]]]}, "properties": {"title":"Sfax","description":"Code  : 182<br\/>NomLocal : Sfax<br\/>"}}, {"type": "Feature", "geometry": {"type":"MultiPolygon","coordinates":[[[[10.049951,35.0009170000001],[10.0584840000001,34.992953],[10.0585080000001,34.9929930000001],[10.0679520000001,34.9834590000002],[10.075251,34.9735680000001],[10.079645,34.9683100000001],[10.081644,34.9640590000001],[10.0847020000001,34.954524],[10.093326,34.9372570000001],[10.1022770000001,34.922822],[10.107873,34.9164710000001],[10.109646,34.9130830000001],[10.112321,34.905894],[10.1170970000001,34.899159],[10.118588,34.8953300000001],[10.1202380000001,34.884494],[10.1212940000001,34.880378],[10.1221610000001,34.8785280000001],[10.1268780000001,34.871722],[10.1302340000001,34.862739],[10.1323450000002,34.859819],[10.135858,34.856462],[10.1400600000001,34.851593],[10.1490250000001,34.844319],[10.152743,34.8422520000001],[10.157741,34.84098],[10.1632190000001,34.840443],[10.17176,34.840695],[10.1773580000001,34.8416860000002],[10.189416,34.846079],[10.2003560000001,34.848806],[10.206911,34.849791],[10.211573,34.8497280000001],[10.2420170000001,34.8446230000001],[10.2465120000001,34.842981],[10.252372,34.8393629999999],[10.254423,34.8384950000001],[10.263235,34.8364240000001],[10.26915,34.8305860000001],[10.2745610000001,34.826119],[10.2769320000001,34.8231720000001],[10.280572,34.8141810000001],[10.2853049999999,34.807418],[10.2860900000001,34.8057530000001],[10.2870780000001,34.8020620000001],[10.2884820000001,34.792207],[10.289619,34.788544],[10.291598,34.7856000000001],[10.2951010000001,34.782217],[10.2992340000001,34.7773210000001],[10.3039830000001,34.7728450000001],[10.305886,34.769551],[10.3086400000001,34.7624510000001],[10.3134830000001,34.755789],[10.314388,34.7539290000001],[10.3156880000001,34.747459],[10.315848,34.740308],[10.3128050000001,34.685018],[10.3127960000001,34.6777800000001],[10.313694,34.6710540000001],[10.3153359999999,34.667173],[10.3207010000001,34.6607510000001],[10.3281180000001,34.6485110000001],[10.329882,34.644459],[10.3322030000001,34.6363320000001],[10.333901,34.6327400000001],[10.3383240000001,34.62766],[10.3425610000002,34.6210090000001],[10.345183,34.6176150000001],[10.355054,34.607691],[10.343921,34.6005089999999],[10.332134,34.594119],[10.327048,34.5897890000001],[10.316131,34.5824640000001],[10.311693,34.581222],[10.3067139999999,34.581048],[10.301551,34.581836],[10.2990000000001,34.582634],[10.2941370000001,34.5851580000001],[10.2877260000001,34.5901480000001],[10.2676,34.6087360000001],[10.263156,34.611951],[10.2581950000001,34.6145600000001],[10.2501570000001,34.616704],[10.235979,34.618119],[10.2161310000001,34.618823],[10.210817,34.6185990000001],[10.205879,34.6177939999999],[10.2016210000002,34.615905],[10.198822,34.612874],[10.1944670000001,34.6048280000001],[10.1911910000001,34.601444],[10.1890979999999,34.598627],[10.186085,34.5915150000001],[10.1842560000001,34.5882000000001],[10.179955,34.5833980000001],[10.1789540000001,34.581802],[10.1759350000001,34.574301],[10.1738760000001,34.5704120000001],[10.1706920000001,34.5669760000001],[10.1665630000001,34.564257],[10.1641960000001,34.5632410000001],[10.1593130000001,34.5620580000002],[10.1445620000001,34.5608730000001],[10.1401590000001,34.560154],[10.1382050000001,34.5595690000001],[10.131963,34.556651],[10.1275460000001,34.555577],[10.1198850000001,34.555015],[10.1032940000001,34.5548670000001],[10.09509,34.554016],[10.0736150000001,34.548185],[10.0634800000001,34.5552670000001],[10.06478,34.561309],[10.0488300000001,34.56821],[10.0335010000001,34.5768500000001],[10.0165010000001,34.585301],[9.99143900000013,34.595211],[9.9741820000001,34.6117600000001],[9.95801399999999,34.618821],[9.95181400000001,34.618408],[9.93675099999996,34.614089],[9.92272600000001,34.6095990000001],[9.90866299999999,34.6102989999999],[9.88865700000002,34.60402],[9.87021400000015,34.603127],[9.85993800000006,34.6026300000001],[9.85659200000015,34.6075890000001],[9.85094100000009,34.6188840000001],[9.85092400000013,34.6189189999999],[9.85074900000006,34.619109],[9.83574000000004,34.6366520000001],[9.83243600000003,34.6406680000001],[9.82955900000002,34.65353],[9.83284099999997,34.657199],[9.8395920000001,34.666439],[9.849604,34.6826210000001],[9.85637800000001,34.6897820000002],[9.86537800000002,34.703529],[9.87747300000001,34.7190500000001],[9.88936400000011,34.735082],[9.90330300000005,34.754589],[9.91084199999995,34.771938],[9.92414100000002,34.796452],[9.93746700000008,34.817322],[9.94401700000003,34.8296500000001],[9.95304300000009,34.844441],[9.969133,34.857052],[9.96762200000001,34.8665310000001],[9.98078900000002,34.8835990000001],[9.99564900000013,34.8955120000001],[10.0074,34.9080700000001],[10.0149900000001,34.9240430000001],[10.0263400000001,34.9350390000001],[10.026269,34.9471280000001],[10.0367600000001,34.96537],[10.04084,34.978019],[10.048431,34.995708],[10.049951,35.0009170000001]]]]}, "properties": {"title":"Sfax","description":"Code  : 183<br\/>NomLocal : Sfax<br\/>"}}, {"type": "Feature", "geometry": {"type":"MultiPolygon","coordinates":[[[[10.917758,35.008941],[10.9233950000001,34.9833560000001],[10.9234120000001,34.9830760000001],[10.929306,34.969093],[10.929306,34.9679340000001],[10.929306,34.9676400000001],[10.929178,34.9676400000001],[10.9290280000001,34.9676400000001],[10.9290280000001,34.967294],[10.9290280000001,34.9671090000001],[10.929306,34.9670840000001],[10.929306,34.9665260000001],[10.9286950000001,34.9665260000001],[10.928194,34.9665260000001],[10.928194,34.966252],[10.925972,34.966252],[10.925972,34.9659720000001],[10.9262500000001,34.9659720000001],[10.9262500000001,34.9648620000001],[10.926528,34.9648620000001],[10.926528,34.9637500000001],[10.9262500000001,34.9637500000001],[10.9262500000001,34.9631960000001],[10.925972,34.9631960000001],[10.925972,34.9626400000001],[10.9256940000001,34.9626400000001],[10.9256940000001,34.9615300000001],[10.925972,34.9615300000001],[10.925972,34.9612490000001],[10.9262500000001,34.9612490000001],[10.9262500000001,34.960971],[10.925137,34.960971],[10.925137,34.9606930000001],[10.9245840000001,34.9606930000001],[10.9245840000001,34.960415],[10.924306,34.960415],[10.924306,34.96014],[10.924272,34.96014],[10.9237490000001,34.96014],[10.9237490000001,34.959861],[10.923471,34.959861],[10.923471,34.959305],[10.9242320000001,34.959305],[10.924306,34.959305],[10.924306,34.9595830000001],[10.924862,34.9595830000001],[10.924862,34.959305],[10.9265440000001,34.959305],[10.926528,34.9590270000001],[10.927084,34.9590270000001],[10.927084,34.957637],[10.926516,34.957637],[10.925972,34.957637],[10.925972,34.9579170000001],[10.925137,34.9579170000001],[10.925137,34.958195],[10.92418,34.958195],[10.924027,34.958195],[10.924027,34.9579170000001],[10.9237490000001,34.9579170000001],[10.9237490000001,34.9573589999999],[10.924027,34.9573589999999],[10.924027,34.9568050000001],[10.924113,34.9568050000001],[10.924306,34.9568050000001],[10.924306,34.9565270000001],[10.9241,34.9565270000001],[10.9237490000001,34.9565270000001],[10.9237490000001,34.955971],[10.923196,34.955971],[10.923196,34.9551390000001],[10.9229180000001,34.9551390000001],[10.9229180000001,34.953751],[10.9226390000001,34.953751],[10.9226390000001,34.9531930000001],[10.9229180000001,34.9531930000001],[10.9229180000001,34.952641],[10.9226390000001,34.952641],[10.9226390000001,34.9518050000001],[10.922361,34.9518050000001],[10.922361,34.9515270000001],[10.9220830000001,34.9515270000001],[10.9220830000001,34.948192],[10.921805,34.948192],[10.921805,34.9479190000001],[10.9215270000001,34.9479190000001],[10.9215270000001,34.9462500000001],[10.921249,34.9462500000001],[10.921249,34.9459720000002],[10.9209710000001,34.9459720000002],[10.9209710000001,34.9456940000001],[10.921249,34.9456940000001],[10.921249,34.943748],[10.9215270000001,34.943748],[10.9215270000001,34.9431959999999],[10.921805,34.9431959999999],[10.921805,34.942638],[10.9215270000001,34.942638],[10.9215270000001,34.9420840000001],[10.921249,34.942082],[10.921249,34.939304],[10.9215270000001,34.939304],[10.9215270000001,34.9384720000001],[10.921805,34.9384720000001],[10.921805,34.938194],[10.9220830000001,34.938194],[10.9220830000001,34.9337490000001],[10.922361,34.9337490000001],[10.922361,34.9329180000001],[10.9226390000001,34.932915],[10.9226390000001,34.932361],[10.9228780000001,34.932361],[10.9229180000001,34.932361],[10.9229180000001,34.930695],[10.9226390000001,34.930695],[10.9226390000001,34.9298630000001],[10.922361,34.9298630000001],[10.922361,34.929585],[10.9226390000001,34.929585],[10.9226390000001,34.929027],[10.9229180000001,34.929027],[10.9229180000001,34.9287490000001],[10.9226390000001,34.9287490000001],[10.9226390000001,34.928471],[10.9229180000001,34.928471],[10.9229180000001,34.9281950000001],[10.9226390000001,34.9281950000001],[10.9226390000001,34.927917],[10.9229180000001,34.927917],[10.9229180000001,34.927361],[10.923196,34.927361],[10.923196,34.9254150000001],[10.9229180000001,34.9254150000001],[10.9229180000001,34.9248610000001],[10.9226390000001,34.9248610000001],[10.9226390000001,34.9226390000001],[10.9229180000001,34.9226390000001],[10.9229180000001,34.922361],[10.9226390000001,34.922361],[10.9226390000001,34.9212479999999],[10.922361,34.9212479999999],[10.922361,34.9209700000001],[10.9226390000001,34.9209700000001],[10.9226390000001,34.920697],[10.922361,34.920697],[10.922361,34.91986],[10.9220830000001,34.91986],[10.9220830000001,34.9190280000001],[10.9215270000001,34.9190280000001],[10.9215270000001,34.9184720000001],[10.921249,34.9184720000001],[10.921249,34.916526],[10.9209710000001,34.916526],[10.9209710000001,34.9151380000001],[10.921249,34.9151380000001],[10.921249,34.9143060000001],[10.9215270000001,34.9143060000001],[10.9215270000001,34.9137500000001],[10.921249,34.9137500000001],[10.921249,34.9123620000001],[10.9215270000001,34.9123620000001],[10.9215270000001,34.9120820000001],[10.921805,34.9120820000001],[10.921805,34.9118040000001],[10.9220830000001,34.9118040000001],[10.9220830000001,34.91153],[10.922361,34.91153],[10.922361,34.9109720000001],[10.9226390000001,34.9109720000001],[10.9226390000001,34.9104160000001],[10.9229180000001,34.9104160000001],[10.9229180000001,34.9084740000001],[10.923196,34.9084740000001],[10.923196,34.9076400000001],[10.923471,34.9076400000001],[10.923471,34.9073590000001],[10.9237490000001,34.9073590000001],[10.9237490000001,34.9051390000001],[10.924027,34.9051390000001],[10.924027,34.903751],[10.924306,34.903751],[10.924306,34.9029150000001],[10.9245840000001,34.9029150000001],[10.9245840000001,34.900971],[10.924306,34.900971],[10.924306,34.9006950000001],[10.924027,34.9006950000001],[10.924027,34.9001390000001],[10.9237490000001,34.9001390000001],[10.9237490000001,34.899861],[10.923196,34.899861],[10.923196,34.8995830000001],[10.9229180000001,34.8995830000001],[10.9229180000001,34.899307],[10.9226390000001,34.899307],[10.9226390000001,34.8990290000001],[10.922361,34.8990290000001],[10.922361,34.898193],[10.9220830000001,34.898193],[10.9220830000001,34.895973],[10.922361,34.895973],[10.922361,34.894307],[10.9220830000001,34.894307],[10.9220830000001,34.893197],[10.921805,34.893197],[10.921805,34.891804],[10.9215270000001,34.891804],[10.9215270000001,34.8909720000001],[10.921249,34.8909720000001],[10.921249,34.8893040000001],[10.9215270000001,34.8893040000001],[10.9215270000001,34.8881940000001],[10.921805,34.8881940000001],[10.921805,34.8876380000001],[10.9220830000001,34.8876380000001],[10.9220830000001,34.8870840000001],[10.922361,34.8870840000001],[10.922361,34.886806],[10.9220830000001,34.886806],[10.9220830000001,34.88625],[10.921805,34.88625],[10.921805,34.8859720000001],[10.9215270000001,34.8859720000001],[10.9215270000001,34.8854180000001],[10.921249,34.8854180000001],[10.921249,34.8847730000001],[10.921249,34.884582],[10.9210440000001,34.884582],[10.9209710000001,34.884582],[10.9209710000001,34.8844329999999],[10.9209710000001,34.88403],[10.9206610000001,34.8840549999999],[10.920695,34.883472],[10.9204170000001,34.883472],[10.9204170000001,34.8831940000001],[10.920139,34.8831940000001],[10.920139,34.882916],[10.9198610000001,34.882916],[10.9198610000001,34.8826379999999],[10.9195329999999,34.8826789999999],[10.919583,34.882362],[10.9192870000001,34.8823780000001],[10.9193050000001,34.8815280000001],[10.919027,34.8815280000001],[10.919027,34.88125],[10.9187490000001,34.88125],[10.9187490000001,34.8809740000001],[10.918473,34.8809740000001],[10.918473,34.880696],[10.9181950000001,34.880696],[10.9181950000001,34.8804180000001],[10.917917,34.8804180000001],[10.917917,34.8801369999999],[10.9176390000001,34.8801369999999],[10.9176390000001,34.8798590000001],[10.917361,34.8798590000001],[10.917361,34.879586],[10.9170310000001,34.8796240000001],[10.9170830000001,34.8790270000001],[10.916805,34.8790270000001],[10.916805,34.8784709999999],[10.916251,34.8784709999999],[10.916251,34.8781930000001],[10.915905,34.878246],[10.9159710000001,34.877639],[10.915695,34.877639],[10.915695,34.877083],[10.9154170000001,34.877083],[10.9154170000001,34.8765290000001],[10.915139,34.8765250000001],[10.915139,34.8762510000001],[10.9148610000001,34.8762510000001],[10.9148610000001,34.875973],[10.9145830000001,34.875973],[10.9145830000001,34.8756950000001],[10.914029,34.8756950000001],[10.914029,34.875415],[10.9137490000001,34.875415],[10.9137490000001,34.875137],[10.913473,34.875137],[10.913473,34.8748630000001],[10.9131950000001,34.8748630000001],[10.9131950000001,34.874305],[10.9129170000001,34.874305],[10.9129170000001,34.8740270000001],[10.9126390000001,34.8740270000001],[10.9126390000001,34.873749],[10.912361,34.873749],[10.912361,34.8734729999999],[10.9120830000001,34.8734729999999],[10.9120830000001,34.8731950000001],[10.9118040000001,34.8731950000001],[10.9118040000001,34.8729170000001],[10.9115290000001,34.8729170000001],[10.9115290000001,34.872639],[10.9109730000001,34.872639],[10.9109730000001,34.8723610000001],[10.910695,34.8723610000001],[10.910695,34.872083],[10.9104160000001,34.872083],[10.9104160000001,34.8718069999999],[10.9101380000001,34.8718069999999],[10.9101380000001,34.8715290000001],[10.9098630000001,34.8715290000001],[10.90986,34.8712510000001],[10.9095819999999,34.8712510000001],[10.9095819999999,34.8709710000001],[10.90986,34.8709710000001],[10.9098630000001,34.870693],[10.9104160000001,34.870693],[10.9104160000001,34.870419],[10.9112510000001,34.8704150000001],[10.9112510000001,34.8701409999999],[10.9120830000001,34.8701409999999],[10.9120830000001,34.8698610000001],[10.9126390000001,34.8698610000001],[10.9126390000001,34.8695830000001],[10.913473,34.8695830000001],[10.913473,34.8693050000001],[10.914029,34.8693050000001],[10.914029,34.869027],[10.9148610000001,34.869027],[10.9148610000001,34.868751],[10.9154170000001,34.868751],[10.9154170000001,34.868473],[10.9159710000001,34.868473],[10.9159710000001,34.8681950000001],[10.9165270000001,34.8681950000001],[10.9165270000001,34.8679170000001],[10.9170830000001,34.8679170000001],[10.9170830000001,34.8676390000001],[10.9176390000001,34.8676390000001],[10.9176390000001,34.8673630000001],[10.9181950000001,34.8673630000001],[10.9181950000001,34.867085],[10.9187490000001,34.867085],[10.9187490000001,34.866807],[10.919583,34.866807],[10.919583,34.8665290000001],[10.9198610000001,34.8665290000001],[10.9198610000001,34.8662480000001],[10.920139,34.8662480000001],[10.920139,34.86597],[10.9198610000001,34.86597],[10.9198610000001,34.8656970000001],[10.919029,34.8656970000001],[10.919027,34.86597],[10.9187490000001,34.86597],[10.9187490000001,34.8662480000001],[10.9181950000001,34.8662480000001],[10.9181950000001,34.8665290000001],[10.9176390000001,34.8665290000001],[10.9176390000001,34.866807],[10.9170830000001,34.866807],[10.9170830000001,34.867085],[10.9165270000001,34.867085],[10.9165270000001,34.8673630000001],[10.9159730000001,34.8673630000001],[10.9159710000001,34.8676390000001],[10.9154170000001,34.8676390000001],[10.9154170000001,34.8679170000001],[10.9148610000001,34.8679170000001],[10.9148610000001,34.8681950000001],[10.914029,34.8681950000001],[10.914029,34.868473],[10.913473,34.868473],[10.913473,34.868751],[10.9126390000001,34.868751],[10.9126390000001,34.869027],[10.9120830000001,34.869027],[10.9120830000001,34.8693050000001],[10.9112510000001,34.8693050000001],[10.9112510000001,34.8695830000001],[10.9104160000001,34.8695830000001],[10.9104160000001,34.8698610000001],[10.9098630000001,34.8698610000001],[10.9098630000001,34.8701409999999],[10.9087500000001,34.8701409999999],[10.9087500000001,34.870419],[10.9084720000001,34.870419],[10.9084720000001,34.8701409999999],[10.908194,34.8701409999999],[10.908194,34.8698610000001],[10.9079159999999,34.8698610000001],[10.9079159999999,34.8695830000001],[10.907638,34.8695830000001],[10.907638,34.8693050000001],[10.9073600000002,34.8693050000001],[10.9073600000002,34.869027],[10.9070840000001,34.869027],[10.9070840000001,34.868751],[10.9068060000001,34.868751],[10.9068060000001,34.868473],[10.906528,34.868473],[10.906528,34.8679170000001],[10.9062499999999,34.8679170000001],[10.9062499999999,34.8676390000001],[10.905972,34.8676390000001],[10.905972,34.8673630000001],[10.9056940000002,34.8673630000001],[10.9056940000002,34.867085],[10.9054160000001,34.867085],[10.9054160000001,34.8662480000001],[10.9051380000001,34.8662480000001],[10.9051380000001,34.86597],[10.904862,34.86597],[10.904862,34.8654160000002],[10.9045819999999,34.8654160000002],[10.9045819999999,34.8651380000001],[10.904306,34.8651380000001],[10.904306,34.86486],[10.9040280000002,34.86486],[10.9040280000002,34.8645820000001],[10.9037500000001,34.8645820000001],[10.9037500000001,34.864306],[10.9034720000001,34.864306],[10.9034720000001,34.8640280000001],[10.903194,34.8640280000001],[10.903194,34.8637500000002],[10.9023620000002,34.8637500000002],[10.9023620000002,34.8634720000001],[10.9018060000001,34.8634720000001],[10.9018060000001,34.863194],[10.901528,34.863194],[10.901528,34.8629160000001],[10.9009720000001,34.8629160000001],[10.9009720000001,34.86264],[10.9006960000002,34.86264],[10.9006960000002,34.8623620000001],[10.9004160000001,34.8623620000001],[10.9004160000001,34.8620840000002],[10.9001400000001,34.8620840000002],[10.9001400000001,34.8618040000001],[10.8995839999999,34.8618040000001],[10.8995839999999,34.861526],[10.8993060000001,34.861526],[10.8993060000001,34.8612520000001],[10.8990280000002,34.8612520000001],[10.8990280000002,34.860974],[10.8984720000001,34.860974],[10.8984720000001,34.8606940000001],[10.898193,34.8606940000001],[10.898193,34.860416],[10.8979179999999,34.860416],[10.8979179999999,34.8601380000001],[10.8973620000002,34.8601380000001],[10.8973620000002,34.85986],[10.8970840000001,34.85986],[10.8970840000001,34.8595840000001],[10.896527,34.8595840000001],[10.896527,34.85764],[10.8962490000001,34.85764],[10.8962490000001,34.8573620000001],[10.895971,34.8573620000001],[10.895971,34.857082],[10.8956960000002,34.857082],[10.8956960000002,34.8568040000001],[10.895415,34.8568040000001],[10.895415,34.85653],[10.894861,34.85653],[10.894861,34.8562500000001],[10.8945830000001,34.8562500000001],[10.8945830000001,34.855972],[10.894305,34.855972],[10.894305,34.8556940000001],[10.8940270000001,34.8556940000001],[10.8940270000001,34.855416],[10.8934730000001,34.855416],[10.8934710000001,34.8551400000001],[10.893195,34.8551400000001],[10.893195,34.854862],[10.8929170000001,34.854862],[10.8929170000001,34.8545840000001],[10.8923610000001,34.8545840000001],[10.8923610000001,34.854306],[10.892083,34.854306],[10.892083,34.8540280000001],[10.891527,34.8540280000001],[10.891527,34.8537470000001],[10.8912490000001,34.8537470000001],[10.8912490000001,34.8534740000001],[10.8906950000001,34.8534740000001],[10.8906950000001,34.853196],[10.890417,34.853196],[10.890417,34.8529180000001],[10.8901140000002,34.8529290000001],[10.8901390000001,34.8526370000001],[10.8900000000001,34.8526370000001],[10.889861,34.8526370000001],[10.8898860000001,34.852348],[10.8895830000001,34.852359],[10.8895830000001,34.852086],[10.889305,34.852086],[10.889305,34.8518080000001],[10.8890270000001,34.8518080000001],[10.8890270000001,34.8515270000001],[10.888751,34.8515270000001],[10.888751,34.851249],[10.8884730000001,34.851249],[10.8884730000001,34.8509710000001],[10.888195,34.8509710000001],[10.888195,34.850693],[10.8879170000001,34.850693],[10.8879170000001,34.8504170000001],[10.887639,34.8504170000001],[10.887639,34.849583],[10.8873610000001,34.849583],[10.8873610000001,34.848473],[10.887083,34.848473],[10.887083,34.8479150000001],[10.8868050000001,34.8479150000001],[10.8868050000001,34.8470830000001],[10.886529,34.8470830000001],[10.886529,34.846805],[10.8862490000001,34.846805],[10.8862490000001,34.8465270000001],[10.8856950000001,34.8465270000001],[10.8856950000001,34.845695],[10.885417,34.845695],[10.885417,34.8448610000001],[10.8851390000001,34.8448610000001],[10.8851390000001,34.8445810000001],[10.884861,34.8445810000001],[10.884861,34.8443070000001],[10.884582,34.8443070000001],[10.884582,34.844029],[10.884307,34.844029],[10.884307,34.8437510000001],[10.884026,34.8437510000001],[10.8840720000001,34.8431970000001],[10.883751,34.8431929999999],[10.883751,34.842876],[10.883751,34.842361],[10.884026,34.842361],[10.884026,34.841526],[10.884307,34.841526],[10.884307,34.840695],[10.884582,34.840695],[10.884582,34.8395850000001],[10.884307,34.8395850000001],[10.884307,34.8387480000001],[10.884026,34.8387480000001],[10.884026,34.8381970000001],[10.883751,34.8381970000001],[10.883751,34.8379160000001],[10.8834730000001,34.8379160000001],[10.8834730000001,34.8354140000001],[10.882916,34.8354140000001],[10.882916,34.8351400000001],[10.88236,34.8351400000001],[10.88236,34.834862],[10.881806,34.834862],[10.881806,34.8345840000001],[10.88125,34.8345840000001],[10.88125,34.8343040000001],[10.8809720000001,34.8343040000001],[10.8809720000001,34.834026],[10.8804160000001,34.834026],[10.8804160000001,34.8337520000001],[10.880694,34.8337520000001],[10.880694,34.8334740000001],[10.88014,34.8334740000001],[10.880138,34.833194],[10.8798600000001,34.833194],[10.8798600000001,34.832916],[10.879584,34.832916],[10.879584,34.8326380000001],[10.8793060000001,34.8326380000001],[10.8793060000001,34.83236],[10.8787500000001,34.83236],[10.8787500000001,34.8320840000001],[10.8781940000001,34.8320840000001],[10.8781940000001,34.8318060000001],[10.8776380000001,34.8318060000001],[10.8776380000001,34.831528],[10.8770840000001,34.831528],[10.8770840000001,34.83125],[10.8765280000001,34.83125],[10.8765280000001,34.8309720000001],[10.87625,34.8309720000001],[10.87625,34.8304180000001],[10.8759720000001,34.8304180000001],[10.8759720000001,34.8298600000001],[10.875694,34.8298600000001],[10.875694,34.8293030000002],[10.8754160000001,34.8293030000002],[10.8754160000001,34.8287500000001],[10.87514,34.8287500000001],[10.87514,34.8279150000001],[10.874584,34.8279150000001],[10.874584,34.8276400000001],[10.8743060000001,34.8276400000001],[10.8743060000001,34.827362],[10.874028,34.827362],[10.874028,34.8270840000001],[10.8737500000001,34.8270840000001],[10.8737500000001,34.8268060000001],[10.873472,34.8268060000001],[10.873472,34.826527],[10.8731940000001,34.826527],[10.8731940000001,34.8259740000001],[10.8726400000001,34.8259740000001],[10.8726400000001,34.825696],[10.872362,34.825696],[10.872362,34.8254180000001],[10.871806,34.8254180000001],[10.871806,34.8251370000001],[10.8709740000001,34.8251370000001],[10.8709740000001,34.8240270000001],[10.8706930000001,34.8240270000001],[10.8706930000001,34.8226390000002],[10.8704180000001,34.8226390000002],[10.8704180000001,34.822083],[10.8690270000001,34.822083],[10.8690270000001,34.8223610000001],[10.868749,34.8223610000001],[10.868749,34.8226390000002],[10.8684709999999,34.8226390000002],[10.8684709999999,34.8229170000001],[10.867808,34.8229170000001],[10.8676390000001,34.8229170000001],[10.8676390000001,34.823193],[10.867083,34.823193],[10.867083,34.8243080000001],[10.8668049999999,34.8243080000001],[10.8668049999999,34.824586],[10.866694,34.824586],[10.863525,34.846135],[10.8634290000001,34.8460570000001],[10.860621,34.8605630000001],[10.858547,34.8676050000001],[10.856552,34.87199],[10.848179,34.88681],[10.844972,34.8902220000001],[10.8430470000001,34.89166],[10.838593,34.8937910000001],[10.836427,34.8943080000001],[10.8320890000001,34.89455],[10.828106,34.893921],[10.8245560000001,34.8928250000001],[10.8127370000001,34.8996390000001],[10.802261,34.9087509999999],[10.7993920000001,34.912311],[10.800572,34.9262270000002],[10.800382,34.930556],[10.799635,34.9346080000001],[10.79804,34.938156],[10.7925490000001,34.944463],[10.786544,34.9542540000001],[10.7850180000001,34.9579540000001],[10.7847609999999,34.9596410000001],[10.7850910000001,34.9628529999999],[10.786453,34.9655410000001],[10.789227,34.9689200000001],[10.7908420000001,34.9724470000001],[10.7921010000001,34.9789330000001],[10.7936360000001,34.9974950000001],[10.7949750000001,35.001637],[10.796153,35.0035120000001],[10.79784,35.005156],[10.7998580000001,35.0063140000001],[10.8044030000002,35.007505],[10.8093040000001,35.0077850000001],[10.8196600000001,35.007247],[10.829185,35.009993],[10.842762,35.0125040000001],[10.8564350000001,35.013838],[10.8813020000001,35.0129660000001],[10.9045389999999,35.0097370000001],[10.917758,35.008941]]]]}, "properties": {"title":"Sfax","description":"Code  : 184<br\/>NomLocal : Sfax<br\/>"}}, {"type": "Feature", "geometry": {"type":"MultiPolygon","coordinates":[[[[10.2768050000001,34.322082],[10.2768050000001,34.3218040000001],[10.277083,34.3218040000001],[10.277083,34.3212500000001],[10.2768050000001,34.3212500000001],[10.2768050000001,34.3206940000001],[10.276527,34.3206940000001],[10.276527,34.3201380000001],[10.2762490000001,34.3201380000001],[10.2762490000001,34.319862],[10.275973,34.319862],[10.275973,34.3195840000001],[10.275417,34.3195840000001],[10.275417,34.319306],[10.2751390000001,34.319306],[10.2751390000001,34.3190280000001],[10.274861,34.3190280000001],[10.274861,34.319306],[10.2745830000001,34.319306],[10.2745830000001,34.319862],[10.274861,34.319862],[10.274861,34.3201380000001],[10.275417,34.3201380000001],[10.275417,34.320416],[10.2756950000001,34.320416],[10.2756950000001,34.320972],[10.275973,34.320972],[10.275973,34.32153],[10.2762490000001,34.32153],[10.2762490000001,34.3218040000001],[10.276527,34.3218040000001],[10.276527,34.322082],[10.2768050000001,34.322082]]],[[[10.2937510000002,34.371808],[10.2937510000002,34.3715280000001],[10.294027,34.3715280000001],[10.294027,34.3704180000001],[10.2893060000001,34.3704180000001],[10.2893060000001,34.3715280000001],[10.2906940000001,34.3715280000001],[10.2906940000001,34.371808],[10.2920850000002,34.371808],[10.2920850000002,34.3715280000001],[10.292639,34.3715280000001],[10.292639,34.371808],[10.2937510000002,34.371808]]],[[[10.2890280000001,34.375972],[10.2890280000001,34.375694],[10.2893060000001,34.375694],[10.2893060000001,34.3754160000001],[10.289582,34.3754160000001],[10.289582,34.375138],[10.290138,34.375138],[10.290138,34.3748620000001],[10.2904160000001,34.3748620000001],[10.2904160000001,34.3745840000001],[10.2906940000001,34.3745840000001],[10.2906940000001,34.374306],[10.2909720000001,34.374306],[10.2909720000001,34.373474],[10.2893060000001,34.373474],[10.2893060000001,34.3737500000001],[10.2887500000001,34.3737500000001],[10.2887500000001,34.374028],[10.2881940000001,34.374028],[10.2881940000001,34.3745840000001],[10.287916,34.3745840000001],[10.287916,34.3754160000001],[10.2881940000001,34.3754160000001],[10.2881940000001,34.375972],[10.2890280000001,34.375972]]],[[[10.3123600000001,34.3809750000001],[10.3123600000001,34.3806940000001],[10.3129160000001,34.3806940000001],[10.3129160000001,34.380416],[10.313194,34.380416],[10.313194,34.380138],[10.3134720000001,34.380138],[10.3134720000001,34.3795840000001],[10.31375,34.3795820000001],[10.31375,34.379306],[10.3140280000001,34.379306],[10.3140280000001,34.37875],[10.314306,34.37875],[10.314306,34.3781920000001],[10.3145840000001,34.3781920000001],[10.3145840000001,34.3770820000001],[10.314862,34.3770820000001],[10.314862,34.3748620000001],[10.3151380000001,34.3748620000001],[10.3151380000001,34.374306],[10.315416,34.374306],[10.315416,34.374028],[10.3156940000001,34.374028],[10.3156940000001,34.3737500000001],[10.315972,34.3737500000001],[10.315972,34.373474],[10.316528,34.373474],[10.316528,34.3731960000001],[10.317082,34.3731960000001],[10.317082,34.3729180000001],[10.317638,34.3729180000001],[10.317638,34.3726380000001],[10.318194,34.3726380000001],[10.318194,34.37236],[10.3184730000002,34.37236],[10.3184730000002,34.3720810000002],[10.319029,34.3720810000002],[10.319029,34.3715280000001],[10.319304,34.3715280000001],[10.319304,34.3704180000001],[10.3195820000001,34.3704180000001],[10.3195820000001,34.3695840000001],[10.3198610000001,34.3695840000001],[10.3198610000001,34.3687520000001],[10.3201390000002,34.3687520000001],[10.3201390000002,34.367637],[10.3204170000001,34.367637],[10.3204170000001,34.366527],[10.320695,34.366527],[10.320695,34.3656950000001],[10.3209730000001,34.3656950000001],[10.3209730000001,34.3645830000001],[10.321251,34.3645830000001],[10.321251,34.3629150000001],[10.3209730000001,34.3629150000001],[10.3209730000001,34.3598580000001],[10.320695,34.3598580000001],[10.320695,34.3595850000001],[10.3204170000001,34.3595850000001],[10.3204170000001,34.359307],[10.3201390000002,34.359307],[10.3201390000002,34.3590290000001],[10.3198610000001,34.3590290000001],[10.3198610000001,34.3584710000001],[10.3195820000001,34.3584710000001],[10.3195820000001,34.358197],[10.319304,34.358197],[10.319304,34.3579170000001],[10.319029,34.3579170000001],[10.319029,34.357639],[10.3187510000001,34.357639],[10.3187510000001,34.3573610000001],[10.3184730000002,34.3573610000001],[10.3184730000002,34.357083],[10.3179160000001,34.357083],[10.3179160000001,34.356804],[10.3173600000001,34.356804],[10.3173600000001,34.356529],[10.3168060000001,34.356529],[10.3168060000001,34.3562510000001],[10.3151380000001,34.3562510000001],[10.3151380000001,34.356529],[10.314306,34.356529],[10.314306,34.356804],[10.31375,34.356804],[10.31375,34.357083],[10.3129160000001,34.357083],[10.3129160000001,34.3573610000001],[10.312084,34.3573610000001],[10.312084,34.357639],[10.309862,34.357639],[10.309862,34.3573610000001],[10.3090280000001,34.3573610000001],[10.3090280000001,34.357083],[10.308194,34.357083],[10.308194,34.356804],[10.3073620000001,34.356804],[10.3073620000001,34.356529],[10.306528,34.356529],[10.306528,34.3562510000001],[10.3051400000001,34.3562510000001],[10.3051400000001,34.356529],[10.3043050000001,34.356529],[10.3043050000001,34.356804],[10.3031930000001,34.356804],[10.3031930000001,34.357083],[10.302361,34.357083],[10.302361,34.3573610000001],[10.3018050000001,34.3573610000001],[10.3018050000001,34.357639],[10.3015270000001,34.357639],[10.3015270000001,34.3579170000001],[10.3009710000001,34.3579170000001],[10.3009710000001,34.358197],[10.3004170000001,34.358197],[10.3004170000001,34.3584710000001],[10.2998610000001,34.3584710000001],[10.2998610000001,34.358749],[10.299583,34.358749],[10.299583,34.3590290000001],[10.299027,34.3590290000001],[10.299027,34.3595850000001],[10.2987490000002,34.3595850000001],[10.2987490000002,34.3601390000001],[10.2984730000001,34.3601390000001],[10.2984730000001,34.3606950000001],[10.2981950000001,34.3606950000001],[10.2981950000001,34.361527],[10.297917,34.361527],[10.297917,34.362083],[10.2976390000001,34.362083],[10.2976390000001,34.3629150000001],[10.297361,34.3629150000001],[10.297361,34.3637510000002],[10.2970830000002,34.3637510000002],[10.2970830000002,34.364307],[10.2968050000001,34.364307],[10.2968050000001,34.3651390000001],[10.2965270000001,34.3651390000001],[10.2965270000001,34.3662490000001],[10.2968050000001,34.3662490000001],[10.2968050000001,34.3679150000001],[10.2970830000002,34.3679150000001],[10.2970830000002,34.3690250000001],[10.297361,34.3690250000001],[10.297361,34.3693060000001],[10.2976390000001,34.3693060000001],[10.2976390000001,34.3695840000001],[10.297917,34.3695840000001],[10.297917,34.3704180000001],[10.2981950000001,34.3704180000001],[10.2981950000001,34.3715280000001],[10.2984730000001,34.3715280000001],[10.2984730000001,34.373474],[10.299027,34.373474],[10.299027,34.3737500000001],[10.2993050000001,34.3737500000001],[10.2993050000001,34.374028],[10.299583,34.374028],[10.299583,34.374306],[10.3004170000001,34.374306],[10.3004170000001,34.3745840000001],[10.301249,34.3745840000001],[10.301251,34.3748620000001],[10.3031930000001,34.3748620000001],[10.3031930000001,34.375138],[10.3034740000001,34.375138],[10.3034740000001,34.3754160000001],[10.304027,34.3754160000001],[10.304027,34.375694],[10.3043050000001,34.375694],[10.3043050000001,34.375972],[10.304583,34.375972],[10.304583,34.3762520000001],[10.304862,34.3762520000001],[10.304862,34.3765260000001],[10.3051400000001,34.3765300000001],[10.3051400000001,34.3770820000001],[10.305418,34.3770820000001],[10.305418,34.37764],[10.3056960000001,34.37764],[10.3056960000001,34.3779180000001],[10.3059710000001,34.3779180000001],[10.3059710000001,34.378472],[10.3062500000001,34.378472],[10.3062500000001,34.37875],[10.306528,34.37875],[10.306528,34.3790280000001],[10.307084,34.3790280000001],[10.307084,34.379306],[10.3079160000001,34.379306],[10.3079160000001,34.3795820000001],[10.3084720000001,34.3795840000001],[10.3084720000001,34.3798600000001],[10.3090280000001,34.3798600000001],[10.3090280000001,34.380138],[10.3095840000001,34.380138],[10.3095840000001,34.380416],[10.3101380000001,34.380416],[10.3101380000001,34.3806940000001],[10.3106940000001,34.3806940000001],[10.3106940000001,34.3809750000001],[10.3123600000001,34.3809750000001]]],[[[10.2915290000001,34.3906930000001],[10.2915290000001,34.3904150000001],[10.292639,34.3904150000001],[10.292639,34.390141],[10.2931950000001,34.390141],[10.2931950000001,34.3898610000001],[10.2934730000001,34.3898610000001],[10.2934730000001,34.389583],[10.294027,34.389583],[10.294029,34.3890270000001],[10.2943070000001,34.3890270000001],[10.2943070000001,34.3881950000001],[10.2937510000002,34.3881950000001],[10.2937510000002,34.387917],[10.2934730000001,34.387917],[10.2934730000001,34.3881950000001],[10.2931950000001,34.3881950000001],[10.2931950000001,34.387917],[10.292639,34.387917],[10.292639,34.3876390000001],[10.2923600000001,34.3876390000001],[10.2923600000001,34.3865290000001],[10.292639,34.3865290000001],[10.292639,34.386249],[10.292917,34.386249],[10.292917,34.3865290000001],[10.2931950000001,34.3865290000001],[10.2931950000001,34.3873590000001],[10.2934730000001,34.3873590000001],[10.2934730000001,34.3870850000001],[10.2937510000002,34.3870850000001],[10.2937510000002,34.386807],[10.294583,34.386807],[10.294583,34.3859710000002],[10.2948610000001,34.3859710000002],[10.2948610000001,34.384583],[10.2951390000001,34.384583],[10.2951390000001,34.3840290000001],[10.2954170000002,34.3840290000001],[10.2954170000002,34.382636],[10.2951390000001,34.382636],[10.2951390000001,34.382917],[10.2948610000001,34.382917],[10.2948610000001,34.382636],[10.294583,34.382636],[10.294583,34.3820850000001],[10.2948610000001,34.3820850000001],[10.2948610000001,34.3815260000001],[10.2937510000002,34.3815260000001],[10.2937510000002,34.3812480000001],[10.2931950000001,34.3812480000001],[10.2931950000001,34.381804],[10.292917,34.381804],[10.292917,34.3820850000001],[10.292639,34.3820850000001],[10.292639,34.381804],[10.2923600000001,34.381804],[10.2923600000001,34.3812480000001],[10.292639,34.3812480000001],[10.292639,34.3795840000001],[10.2934730000001,34.3795820000001],[10.2934730000001,34.37875],[10.292639,34.37875],[10.292639,34.378472],[10.2923600000001,34.378472],[10.2923600000001,34.3779180000001],[10.291804,34.3779180000001],[10.291804,34.3781920000001],[10.2915290000001,34.3781920000001],[10.2915290000001,34.378472],[10.2909720000001,34.378472],[10.2909720000001,34.3790280000001],[10.2904160000001,34.3790280000001],[10.2904160000001,34.379306],[10.290138,34.379306],[10.290138,34.3795820000001],[10.2898600000001,34.3795820000001],[10.2898600000001,34.3798600000001],[10.289582,34.3798600000001],[10.289582,34.3795820000001],[10.2893060000001,34.3795820000001],[10.2893060000001,34.380138],[10.2890280000001,34.380138],[10.2890280000001,34.380416],[10.2893060000001,34.380416],[10.2893060000001,34.3809750000001],[10.2890280000001,34.3809750000001],[10.2890280000001,34.3812480000001],[10.2893060000001,34.3812480000001],[10.2893060000001,34.381804],[10.289582,34.381804],[10.289582,34.3823630000001],[10.2898600000001,34.3823630000001],[10.2898600000001,34.3831950000001],[10.290138,34.3831950000001],[10.290138,34.3843050000002],[10.2904160000001,34.3843050000002],[10.2904160000001,34.385139],[10.2906940000001,34.385139],[10.2906940000001,34.3856920000001],[10.2909720000001,34.3856920000001],[10.2909720000001,34.3906930000001],[10.2915290000001,34.3906930000001]]],[[[10.294027,34.3995820000001],[10.294029,34.399308],[10.294583,34.399308],[10.294583,34.3990280000001],[10.2954170000002,34.3990280000001],[10.2954170000002,34.39875],[10.2959730000001,34.39875],[10.2959730000001,34.398194],[10.296251,34.398194],[10.296251,34.3979160000001],[10.2970830000002,34.3979160000001],[10.2970830000002,34.39764],[10.297361,34.39764],[10.297361,34.3973620000001],[10.2970830000002,34.3973620000001],[10.2970830000002,34.397084],[10.2968050000001,34.397084],[10.2968050000001,34.3968060000001],[10.2948610000001,34.3968060000001],[10.2948610000001,34.397084],[10.2943070000001,34.397084],[10.2943070000001,34.3973620000001],[10.2937510000002,34.3973620000001],[10.2937510000002,34.39764],[10.292917,34.39764],[10.292917,34.3984720000001],[10.292639,34.3984720000001],[10.292639,34.3990280000001],[10.2931950000001,34.3990280000001],[10.2931950000001,34.399308],[10.2937510000002,34.399308],[10.2937510000002,34.3995820000001],[10.294027,34.3995820000001]]],[[[10.301551,34.581836],[10.3067139999999,34.581048],[10.311693,34.581222],[10.316131,34.5824640000001],[10.327048,34.5897890000001],[10.332134,34.594119],[10.343921,34.6005089999999],[10.355054,34.607691],[10.375491,34.5893450000001],[10.3717870000002,34.5829990000001],[10.3707250000001,34.578761],[10.3704340000001,34.5743380000001],[10.3713230000001,34.568104],[10.3763360000002,34.5516240000001],[10.3774650000001,34.544531],[10.37749,34.5398280000001],[10.3768810000001,34.535319],[10.375394,34.531193],[10.3741800000001,34.52937],[10.371605,34.5269600000001],[10.3632500000001,34.521304],[10.3586990000001,34.5199770000002],[10.3436750000001,34.5183890000001],[10.3390830000001,34.5172350000001],[10.3326970000001,34.5140100000001],[10.321127,34.5091040000001],[10.3098000000001,34.5030250000002],[10.306816,34.500213],[10.305618,34.4984600000001],[10.29469,34.4765230000001],[10.293045,34.4689930000001],[10.292292,34.461217],[10.2920370000001,34.4507600000001],[10.2925250000001,34.443004],[10.29402,34.436098],[10.306416,34.39875],[10.304583,34.39875],[10.304583,34.3990280000001],[10.3034740000001,34.3990280000001],[10.3034740000001,34.399308],[10.302917,34.399308],[10.302917,34.3995820000001],[10.302361,34.3995820000001],[10.302361,34.39986],,[9.95878800000008,34.4667090000001],[9.96451600000006,34.474381],[9.97272500000003,34.481548],[9.98403000000013,34.4891010000001],[10.00278,34.495011],[10.0260890000001,34.4975210000001],[10.039481,34.502671],[10.0466310000001,34.5176020000001],[10.053242,34.5240680000001]]]]}, "properties": {"title":"Sfax","description":"Code  : 196<br\/>NomLocal : Sfax<br\/>"}}]}

Hors ligne

 

#4 Tue 10 September 2013 15:37

araking
Participant actif
Date d'inscription: 8 Jul 2013
Messages: 83

Re: SyntaxError: JSON.parse: unexpected character

Je ne sais pas d'ou il vient le problème malgré que j'ai validé sur http://geojsonlint.com/ il m'a bien affiché le résultat mais en exécutant le code php seule j'ai cette erreur

<br />
<b>Notice</b>: Undefined index: sliderValue in <b>C:\Program Files\EasyPHP-5.3.9\www\sig\ole-1.0-beta1\client\examples\arafet.php</b> on line <b>6</b><br />
{"type": "FeatureCollection", "features": []}

bien sûr sliderValue est définit dans  le html

Code:

  <form action="arafet.php" method="POST" name="form">


        <table cellpadding="0">
        <tr>
        <td>
        <p>Region:</p>
        </td>
        <td>
        <input name="sliderValue" id="sliderValue" type="Text" size="10">
        </td>
        </tr>
        <tr>
        <td>
<input name="Submit" type="Submit" value="Submit">
</td>
</tr>
</table>

Hors ligne

 

#5 Tue 10 September 2013 16:07

simon_g
Participant assidu
Lieu: Paris
Date d'inscription: 4 Oct 2006
Messages: 195
Site web

Re: SyntaxError: JSON.parse: unexpected character

Certes il est déclaré dans ton HTML mais ton code php n'est pas correct :

Remplace :

Code:

$requete="SELECT name_1,gid, ST_ASGeoJSON(geom) AS geojson FROM tun_adm2 where  name_1='$_POST[sliderValue]'";

par :

Code:

$requete="SELECT name_1,gid, ST_ASGeoJSON(geom) AS geojson FROM tun_adm2 where  name_1='$_POST['sliderValue']'";

tu remarqueras les quotes, ça change tout ....

Ton code est loin d'être optimisé mais surtout il est très peu sécurisé ..... c'est pas le sujet, mais un conseil, penses-y.

Hors ligne

 

Pied de page des forums

Powered by FluxBB