记一次geometry入库操作及shp下载

tech2025-04-09  9

1.业务需求

要求将前端的地图标绘(使用openLayer)内容存储到数据库,并能够展示及下载为shp文件,本人负责后端开发

2.思路

2.1 了解前端返回的geoJson,其格式一般如下

{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point", "coordinates": [102.0, 0.5]}, "properties": {"prop0": "value0"} }, { "type": "Feature", "geometry": { "type": "LineString", "coordinates": [ [102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0] ] }, "properties": { "prop0": "value0", "prop1": 0.0 } }, { "type": "Feature", "geometry": { "type": "Polygon", "coordinate
最新回复(0)