File tree Expand file tree Collapse file tree 2 files changed +531
-0
lines changed Expand file tree Collapse file tree 2 files changed +531
-0
lines changed Original file line number Diff line number Diff line change 1010// Adapters
1111include_once ("lib/adapters/GeoAdapter.class.php " ); // Abtract class
1212include_once ("lib/adapters/GeoJSON.class.php " );
13+ include_once ("lib/adapters/EsriJSON.class.php " );
1314include_once ("lib/adapters/WKT.class.php " );
1415include_once ("lib/adapters/EWKT.class.php " );
1516include_once ("lib/adapters/WKB.class.php " );
@@ -97,6 +98,8 @@ class geoPHP
9798 'wkb ' => 'WKB ' ,
9899 'ewkb ' => 'EWKB ' ,
99100 'json ' => 'GeoJSON ' ,
101+ 'esrijson ' => 'EsriJSON ' ,
102+ 'arcgis ' => 'EsriJSON ' ,
100103 'geojson ' => 'GeoJSON ' ,
101104 'kml ' => 'KML ' ,
102105 'gpx ' => 'GPX ' ,
@@ -257,6 +260,9 @@ class geoPHP
257260
258261 // Detect GeoJSON - first char starts with {
259262 if ($ bytes [1 ] == 123 ) {
263+ if (strpos ($ input , 'esri ' ) !== FALSE ) {
264+ return 'esrijson ' ;
265+ }
260266 return 'json ' ;
261267 }
262268
You can’t perform that action at this time.
0 commit comments