当前位置: 首页 > 工具软件 > WKT > 使用案例 >

java GIS wkt数据解析 WKTUtil

令狐昂雄
2023-12-01

package com.xj.hhjk.common.util.gis;

import java.io.StringWriter;

import org.geotools.geojson.geom.GeometryJSON;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.vividsolutions.jts.geom.Geometry;
import com.vividsolutions.jts.io.WKTReader;

//geom:01050000C00100000001020000C002000000E33E3C0CB5538341D78ED57F2195494148E17A14AE4709400000000000000000326F0BA9B4538341D7B80BBB13954941A4703D0AD7A318400000000000000000
//geoJson:{"type":"MultiPolygon","coordinates":[[[[4.053161752941682E7,3353154.998704772],[4.0532027470259145E7,3352961.900576026],[4.05323759924117E7,3352805.062627236],[4.0532445279987805E7,3352808.6503408453],[4.053290332998161E7,3352825.030518723],[4.05333613699878E7,3352841.4203408454],[4.053375338396864E7,3352855.4455758543],[4.0533819519905314E7,3352857.433140456],[4.0534277650055915E7,3352871.208144997],[4.0534735790050834E7,3352884.9782947283],[4.0535

 类似资料: