-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hi,
I'm adding the following code to convert to GeoJSON object:
$wkbNames = ['POINT', 'LINESTRING', 'POLYGON'];
$geojsonNames = ['Point', 'LineString', 'Polygon'];
$feature['geometry'] = $parser->parse($wkb);
$feature['geometry']['type'] = str_replace($wkbNames, $geojsonNames, $feature['geometry']['type']);
$feature['geometry']['coordinates'] = $feature['geometry']['value'];
unset($feature['geometry']['srid']);
unset($feature['geometry']['value']);
It could be possible to implement conversion to GeoJSON geometry object?
Thanks :)
tovski
Metadata
Metadata
Assignees
Labels
No labels