| | |
| | | |
| | | |
| | | public class CoordinateSystemUtil { |
| | | public static void main(String[] args) { |
| | | String wtk= "MULTIPOLYGON(((3.94836025714E7 3176072.7897, 3.94835938931E7 3176063.7288, 3.94835894481E7 3176067.1154, 3.94835981264E7 3176075.7938, 3.94836026103E7 3176085.7288, 3.94836089215E7 3176099.7123, 3.94836159065E7 3176121.5139, 3.94836178114E7 3176140.9873, 3.94836181917E7 3176148.7199, 3.94836214775E7 3176146.8663, 3.94836254582E7 3176144.37, 3.94836237382E7 3176137.8123, 3.94836165415E7 3176107.3321, 3.9483608468E7 3176087.3696, 3.94836025714E7 3176072.7897)))"; |
| | | String se=wtk.replaceAll(",\\["," ").replaceAll("]","").replaceAll("\\[",""); |
| | | System.out.println(se); |
| | | System.out.println(poylonCGCStoWGS(se)); |
| | | } |
| | | public static Geometry pointCGCStoWGS(Double lot, Double lat) { |
| | | String wkt = "POINT (" + lot + " " + lat + ")"; |
| | | Geometry source = createGeometry(wkt, 4527); |