GeoTools解析GeoJson为要素集(FeatureCollection)含嵌套数组属性

Repository - Sonatype Nexus Repository

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>


	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.3.12.RELEASE</version>
		<relativePath/>
	</parent>


	<groupId>cc.admin</groupId>
	<artifactId>cc-geo</artifactId>
	<version>1.0.0</version>

	<name>cc-geo</name>
	<url>http://www.cc-admin.top</url>

	<properties>
		<ccboot.version>1.0.0</ccboot.version>
		<java.version>1.8</java.version>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<geotools.version>28.2</geotools.version>
		<geodata.version>20.0</geodata.version>
	</properties>

	<dependencies>


		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

		<dependency>
			<groupId>cn.hutool</groupId>
			<artifactId>hutool-all</artifactId>
			<version>5.8.25</version>
		</dependency>

		<dependency>
			<groupId>org.jeecgframework.jimureport</groupId>
			<artifactId>jimureport-spring-boot-starter</artifactId>
			<version>1.6.6</version>
		</dependency>

		<!-- 数据库驱动 -->
		<!--mysql-->
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>8.0.28</version>
			<scope>runtime</scope>
		</dependency>

		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<version>1.18.24</version>
		</dependency>

		<dependency>
			<groupId>commons-net</groupId>
			<artifactId>commons-net</artifactId>
			<version>3.10.0</version>
		</dependency>

		<dependency>
			<groupId>com.jcraft</groupId>
			<artifactId>jsch</artifactId>
			<version>0.1.55</version>
		</dependency>

		<dependency>
			<groupId>org.geotools</groupId>
			<artifactId>gt-main</artifactId>
			<version>${geotools.version}</version>
		</dependency>

		<!-- geotools-geojson核心包 -->
		<dependency>
			<groupId>org.geotools</groupId>
			<artifactId>gt-geojson-core</artifactId>
			<version>${geotools.version}</version>
		</dependency>

		<dependency>
			<groupId>org.geotools</groupId>
			<artifactId>gt-geojson</artifactId>
			<version>${geotools.version}</version>
		</dependency>

		<dependency>
			<groupId>org.geotools</groupId>
			<artifactId>gt-data</artifactId>
			<version>${geodata.version}</version>
		</dependency>



		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.11</version>
		</dependency>

	</dependencies>

	<build>
		<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
			<plugins>
				<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
				<plugin>
					<artifactId>maven-clean-plugin</artifactId>
					<version>3.1.0</version>
				</plugin>
				<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
				<plugin>
					<artifactId>maven-resources-plugin</artifactId>
					<version>3.0.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.0</version>
				</plugin>
				<plugin>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.22.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-jar-plugin</artifactId>
					<version>3.0.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-install-plugin</artifactId>
					<version>2.5.2</version>
				</plugin>
				<plugin>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>2.8.2</version>
				</plugin>
				<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
				<plugin>
					<artifactId>maven-site-plugin</artifactId>
					<version>3.7.1</version>
				</plugin>
				<plugin>
					<artifactId>maven-project-info-reports-plugin</artifactId>
					<version>3.0.0</version>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<repositories>
		<repository>
			<id>geo-tools</id>
			<name>User Project Release</name>
			<url>https://repo.osgeo.org/repository/release/</url>
			<releases>
				<enabled>true</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>
	</repositories>
</project>
package cc.admin.tools.geo;

import lombok.Data;
import org.locationtech.jts.geom.MultiPolygon;
 
@Data
public class WaveWarningInfo {
	String waveH;
	String content;
	MultiPolygon multiPolygon;
}

 

package cc.admin.tools.geo;

import org.apache.commons.compress.utils.Lists;
import org.geotools.data.geojson.GeoJSONReader;
import org.geotools.data.simple.SimpleFeatureCollection;
import org.geotools.data.simple.SimpleFeatureIterator;
import org.locationtech.jts.geom.MultiPolygon;
import org.opengis.feature.Property;
import org.opengis.feature.simple.SimpleFeature;

import java.util.Collection;
import java.util.Iterator;
import java.util.List;

public class GeoJSONParser {
	public static List<WaveWarningInfo> parseWaveWarningInfo(String geoJson) {
		List<WaveWarningInfo> waveWarningInfoList = Lists.newArrayList();
		SimpleFeatureCollection featureCollection = GeoJSONReader.parseFeatureCollection(geoJson);
		// 遍历要素进行处理
		SimpleFeatureIterator features = featureCollection.features();
		while (features.hasNext()) {
			WaveWarningInfo waveWarningInfo = new WaveWarningInfo();
			SimpleFeature feature = features.next();
			/**
			 * Point Polygon MultiPoint MultiLineString MultiPolygon
			 */
			waveWarningInfo.setMultiPolygon((MultiPolygon)feature.getDefaultGeometry());
			// 遍历获取要素属性信息
			Collection<Property> properties = feature.getProperties();
			Iterator<Property> propertyIterator = properties.iterator();
			while (propertyIterator.hasNext()) {
				Property property = propertyIterator.next();
				if ("Content".equals(property.getName().toString())) {
					waveWarningInfo.setContent(property.getValue().toString());
				}
				if ("WaveH".equals(property.getName().toString())) {
					waveWarningInfo.setWaveH(property.getValue().toString());
				}
			}
			waveWarningInfoList.add(waveWarningInfo);
		}
		// 要素集迭代器用完记得关闭
		features.close();
		return waveWarningInfoList;

	}

	public static void main(String[] args) {
		String geoJson = "{\"features\":[{\"geometry\":{\"coordinates\":[[[[106.761,20.8839],[106.8006,21.0106],[106.8386,21.133],[106.8759,21.251],[106.9132,21.3646],[106.9513,21.4736],[106.991,21.5779],[107.0331,21.6774],[107.0783,21.7721],[107.1275,21.8619],[107.1814,21.9466],[107.1814,21.9466],[107.2408,22.0263],[107.3059,22.1019],[107.3771,22.1746],[107.4546,22.2454],[107.5388,22.3155],[107.6299,22.3858],[107.7282,22.4576],[107.8339,22.5319],[107.9474,22.6098],[108.069,22.6924],[108.069,22.6924],[108.1986,22.7804],[108.3358,22.8731],[108.4796,22.9693],[108.6293,23.068],[108.7841,23.1679],[108.943,23.268],[109.1053,23.3671],[109.2702,23.4641],[109.4369,23.5578],[109.6044,23.6472],[109.6044,23.6472],[109.7725,23.7314],[109.9424,23.8101],[110.1158,23.8837],[110.2943,23.9521],[110.4795,24.0155],[110.6733,24.0742],[110.8772,24.1281],[111.0929,24.1774],[111.3221,24.2222],[111.5664,24.2627],[111.5664,24.2627],[111.8268,24.2989],[112.101,24.3302],[112.3858,24.3558],[112.6783,24.375],[112.9753,24.3871],[113.2737,24.3913],[113.5706,24.3869],[113.8627,24.3732],[114.1471,24.3495],[114.4207,24.3149],[114.4207,24.3149],[114.681,24.2693],[114.9281,24.2137],[115.1628,24.1499],[115.3859,24.0795],[115.598,24.004],[115.8,23.9251],[115.9926,23.8444],[116.1765,23.7636],[116.3525,23.6843],[116.5213,23.608],[116.5213,23.608],[116.6836,23.5361],[116.84,23.4684],[116.9908,23.4043],[117.1365,23.3434],[117.2776,23.2851],[117.4144,23.2288],[117.5474,23.1741],[117.6771,23.1205],[117.8039,23.0673],[117.9282,23.0141],[117.9282,23.0141],[118.0504,22.9605],[118.1703,22.9064],[118.2877,22.852],[118.4024,22.7973],[118.5141,22.7426],[118.6226,22.6877],[118.7278,22.633],[118.8292,22.5785],[118.9268,22.5243],[119.0203,22.4705],[119.0203,22.4705],[119.1096,22.417],[119.1953,22.3631],[119.2782,22.3078],[119.3591,22.2502],[119.4389,22.1893],[119.5181,22.1242],[119.5978,22.0539],[119.6785,21.9776],[119.7612,21.8941],[119.8466,21.8027],[119.8466,21.8027],[119.9351,21.7026],[120.0263,21.5942],[120.1193,21.4783],[120.213,21.3554],[120.3068,21.2264],[120.3998,21.0919],[120.4909,20.9526],[120.5795,20.8091],[120.6646,20.6622],[120.7454,20.5126],[120.7454,20.5126],[120.821,20.3609],[120.8915,20.2077],[120.9569,20.0535],[121.017,19.8988],[121.0721,19.7441],[121.1222,19.59],[121.1671,19.4369],[121.2071,19.2855],[121.2421,19.1362],[121.2721,18.9895],[121.2721,18.9895],[121.2972,18.8459],[121.3176,18.7054],[121.3336,18.5679],[121.3453,18.4335],[121.353,18.3021],[121.357,18.1736],[121.3574,18.0479],[121.3545,17.9251],[121.3485,17.8051],[121.3397,17.6878],[121.3397,17.6878],[121.3282,17.5731],[121.314,17.4604],[121.2969,17.349],[121.2767,17.2384],[121.2533,17.1278],[121.2266,17.0165],[121.1965,16.9039],[121.1627,16.7894],[121.1251,16.6722],[121.0836,16.5517],[121.0836,16.5517],[121.0382,16.4274],[120.9893,16.299],[120.9375,16.1666],[120.8833,16.0302],[120.8274,15.8897],[120.7704,15.745],[120.7127,15.5963],[120.655,15.4433],[120.5979,15.2861],[120.5419,15.1247],[120.5419,15.1247],[120.4875,14.9591],[120.4344,14.7903],[120.3822,14.6193],[120.3305,14.447],[120.279,14.2744],[120.2272,14.1026],[120.1748,13.9326],[120.1213,13.7654],[120.0664,13.602],[120.0097,13.4433],[120.0097,13.4433],[119.9506,13.2901],[119.8885,13.1417],[119.8222,12.9969],[119.751,12.8546],[119.6739,12.7138],[119.59,12.5734],[119.4983,12.4322],[119.398,12.2893],[119.2881,12.1436],[119.1676,11.9938],[119.1676,11.9938],[119.0359,11.8394],[118.892,11.6804],[118.7355,11.5177],[118.5657,11.3516],[118.382,11.1829],[118.1838,11.012],[117.9704,10.8397],[117.7412,10.6665],[117.4957,10.4929],[117.2331,10.3196],[117.2331,10.3196],[116.9535,10.1473],[116.6595,9.9775],[116.3543,9.8118],[116.041,9.6519],[115.723,9.4993],[115.4034,9.3557],[115.0855,9.2228],[114.7724,9.1021],[114.4673,8.9954],[114.1736,8.9041],[114.1736,8.9041],[113.8936,8.8296],[113.6266,8.7714],[113.3711,8.7284],[113.1257,8.6999],[112.8888,8.6849],[112.6591,8.6825],[112.435,8.6917],[112.2151,8.7118],[111.9978,8.7416],[111.7817,8.7804],[111.7817,8.7804],[111.5658,8.8273],[111.3516,8.8815],[111.1407,8.9423],[110.9351,9.0093],[110.7367,9.0816],[110.5473,9.1586],[110.3686,9.2397],[110.2027,9.3241],[110.0514,9.4113],[109.9164,9.5005],[109.9164,9.5005],[109.7993,9.5914],[109.6997,9.684],[109.6168,9.7788],[109.5497,9.8762],[109.4979,9.9766],[109.4603,10.0804],[109.4364,10.188],[109.4252,10.2998],[109.426,10.4161],[109.4381,10.5374],[109.4381,10.5374],[109.4604,10.6641],[109.4919,10.7968],[109.5311,10.9361],[109.5766,11.0827],[109.6271,11.2373],[109.6812,11.4003],[109.7376,11.5726],[109.7949,11.7546],[109.8518,11.9472],[109.9068,12.1508],[109.9068,12.1508],[109.9586,12.3656],[110.0059,12.5899],[110.0475,12.8212],[110.0819,13.0571],[110.1079,13.2955],[110.1242,13.5338],[110.1295,13.7698],[110.1225,14.0012],[110.1018,14.2255],[110.0662,14.4404],[110.0662,14.4404],[110.015,14.6441],[109.9496,14.8364],[109.8724,15.0177],[109.7853,15.1882],[109.6905,15.3483],[109.5903,15.4984],[109.4867,15.6387],[109.3818,15.7697],[109.2779,15.8915],[109.1771,16.0046],[109.1771,16.0046],[109.081,16.1095],[108.989,16.2072],[108.9003,16.299],[108.8137,16.3863],[108.7283,16.4702],[108.6431,16.5522],[108.5569,16.6334],[108.4689,16.7152],[108.378,16.7988],[108.2832,16.8855],[108.2832,16.8855],[108.1837,16.9764],[108.0802,17.0717],[107.9734,17.1714],[107.8642,17.2754],[107.7534,17.3838],[107.642,17.4965],[107.5306,17.6136],[107.4202,17.7351],[107.3116,17.8608],[107.2056,17.9909],[107.2056,17.9909],[107.1031,18.1252],[107.0052,18.2634],[106.9128,18.4049],[106.8271,18.5493],[106.7489,18.6962],[106.6795,18.8449],[106.6199,18.9952],[106.571,19.1465],[106.5339,19.2983],[106.5098,19.4501],[106.5098,19.4501],[106.499,19.6016],[106.5006,19.7522],[106.5129,19.9017],[106.5342,20.0497],[106.5629,20.1957],[106.5974,20.3394],[106.6361,20.4805],[106.6774,20.6185],[106.7195,20.7531],[106.761,20.8839]],[[107.9883,21.541],[107.9122,21.4687],[107.8342,21.3909],[107.7554,21.3083],[107.6768,21.2212],[107.5996,21.13],[107.525,21.0352],[107.454,20.9372],[107.3878,20.8364],[107.3275,20.7332],[107.2742,20.6281],[107.2742,20.6281],[107.2287,20.5215],[107.1907,20.4139],[107.1596,20.3058],[107.1347,20.1976],[107.1153,20.0899],[107.1009,19.9832],[107.0909,19.878],[107.0844,19.7747],[107.0811,19.6739],[107.0801,19.5761],[107.0801,19.5761],[107.081,19.4816],[107.0842,19.3905],[107.09,19.3028],[107.0988,19.2184],[107.1112,19.1372],[107.1275,19.0591],[107.1483,18.9842],[107.1738,18.9124],[107.2047,18.8435],[107.2412,18.7776],[107.2412,18.7776],[107.2838,18.7147],[107.3319,18.6549],[107.3852,18.5985],[107.443,18.5458],[107.5049,18.4972],[107.5703,18.4528],[107.6387,18.4129],[107.7095,18.3778],[107.7823,18.3478],[107.8564,18.3231],[107.8564,18.3231],[107.9316,18.304],[108.0077,18.2901],[108.0849,18.2811],[108.1632,18.2767],[108.2428,18.2763],[108.3237,18.2797],[108.406,18.2864],[108.4897,18.2962],[108.5751,18.3086],[108.6621,18.3232],[108.6621,18.3232],[108.7508,18.3397],[108.8405,18.3575],[108.9306,18.3762],[109.0205,18.3952],[109.1093,18.414],[109.1966,18.432],[109.2815,18.4488],[109.3634,18.4639],[109.4416,18.4766],[109.5154,18.4865],[109.5154,18.4865],[109.5843,18.4933],[109.6485,18.4969],[109.7083,18.4979],[109.7639,18.4963],[109.8157,18.4926],[109.864,18.487],[109.909,18.4799],[109.9512,18.4714],[109.9908,18.462],[110.0281,18.4518],[110.0281,18.4518],[110.0633,18.4411],[110.0961,18.4293],[110.1261,18.4157],[110.1528,18.3999],[110.1759,18.381],[110.195,18.3584],[110.2095,18.3316],[110.2192,18.2997],[110.2236,18.2623],[110.2222,18.2186],[110.2222,18.2186],[110.2149,18.1683],[110.2027,18.1119],[110.1867,18.0504],[110.1683,17.9844],[110.1485,17.9151],[110.1286,17.843],[110.1098,17.7692],[110.0933,17.6945],[110.0803,17.6198],[110.072,17.5458],[110.072,17.5458],[110.0696,17.4733],[110.0734,17.4026],[110.0838,17.3339],[110.1013,17.2671],[110.126,17.2025],[110.1585,17.1402],[110.199,17.0803],[110.2479,17.023],[110.3056,16.9683],[110.3723,16.9165],[110.3723,16.9165],[110.4483,16.8675],[110.533,16.8212],[110.6255,16.7773],[110.7251,16.7357],[110.831,16.6961],[110.9424,16.6583],[111.0585,16.6221],[111.1784,16.5871],[111.3016,16.5533],[111.427,16.5203],[111.427,16.5203],[111.5539,16.4879],[111.6812,16.4562],[111.8078,16.425],[111.9325,16.3942],[112.0541,16.364],[112.1716,16.3342],[112.2838,16.3047],[112.3895,16.2756],[112.4876,16.2467],[112.5769,16.2181],[112.5769,16.2181],[112.6566,16.1896],[112.7266,16.1604],[112.7873,16.1295],[112.8388,16.0961],[112.8813,16.0593],[112.9152,16.0181],[112.9406,15.9717],[112.9579,15.9191],[112.9672,15.8594],[112.9688,15.7917],[112.9688,15.7917],[112.9629,15.7154],[112.9498,15.631],[112.9299,15.5393],[112.9035,15.441],[112.8708,15.3371],[112.8322,15.2282],[112.7879,15.1152],[112.7384,14.9989],[112.6838,14.8801],[112.6245,14.7596],[112.6245,14.7596],[112.5609,14.6381],[112.4939,14.5164],[112.4243,14.3952],[112.3531,14.2751],[112.2812,14.1568],[112.2095,14.0411],[112.1389,13.9285],[112.0704,13.8198],[112.0049,13.7157],[111.9434,13.6168],[111.9434,13.6168],[111.8865,13.5237],[111.8347,13.4363],[111.7881,13.3544],[111.7471,13.2776],[111.7117,13.2057],[111.6823,13.1386],[111.6591,13.0758],[111.6422,13.0172],[111.6319,12.9626],[111.6284,12.9116],[111.6284,12.9116],[111.6319,12.8641],[111.6423,12.8199],[111.6594,12.7792],[111.683,12.7418],[111.7131,12.7077],[111.7494,12.6769],[111.7919,12.6495],[111.8403,12.6253],[111.8945,12.6044],[111.9543,12.5867],[111.9543,12.5867],[112.0197,12.5722],[112.0901,12.5609],[112.1654,12.5528],[112.2453,12.5477],[112.3293,12.5456],[112.4171,12.5466],[112.5084,12.5505],[112.603,12.5573],[112.7004,12.567],[112.8003,12.5796],[112.8003,12.5796],[112.9024,12.5949],[113.0062,12.6131],[113.1113,12.6341],[113.2172,12.658],[113.3235,12.6849],[113.4297,12.7148],[113.5353,12.7478],[113.6398,12.7838],[113.7429,12.8229],[113.844,12.8652],[113.844,12.8652],[113.9427,12.9107],[114.0384,12.9593],[114.1306,13.0108],[114.2187,13.0653],[114.3022,13.1225],[114.3806,13.1824],[114.4532,13.2448],[114.5196,13.3096],[114.5791,13.3768],[114.6313,13.4463],[114.6313,13.4463],[114.6757,13.5179],[114.7123,13.592],[114.7411,13.6689],[114.7621,13.749],[114.7755,13.8327],[114.7814,13.9202],[114.7797,14.012],[114.7706,14.1085],[114.7541,14.2099],[114.7302,14.3167],[114.7302,14.3167],[114.6994,14.4288],[114.6628,14.5453],[114.6219,14.6646],[114.5783,14.7855],[114.5334,14.9064],[114.4887,15.026],[114.4457,15.1429],[114.406,15.2557],[114.3709,15.363],[114.342,15.4634],[114.342,15.4634],[114.3206,15.5559],[114.3064,15.6407],[114.2991,15.7185],[114.2983,15.79],[114.3036,15.8558],[114.3146,15.9166],[114.331,15.9731],[114.3522,16.0259],[114.378,16.0756],[114.408,16.123],[114.408,16.123],[114.4416,16.1686],[114.4786,16.2118],[114.5186,16.2523],[114.5611,16.2894],[114.6057,16.3227],[114.6521,16.3515],[114.6999,16.3753],[114.7486,16.3936],[114.7979,16.4058],[114.8474,16.4114],[114.8474,16.4114],[114.8967,16.4101],[114.9458,16.4023],[114.9945,16.3889],[115.0429,16.3706],[115.0909,16.3482],[115.1385,16.3224],[115.1856,16.2939],[115.2321,16.2636],[115.2781,16.2323],[115.3235,16.2005],[115.3235,16.2005],[115.3683,16.1691],[115.4129,16.1381],[115.4579,16.1077],[115.5038,16.0779],[115.551,16.0488],[115.6001,16.0204],[115.6515,15.9928],[115.7059,15.9661],[115.7636,15.9403],[115.8252,15.9155],[115.8252,15.9155],[115.8911,15.8919],[115.961,15.8704],[116.0348,15.8519],[116.1122,15.8376],[116.1928,15.8283],[116.2763,15.8252],[116.3626,15.8292],[116.4512,15.8413],[116.542,15.8626],[116.6345,15.8941],[116.6345,15.8941],[116.7285,15.9364],[116.8231,15.9887],[116.9173,16.0498],[117.0103,16.1184],[117.101,16.1934],[117.1885,16.2735],[117.2719,16.3576],[117.3502,16.4444],[117.4225,16.5328],[117.4878,16.6215],[117.4878,16.6215],[117.5454,16.7096],[117.5957,16.7974],[117.6391,16.8854],[117.6762,16.9744],[117.7075,17.0648],[117.7335,17.1573],[117.7548,17.2523],[117.7719,17.3506],[117.7852,17.4527],[117.7954,17.5591],[117.7954,17.5591],[117.8029,17.6703],[117.8079,17.7856],[117.8105,17.9042],[117.8109,18.0254],[117.8091,18.1482],[117.8054,18.272],[117.7999,18.3958],[117.7926,18.5188],[117.7837,18.6403],[117.7734,18.7593],[117.7734,18.7593],[117.7618,18.8754],[117.7488,18.9886],[117.7344,19.0992],[117.7187,19.2075],[117.7016,19.3139],[117.683,19.4187],[117.663,19.5221],[117.6415,19.6245],[117.6185,19.7263],[117.594,19.8276],[117.594,19.8276],[117.568,19.9288],[117.5407,20.0293],[117.5125,20.1286],[117.4834,20.2261],[117.4539,20.3213],[117.4242,20.4135],[117.3945,20.5023],[117.3651,20.587],[117.3363,20.667],[117.3083,20.7418],[117.3083,20.7418],[117.2814,20.811],[117.2551,20.875],[117.2291,20.9344],[117.2031,20.9897],[117.1765,21.0415],[117.1491,21.0904],[117.1204,21.137],[117.09,21.1819],[117.0576,21.2256],[117.0227,21.2687],[117.0227,21.2687],[116.9851,21.3117],[116.945,21.3547],[116.9027,21.3979],[116.8586,21.4412],[116.813,21.4848],[116.7664,21.5287],[116.719,21.5729],[116.6713,21.6175],[116.6234,21.6626],[116.5759,21.7082],[116.5759,21.7082],[116.5289,21.7545],[116.4822,21.8013],[116.4353,21.8488],[116.3878,21.8969],[116.3393,21.9457],[116.2893,21.9952],[116.2375,22.0455],[116.1835,22.0964],[116.1267,22.1481],[116.0669,22.2006],[116.0669,22.2006],[116.0036,22.2538],[115.9366,22.3071],[115.8656,22.3599],[115.7906,22.4116],[115.7112,22.4615],[115.6274,22.5089],[115.5388,22.5532],[115.4453,22.5938],[115.3468,22.63],[115.2429,22.6612],[115.2429,22.6612],[115.1337,22.6868],[115.0196,22.7069],[114.9011,22.7218],[114.7788,22.7316],[114.6533,22.7365],[114.5252,22.7367],[114.395,22.7325],[114.2633,22.724],[114.1308,22.7115],[113.9978,22.6951],[113.9978,22.6951],[113.8651,22.675],[113.7331,22.6518],[113.6024,22.6259],[113.4734,22.5978],[113.3469,22.5678],[113.2231,22.5365],[113.1028,22.5044],[112.9864,22.4719],[112.8744,22.4394],[112.7673,22.4075],[112.7673,22.4075],[112.6655,22.3766],[112.5682,22.3469],[112.4744,22.3185],[112.383,22.2919],[112.2931,22.267],[112.2036,22.2442],[112.1135,22.2236],[112.0219,22.2054],[111.9277,22.1899],[111.8298,22.1772],[111.8298,22.1772],[111.7277,22.1675],[111.6219,22.1605],[111.5132,22.1558],[111.4026,22.1532],[111.291,22.1522],[111.1794,22.1526],[111.0685,22.1539],[110.9592,22.1559],[110.8526,22.1581],[110.7495,22.1603],[110.7495,22.1603],[110.6506,22.1621],[110.5559,22.1636],[110.4653,22.1647],[110.3785,22.1656],[110.2954,22.1662],[110.2158,22.1666],[110.1396,22.1669],[110.0665,22.167],[109.9965,22.1671],[109.9292,22.1671],[109.9292,22.1671],[109.8645,22.167],[109.802,22.1669],[109.7412,22.1665],[109.6817,22.1658],[109.623,22.1645],[109.5645,22.1627],[109.506,22.1601],[109.4469,22.1566],[109.3867,22.1522],[109.325,22.1467],[109.325,22.1467],[109.2614,22.14],[109.1962,22.1318],[109.1297,22.1221],[109.0622,22.1108],[108.994,22.0975],[108.9255,22.0822],[108.857,22.0647],[108.7888,22.0448],[108.7213,22.0224],[108.6548,21.9973],[108.6548,21.9973],[108.5895,21.9693],[108.525,21.9382],[108.461,21.9036],[108.397,21.8653],[108.3325,21.823],[108.2672,21.7764],[108.2005,21.7252],[108.1321,21.6691],[108.0615,21.6078],[107.9883,21.541]]]],\"type\":\"MultiPolygon\"},\"type\":\"Feature\",\"properties\":{\"Content\":\"海浪蓝色警报\",\"WaveH\":\"3\"}},{\"geometry\":{\"coordinates\":[[[[107.9883,21.541],[108.0615,21.6078],[108.1321,21.6691],[108.2005,21.7252],[108.2672,21.7764],[108.3325,21.823],[108.397,21.8653],[108.461,21.9036],[108.525,21.9382],[108.5895,21.9693],[108.6548,21.9973],[108.6548,21.9973],[108.7213,22.0224],[108.7888,22.0448],[108.857,22.0647],[108.9255,22.0822],[108.994,22.0975],[109.0622,22.1108],[109.1297,22.1221],[109.1962,22.1318],[109.2614,22.14],[109.325,22.1467],[109.325,22.1467],[109.3867,22.1522],[109.4469,22.1566],[109.506,22.1601],[109.5645,22.1627],[109.623,22.1645],[109.6817,22.1658],[109.7412,22.1665],[109.802,22.1669],[109.8645,22.167],[109.9292,22.1671],[109.9292,22.1671],[109.9965,22.1671],[110.0665,22.167],[110.1396,22.1669],[110.2158,22.1666],[110.2954,22.1662],[110.3785,22.1656],[110.4653,22.1647],[110.5559,22.1636],[110.6506,22.1621],[110.7495,22.1603],[110.7495,22.1603],[110.8526,22.1581],[110.9592,22.1559],[111.0685,22.1539],[111.1794,22.1526],[111.291,22.1522],[111.4026,22.1532],[111.5132,22.1558],[111.6219,22.1605],[111.7277,22.1675],[111.8298,22.1772],[111.8298,22.1772],[111.9277,22.1899],[112.0219,22.2054],[112.1135,22.2236],[112.2036,22.2442],[112.2931,22.267],[112.383,22.2919],[112.4744,22.3185],[112.5682,22.3469],[112.6655,22.3766],[112.7673,22.4075],[112.7673,22.4075],[112.8744,22.4394],[112.9864,22.4719],[113.1028,22.5044],[113.2231,22.5365],[113.3469,22.5678],[113.4734,22.5978],[113.6024,22.6259],[113.7331,22.6518],[113.8651,22.675],[113.9978,22.6951],[113.9978,22.6951],[114.1308,22.7115],[114.2633,22.724],[114.395,22.7325],[114.5252,22.7367],[114.6533,22.7365],[114.7788,22.7316],[114.9011,22.7218],[115.0196,22.7069],[115.1337,22.6868],[115.2429,22.6612],[115.2429,22.6612],[115.3468,22.63],[115.4453,22.5938],[115.5388,22.5532],[115.6274,22.5089],[115.7112,22.4615],[115.7906,22.4116],[115.8656,22.3599],[115.9366,22.3071],[116.0036,22.2538],[116.0669,22.2006],[116.0669,22.2006],[116.1267,22.1481],[116.1835,22.0964],[116.2375,22.0455],[116.2893,21.9952],[116.3393,21.9457],[116.3878,21.8969],[116.4353,21.8488],[116.4822,21.8013],[116.5289,21.7545],[116.5759,21.7082],[116.5759,21.7082],[116.6234,21.6626],[116.6713,21.6175],[116.719,21.5729],[116.7664,21.5287],[116.813,21.4848],[116.8586,21.4412],[116.9027,21.3979],[116.945,21.3547],[116.9851,21.3117],[117.0227,21.2687],[117.0227,21.2687],[117.0576,21.2256],[117.09,21.1819],[117.1204,21.137],[117.1491,21.0904],[117.1765,21.0415],[117.2031,20.9897],[117.2291,20.9344],[117.2551,20.875],[117.2814,20.811],[117.3083,20.7418],[117.3083,20.7418],[117.3363,20.667],[117.3651,20.587],[117.3945,20.5023],[117.4242,20.4135],[117.4539,20.3213],[117.4834,20.2261],[117.5125,20.1286],[117.5407,20.0293],[117.568,19.9288],[117.594,19.8276],[117.594,19.8276],[117.6185,19.7263],[117.6415,19.6245],[117.663,19.5221],[117.683,19.4187],[117.7016,19.3139],[117.7187,19.2075],[117.7344,19.0992],[117.7488,18.9886],[117.7618,18.8754],[117.7734,18.7593],[117.7734,18.7593],[117.7837,18.6403],[117.7926,18.5188],[117.7999,18.3958],[117.8054,18.272],[117.8091,18.1482],[117.8109,18.0254],[117.8105,17.9042],[117.8079,17.7856],[117.8029,17.6703],[117.7954,17.5591],[117.7954,17.5591],[117.7852,17.4527],[117.7719,17.3506],[117.7548,17.2523],[117.7335,17.1573],[117.7075,17.0648],[117.6762,16.9744],[117.6391,16.8854],[117.5957,16.7974],[117.5454,16.7096],[117.4878,16.6215],[117.4878,16.6215],[117.4225,16.5328],[117.3502,16.4444],[117.2719,16.3576],[117.1885,16.2735],[117.101,16.1934],[117.0103,16.1184],[116.9173,16.0498],[116.8231,15.9887],[116.7285,15.9364],[116.6345,15.8941],[116.6345,15.8941],[116.542,15.8626],[116.4512,15.8413],[116.3626,15.8292],[116.2763,15.8252],[116.1928,15.8283],[116.1122,15.8376],[116.0348,15.8519],[115.961,15.8704],[115.8911,15.8919],[115.8252,15.9155],[115.8252,15.9155],[115.7636,15.9403],[115.7059,15.9661],[115.6515,15.9928],[115.6001,16.0204],[115.551,16.0488],[115.5038,16.0779],[115.4579,16.1077],[115.4129,16.1381],[115.3683,16.1691],[115.3235,16.2005],[115.3235,16.2005],[115.2781,16.2323],[115.2321,16.2636],[115.1856,16.2939],[115.1385,16.3224],[115.0909,16.3482],[115.0429,16.3706],[114.9945,16.3889],[114.9458,16.4023],[114.8967,16.4101],[114.8474,16.4114],[114.8474,16.4114],[114.7979,16.4058],[114.7486,16.3936],[114.6999,16.3753],[114.6521,16.3515],[114.6057,16.3227],[114.5611,16.2894],[114.5186,16.2523],[114.4786,16.2118],[114.4416,16.1686],[114.408,16.123],[114.408,16.123],[114.378,16.0756],[114.3522,16.0259],[114.331,15.9731],[114.3146,15.9166],[114.3036,15.8558],[114.2983,15.79],[114.2991,15.7185],[114.3064,15.6407],[114.3206,15.5559],[114.342,15.4634],[114.342,15.4634],[114.3709,15.363],[114.406,15.2557],[114.4457,15.1429],[114.4887,15.026],[114.5334,14.9064],[114.5783,14.7855],[114.6219,14.6646],[114.6628,14.5453],[114.6994,14.4288],[114.7302,14.3167],[114.7302,14.3167],[114.7541,14.2099],[114.7706,14.1085],[114.7797,14.012],[114.7814,13.9202],[114.7755,13.8327],[114.7621,13.749],[114.7411,13.6689],[114.7123,13.592],[114.6757,13.5179],[114.6313,13.4463],[114.6313,13.4463],[114.5791,13.3768],[114.5196,13.3096],[114.4532,13.2448],[114.3806,13.1824],[114.3022,13.1225],[114.2187,13.0653],[114.1306,13.0108],[114.0384,12.9593],[113.9427,12.9107],[113.844,12.8652],[113.844,12.8652],[113.7429,12.8229],[113.6398,12.7838],[113.5353,12.7478],[113.4297,12.7148],[113.3235,12.6849],[113.2172,12.658],[113.1113,12.6341],[113.0062,12.6131],[112.9024,12.5949],[112.8003,12.5796],[112.8003,12.5796],[112.7004,12.567],[112.603,12.5573],[112.5084,12.5505],[112.4171,12.5466],[112.3293,12.5456],[112.2453,12.5477],[112.1654,12.5528],[112.0901,12.5609],[112.0197,12.5722],[111.9543,12.5867],[111.9543,12.5867],[111.8945,12.6044],[111.8403,12.6253],[111.7919,12.6495],[111.7494,12.6769],[111.7131,12.7077],[111.683,12.7418],[111.6594,12.7792],[111.6423,12.8199],[111.6319,12.8641],[111.6284,12.9116],[111.6284,12.9116],[111.6319,12.9626],[111.6422,13.0172],[111.6591,13.0758],[111.6823,13.1386],[111.7117,13.2057],[111.7471,13.2776],[111.7881,13.3544],[111.8347,13.4363],[111.8865,13.5237],[111.9434,13.6168],[111.9434,13.6168],[112.0049,13.7157],[112.0704,13.8198],[112.1389,13.9285],[112.2095,14.0411],[112.2812,14.1568],[112.3531,14.2751],[112.4243,14.3952],[112.4939,14.5164],[112.5609,14.6381],[112.6245,14.7596],[112.6245,14.7596],[112.6838,14.8801],[112.7384,14.9989],[112.7879,15.1152],[112.8322,15.2282],[112.8708,15.3371],[112.9035,15.441],[112.9299,15.5393],[112.9498,15.631],[112.9629,15.7154],[112.9688,15.7917],[112.9688,15.7917],[112.9672,15.8594],[112.9579,15.9191],[112.9406,15.9717],[112.9152,16.0181],[112.8813,16.0593],[112.8388,16.0961],[112.7873,16.1295],[112.7266,16.1604],[112.6566,16.1896],[112.5769,16.2181],[112.5769,16.2181],[112.4876,16.2467],[112.3895,16.2756],[112.2838,16.3047],[112.1716,16.3342],[112.0541,16.364],[111.9325,16.3942],[111.8078,16.425],[111.6812,16.4562],[111.5539,16.4879],[111.427,16.5203],[111.427,16.5203],[111.3016,16.5533],[111.1784,16.5871],[111.0585,16.6221],[110.9424,16.6583],[110.831,16.6961],[110.7251,16.7357],[110.6255,16.7773],[110.533,16.8212],[110.4483,16.8675],[110.3723,16.9165],[110.3723,16.9165],[110.3056,16.9683],[110.2479,17.023],[110.199,17.0803],[110.1585,17.1402],[110.126,17.2025],[110.1013,17.2671],[110.0838,17.3339],[110.0734,17.4026],[110.0696,17.4733],[110.072,17.5458],[110.072,17.5458],[110.0803,17.6198],[110.0933,17.6945],[110.1098,17.7692],[110.1286,17.843],[110.1485,17.9151],[110.1683,17.9844],[110.1867,18.0504],[110.2027,18.1119],[110.2149,18.1683],[110.2222,18.2186],[110.2222,18.2186],[110.2236,18.2623],[110.2192,18.2997],[110.2095,18.3316],[110.195,18.3584],[110.1759,18.381],[110.1528,18.3999],[110.1261,18.4157],[110.0961,18.4293],[110.0633,18.4411],[110.0281,18.4518],[110.0281,18.4518],[109.9908,18.462],[109.9512,18.4714],[109.909,18.4799],[109.864,18.487],[109.8157,18.4926],[109.7639,18.4963],[109.7083,18.4979],[109.6485,18.4969],[109.5843,18.4933],[109.5154,18.4865],[109.5154,18.4865],[109.4416,18.4766],[109.3634,18.4639],[109.2815,18.4488],[109.1966,18.432],[109.1093,18.414],[109.0205,18.3952],[108.9306,18.3762],[108.8405,18.3575],[108.7508,18.3397],[108.6621,18.3232],[108.6621,18.3232],[108.5751,18.3086],[108.4897,18.2962],[108.406,18.2864],[108.3237,18.2797],[108.2428,18.2763],[108.1632,18.2767],[108.0849,18.2811],[108.0077,18.2901],[107.9316,18.304],[107.8564,18.3231],[107.8564,18.3231],[107.7823,18.3478],[107.7095,18.3778],[107.6387,18.4129],[107.5703,18.4528],[107.5049,18.4972],[107.443,18.5458],[107.3852,18.5985],[107.3319,18.6549],[107.2838,18.7147],[107.2412,18.7776],[107.2412,18.7776],[107.2047,18.8435],[107.1738,18.9124],[107.1483,18.9842],[107.1275,19.0591],[107.1112,19.1372],[107.0988,19.2184],[107.09,19.3028],[107.0842,19.3905],[107.081,19.4816],[107.0801,19.5761],[107.0801,19.5761],[107.0811,19.6739],[107.0844,19.7747],[107.0909,19.878],[107.1009,19.9832],[107.1153,20.0899],[107.1347,20.1976],[107.1596,20.3058],[107.1907,20.4139],[107.2287,20.5215],[107.2742,20.6281],[107.2742,20.6281],[107.3275,20.7332],[107.3878,20.8364],[107.454,20.9372],[107.525,21.0352],[107.5996,21.13],[107.6768,21.2212],[107.7554,21.3083],[107.8342,21.3909],[107.9122,21.4687],[107.9883,21.541]],[[109.054,21.5619],[108.9664,21.5229],[108.8739,21.4797],[108.7778,21.4325],[108.6796,21.3818],[108.5806,21.3278],[108.4823,21.2708],[108.3861,21.2111],[108.2933,21.1491],[108.2054,21.085],[108.1238,21.0191],[108.1238,21.0191],[108.0496,20.9517],[107.983,20.883],[107.9238,20.8133],[107.8719,20.7426],[107.8271,20.6712],[107.7894,20.5992],[107.7586,20.5269],[107.7346,20.4545],[107.7172,20.382],[107.7063,20.3097],[107.7063,20.3097],[107.7018,20.2379],[107.7033,20.1667],[107.7107,20.0966],[107.7237,20.0278],[107.742,19.9608],[107.7654,19.8958],[107.7935,19.8332],[107.8262,19.7733],[107.8631,19.7165],[107.9041,19.663],[107.9041,19.663],[107.9488,19.6131],[107.9975,19.5669],[108.0503,19.5243],[108.1074,19.4852],[108.1691,19.4496],[108.2355,19.4174],[108.3068,19.3886],[108.3832,19.363],[108.465,19.3406],[108.5522,19.3215],[108.5522,19.3215],[108.645,19.3053],[108.7422,19.2919],[108.8428,19.2807],[108.9454,19.2714],[109.0489,19.2636],[109.1521,19.2568],[109.2537,19.2506],[109.3526,19.2446],[109.4476,19.2384],[109.5374,19.2316],[109.5374,19.2316],[109.621,19.2238],[109.6988,19.2149],[109.7711,19.2047],[109.8385,19.1932],[109.9013,19.1802],[109.96,19.1656],[110.0152,19.1494],[110.0672,19.1314],[110.1165,19.1116],[110.1636,19.0897],[110.1636,19.0897],[110.2089,19.0659],[110.2528,19.0399],[110.2957,19.0117],[110.3378,18.9815],[110.3796,18.949],[110.4214,18.9144],[110.4636,18.8776],[110.5065,18.8385],[110.5504,18.7972],[110.5957,18.7536],[110.5957,18.7536],[110.6428,18.7077],[110.6924,18.66],[110.7451,18.6107],[110.8016,18.5604],[110.8626,18.5093],[110.9287,18.4579],[111.0007,18.4066],[111.0792,18.3557],[111.1649,18.3057],[111.2585,18.2569],[111.2585,18.2569],[111.3604,18.2098],[111.4695,18.1647],[111.5846,18.1217],[111.7044,18.0812],[111.8275,18.0435],[111.9528,18.0087],[112.0788,17.9773],[112.2044,17.9494],[112.3281,17.9254],[112.4487,17.9055],[112.4487,17.9055],[112.5652,17.8899],[112.6776,17.8788],[112.7861,17.872],[112.891,17.8696],[112.9926,17.8716],[113.091,17.8779],[113.1867,17.8887],[113.2798,17.9038],[113.3707,17.9234],[113.4595,17.9473],[113.4595,17.9473],[113.5464,17.9755],[113.6312,18.0078],[113.7134,18.0436],[113.7925,18.0828],[113.8683,18.1248],[113.9401,18.1693],[114.0078,18.2159],[114.0707,18.2643],[114.1286,18.314],[114.1809,18.3647],[114.1809,18.3647],[114.2274,18.4161],[114.2684,18.4682],[114.3043,18.5212],[114.3354,18.575],[114.3622,18.6299],[114.385,18.6859],[114.4042,18.7431],[114.4203,18.8017],[114.4336,18.8617],[114.4446,18.9232],[114.4446,18.9232],[114.4535,18.9863],[114.4605,19.0509],[114.4657,19.1167],[114.4692,19.1837],[114.4711,19.2515],[114.4715,19.32],[114.4704,19.389],[114.4679,19.4583],[114.4642,19.5278],[114.4592,19.5972],[114.4592,19.5972],[114.4532,19.6664],[114.4462,19.7351],[114.4382,19.8029],[114.4294,19.8697],[114.4199,19.935],[114.4097,19.9987],[114.3989,20.0604],[114.3876,20.1199],[114.376,20.1768],[114.364,20.231],[114.364,20.231],[114.3518,20.2821],[114.339,20.3304],[114.3254,20.3764],[114.3106,20.4203],[114.2944,20.4624],[114.2765,20.5033],[114.2565,20.5431],[114.2341,20.5822],[114.209,20.6211],[114.1809,20.66],[114.1809,20.66],[114.1496,20.6993],[114.115,20.7389],[114.0772,20.7787],[114.0361,20.8188],[113.9919,20.8591],[113.9444,20.8994],[113.8938,20.9397],[113.84,20.9801],[113.7831,21.0203],[113.7231,21.0604],[113.7231,21.0604],[113.6601,21.1003],[113.5945,21.1398],[113.5265,21.1788],[113.4567,21.2173],[113.3853,21.2551],[113.3129,21.292],[113.2397,21.328],[113.1663,21.3629],[113.0929,21.3967],[113.02,21.4291],[113.02,21.4291],[112.9479,21.4601],[112.8763,21.4897],[112.8051,21.5179],[112.7337,21.5449],[112.662,21.5705],[112.5897,21.595],[112.5164,21.6182],[112.4418,21.6403],[112.3657,21.6613],[112.2876,21.6812],[112.2876,21.6812],[112.2075,21.7001],[112.1256,21.718],[112.0423,21.7348],[111.9581,21.7506],[111.8733,21.7654],[111.7885,21.7792],[111.7039,21.792],[111.6201,21.8037],[111.5374,21.8144],[111.4563,21.8241],[111.4563,21.8241],[111.377,21.8328],[111.2992,21.8404],[111.2222,21.8469],[111.1457,21.8522],[111.069,21.8564],[110.9917,21.8593],[110.9132,21.861],[110.833,21.8614],[110.7505,21.8604],[110.6653,21.8581],[110.6653,21.8581],[110.577,21.8543],[110.4862,21.8493],[110.3938,21.8429],[110.3007,21.8355],[110.2075,21.8271],[110.1153,21.8177],[110.0247,21.8075],[109.9367,21.7966],[109.8521,21.7851],[109.7717,21.7731],[109.7717,21.7731],[109.6961,21.7606],[109.6243,21.7472],[109.5553,21.7327],[109.488,21.7165],[109.4211,21.6982],[109.3535,21.6775],[109.2842,21.6539],[109.2119,21.6271],[109.1356,21.5965],[109.054,21.5619]]]],\"type\":\"MultiPolygon\"},\"type\":\"Feature\",\"properties\":{\"Content\":\"海浪黄色警报\",\"WaveH\":\"4\"}},{\"geometry\":{\"coordinates\":[[[[109.054,21.5619],[109.1356,21.5965],[109.2119,21.6271],[109.2842,21.6539],[109.3535,21.6775],[109.4211,21.6982],[109.488,21.7165],[109.5553,21.7327],[109.6243,21.7472],[109.6961,21.7606],[109.7717,21.7731],[109.7717,21.7731],[109.8521,21.7851],[109.9367,21.7966],[110.0247,21.8075],[110.1153,21.8177],[110.2075,21.8271],[110.3007,21.8355],[110.3938,21.8429],[110.4862,21.8493],[110.577,21.8543],[110.6653,21.8581],[110.6653,21.8581],[110.7505,21.8604],[110.833,21.8614],[110.9132,21.861],[110.9917,21.8593],[111.069,21.8564],[111.1457,21.8522],[111.2222,21.8469],[111.2992,21.8404],[111.377,21.8328],[111.4563,21.8241],[111.4563,21.8241],[111.5374,21.8144],[111.6201,21.8037],[111.7039,21.792],[111.7885,21.7792],[111.8733,21.7654],[111.9581,21.7506],[112.0423,21.7348],[112.1256,21.718],[112.2075,21.7001],[112.2876,21.6812],[112.2876,21.6812],[112.3657,21.6613],[112.4418,21.6403],[112.5164,21.6182],[112.5897,21.595],[112.662,21.5705],[112.7337,21.5449],[112.8051,21.5179],[112.8763,21.4897],[112.9479,21.4601],[113.02,21.4291],[113.02,21.4291],[113.0929,21.3967],[113.1663,21.3629],[113.2397,21.328],[113.3129,21.292],[113.3853,21.2551],[113.4567,21.2173],[113.5265,21.1788],[113.5945,21.1398],[113.6601,21.1003],[113.7231,21.0604],[113.7231,21.0604],[113.7831,21.0203],[113.84,20.9801],[113.8938,20.9397],[113.9444,20.8994],[113.9919,20.8591],[114.0361,20.8188],[114.0772,20.7787],[114.115,20.7389],[114.1496,20.6993],[114.1809,20.66],[114.1809,20.66],[114.209,20.6211],[114.2341,20.5822],[114.2565,20.5431],[114.2765,20.5033],[114.2944,20.4624],[114.3106,20.4203],[114.3254,20.3764],[114.339,20.3304],[114.3518,20.2821],[114.364,20.231],[114.364,20.231],[114.376,20.1768],[114.3876,20.1199],[114.3989,20.0604],[114.4097,19.9987],[114.4199,19.935],[114.4294,19.8697],[114.4382,19.8029],[114.4462,19.7351],[114.4532,19.6664],[114.4592,19.5972],[114.4592,19.5972],[114.4642,19.5278],[114.4679,19.4583],[114.4704,19.389],[114.4715,19.32],[114.4711,19.2515],[114.4692,19.1837],[114.4657,19.1167],[114.4605,19.0509],[114.4535,18.9863],[114.4446,18.9232],[114.4446,18.9232],[114.4336,18.8617],[114.4203,18.8017],[114.4042,18.7431],[114.385,18.6859],[114.3622,18.6299],[114.3354,18.575],[114.3043,18.5212],[114.2684,18.4682],[114.2274,18.4161],[114.1809,18.3647],[114.1809,18.3647],[114.1286,18.314],[114.0707,18.2643],[114.0078,18.2159],[113.9401,18.1693],[113.8683,18.1248],[113.7925,18.0828],[113.7134,18.0436],[113.6312,18.0078],[113.5464,17.9755],[113.4595,17.9473],[113.4595,17.9473],[113.3707,17.9234],[113.2798,17.9038],[113.1867,17.8887],[113.091,17.8779],[112.9926,17.8716],[112.891,17.8696],[112.7861,17.872],[112.6776,17.8788],[112.5652,17.8899],[112.4487,17.9055],[112.4487,17.9055],[112.3281,17.9254],[112.2044,17.9494],[112.0788,17.9773],[111.9528,18.0087],[111.8275,18.0435],[111.7044,18.0812],[111.5846,18.1217],[111.4695,18.1647],[111.3604,18.2098],[111.2585,18.2569],[111.2585,18.2569],[111.1649,18.3057],[111.0792,18.3557],[111.0007,18.4066],[110.9287,18.4579],[110.8626,18.5093],[110.8016,18.5604],[110.7451,18.6107],[110.6924,18.66],[110.6428,18.7077],[110.5957,18.7536],[110.5957,18.7536],[110.5504,18.7972],[110.5065,18.8385],[110.4636,18.8776],[110.4214,18.9144],[110.3796,18.949],[110.3378,18.9815],[110.2957,19.0117],[110.2528,19.0399],[110.2089,19.0659],[110.1636,19.0897],[110.1636,19.0897],[110.1165,19.1116],[110.0672,19.1314],[110.0152,19.1494],[109.96,19.1656],[109.9013,19.1802],[109.8385,19.1932],[109.7711,19.2047],[109.6988,19.2149],[109.621,19.2238],[109.5374,19.2316],[109.5374,19.2316],[109.4476,19.2384],[109.3526,19.2446],[109.2537,19.2506],[109.1521,19.2568],[109.0489,19.2636],[108.9454,19.2714],[108.8428,19.2807],[108.7422,19.2919],[108.645,19.3053],[108.5522,19.3215],[108.5522,19.3215],[108.465,19.3406],[108.3832,19.363],[108.3068,19.3886],[108.2355,19.4174],[108.1691,19.4496],[108.1074,19.4852],[108.0503,19.5243],[107.9975,19.5669],[107.9488,19.6131],[107.9041,19.663],[107.9041,19.663],[107.8631,19.7165],[107.8262,19.7733],[107.7935,19.8332],[107.7654,19.8958],[107.742,19.9608],[107.7237,20.0278],[107.7107,20.0966],[107.7033,20.1667],[107.7018,20.2379],[107.7063,20.3097],[107.7063,20.3097],[107.7172,20.382],[107.7346,20.4545],[107.7586,20.5269],[107.7894,20.5992],[107.8271,20.6712],[107.8719,20.7426],[107.9238,20.8133],[107.983,20.883],[108.0496,20.9517],[108.1238,21.0191],[108.1238,21.0191],[108.2054,21.085],[108.2933,21.1491],[108.3861,21.2111],[108.4823,21.2708],[108.5806,21.3278],[108.6796,21.3818],[108.7778,21.4325],[108.8739,21.4797],[108.9664,21.5229],[109.054,21.5619]],[[108.9197,20.8115],[108.8919,20.8116],[108.8654,20.8105],[108.8399,20.8083],[108.8152,20.8048],[108.7911,20.8],[108.7675,20.7938],[108.7441,20.7863],[108.7208,20.7772],[108.6973,20.7666],[108.6736,20.7545],[108.6736,20.7545],[108.6494,20.7407],[108.625,20.7254],[108.6006,20.7089],[108.5766,20.6912],[108.5531,20.6726],[108.5306,20.6532],[108.5092,20.6332],[108.4893,20.6128],[108.471,20.5921],[108.4548,20.5714],[108.4548,20.5714],[108.4408,20.5508],[108.4292,20.5303],[108.4199,20.5098],[108.4132,20.4894],[108.4091,20.469],[108.4076,20.4486],[108.4088,20.4282],[108.4128,20.4077],[108.4197,20.3871],[108.4296,20.3665],[108.4296,20.3665],[108.4424,20.3457],[108.4583,20.325],[108.4771,20.3043],[108.4987,20.2837],[108.5232,20.2634],[108.5504,20.2435],[108.5804,20.224],[108.6131,20.2051],[108.6483,20.1868],[108.6862,20.1692],[108.6862,20.1692],[108.7265,20.1525],[108.7688,20.1367],[108.8127,20.122],[108.8576,20.1085],[108.9031,20.0964],[108.9486,20.0857],[108.9937,20.0767],[109.0379,20.0694],[109.0807,20.064],[109.1216,20.0606],[109.1216,20.0606],[109.1601,20.0593],[109.1963,20.0599],[109.2303,20.0624],[109.2619,20.0667],[109.2914,20.0724],[109.3187,20.0797],[109.344,20.0881],[109.3672,20.0978],[109.3884,20.1084],[109.4076,20.1198],[109.4076,20.1198],[109.425,20.132],[109.4406,20.1449],[109.4546,20.1583],[109.467,20.1722],[109.4781,20.1865],[109.4879,20.2012],[109.4966,20.2161],[109.5042,20.2313],[109.511,20.2466],[109.517,20.262],[109.517,20.262],[109.5224,20.2774],[109.5271,20.2928],[109.5313,20.3081],[109.5349,20.3235],[109.538,20.3389],[109.5406,20.3543],[109.5427,20.3697],[109.5444,20.385],[109.5456,20.4004],[109.5464,20.4158],[109.5464,20.4158],[109.5469,20.4312],[109.5468,20.4465],[109.5462,20.4618],[109.545,20.477],[109.543,20.4922],[109.5402,20.5072],[109.5365,20.522],[109.5318,20.5367],[109.5261,20.5513],[109.5191,20.5655],[109.5191,20.5655],[109.5109,20.5796],[109.5016,20.5934],[109.4912,20.6069],[109.4799,20.62],[109.4678,20.6327],[109.455,20.6451],[109.4417,20.657],[109.4278,20.6684],[109.4136,20.6792],[109.3992,20.6896],[109.3992,20.6896],[109.3846,20.6993],[109.3697,20.7085],[109.3543,20.7172],[109.3381,20.7255],[109.3211,20.7334],[109.303,20.7409],[109.2837,20.748],[109.2629,20.755],[109.2405,20.7617],[109.2162,20.7683],[109.2162,20.7683],[109.19,20.7747],[109.1622,20.7809],[109.1329,20.7868],[109.1027,20.7923],[109.0719,20.7973],[109.0407,20.8017],[109.0095,20.8054],[108.9788,20.8083],[108.9487,20.8104],[108.9197,20.8115]]]],\"type\":\"MultiPolygon\"},\"type\":\"Feature\",\"properties\":{\"Content\":\"海浪橙色警报\",\"WaveH\":\"6\"}},{\"geometry\":{\"coordinates\":[[[[112.8339,19.5361],[112.8952,19.513],[112.9573,19.4881],[113.0198,19.4616],[113.0819,19.434],[113.1431,19.4057],[113.2029,19.377],[113.2605,19.3483],[113.3153,19.3201],[113.3669,19.2926],[113.4145,19.2663],[113.4145,19.2663],[113.4577,19.2414],[113.4967,19.2179],[113.532,19.1957],[113.5638,19.1744],[113.5925,19.1541],[113.6185,19.1345],[113.6421,19.1154],[113.6638,19.0967],[113.6838,19.0782],[113.7026,19.0597],[113.7026,19.0597],[113.7205,19.0412],[113.7373,19.0226],[113.753,19.004],[113.7675,18.9854],[113.7807,18.967],[113.7924,18.9487],[113.8026,18.9307],[113.8111,18.913],[113.8177,18.8956],[113.8225,18.8787],[113.8225,18.8787],[113.8253,18.8622],[113.8261,18.8463],[113.825,18.8308],[113.822,18.8159],[113.8173,18.8016],[113.8107,18.7878],[113.8024,18.7747],[113.7925,18.7623],[113.7809,18.7505],[113.7678,18.7393],[113.7678,18.7393],[113.7532,18.729],[113.7368,18.7193],[113.7187,18.7104],[113.6987,18.7022],[113.6766,18.6948],[113.6523,18.6881],[113.6256,18.6823],[113.5965,18.6773],[113.5647,18.673],[113.5301,18.6696],[113.5301,18.6696],[113.4927,18.6671],[113.4524,18.6653],[113.4092,18.6643],[113.3631,18.6641],[113.314,18.6646],[113.2621,18.6659],[113.2073,18.6678],[113.1495,18.6705],[113.0889,18.6737],[113.0254,18.6776],[113.0254,18.6776],[112.9589,18.6822],[112.8898,18.6878],[112.818,18.6949],[112.7439,18.7041],[112.6675,18.7157],[112.5891,18.7302],[112.5087,18.7481],[112.4265,18.7699],[112.3428,18.796],[112.2576,18.8268],[112.2576,18.8268],[112.1714,18.8627],[112.0849,18.9031],[111.9994,18.9471],[111.9159,18.9939],[111.8354,19.0428],[111.7591,19.0929],[111.688,19.1435],[111.6233,19.1938],[111.566,19.2428],[111.5173,19.29],[111.5173,19.29],[111.4778,19.3345],[111.447,19.3763],[111.4243,19.4153],[111.4087,19.4517],[111.3995,19.4855],[111.3958,19.5166],[111.3969,19.5452],[111.4019,19.5711],[111.41,19.5945],[111.4205,19.6154],[111.4205,19.6154],[111.4327,19.6338],[111.4467,19.6498],[111.463,19.6636],[111.4818,19.6753],[111.5036,19.685],[111.5286,19.6929],[111.5573,19.699],[111.59,19.7036],[111.627,19.7067],[111.6687,19.7085],[111.6687,19.7085],[111.7153,19.7091],[111.7662,19.7086],[111.8209,19.707],[111.8786,19.7044],[111.9387,19.7009],[112.0005,19.6964],[112.0633,19.6911],[112.1265,19.6851],[112.1894,19.6783],[112.2513,19.6709],[112.2513,19.6709],[112.3118,19.6628],[112.3709,19.654],[112.429,19.6443],[112.4864,19.6335],[112.5434,19.6214],[112.6004,19.6078],[112.6576,19.5927],[112.7154,19.5758],[112.7741,19.557],[112.8339,19.5361]]]],\"type\":\"MultiPolygon\"},\"type\":\"Feature\",\"properties\":{\"Content\":\"海浪红色警报\",\"WaveH\":\"9\"}},{\"geometry\":{\"coordinates\":[[[[108.9197,20.8115],[108.9487,20.8104],[108.9788,20.8083],[109.0095,20.8054],[109.0407,20.8017],[109.0719,20.7973],[109.1027,20.7923],[109.1329,20.7868],[109.1622,20.7809],[109.19,20.7747],[109.2162,20.7683],[109.2162,20.7683],[109.2405,20.7617],[109.2629,20.755],[109.2837,20.748],[109.303,20.7409],[109.3211,20.7334],[109.3381,20.7255],[109.3543,20.7172],[109.3697,20.7085],[109.3846,20.6993],[109.3992,20.6896],[109.3992,20.6896],[109.4136,20.6792],[109.4278,20.6684],[109.4417,20.657],[109.455,20.6451],[109.4678,20.6327],[109.4799,20.62],[109.4912,20.6069],[109.5016,20.5934],[109.5109,20.5796],[109.5191,20.5655],[109.5191,20.5655],[109.5261,20.5513],[109.5318,20.5367],[109.5365,20.522],[109.5402,20.5072],[109.543,20.4922],[109.545,20.477],[109.5462,20.4618],[109.5468,20.4465],[109.5469,20.4312],[109.5464,20.4158],[109.5464,20.4158],[109.5456,20.4004],[109.5444,20.385],[109.5427,20.3697],[109.5406,20.3543],[109.538,20.3389],[109.5349,20.3235],[109.5313,20.3081],[109.5271,20.2928],[109.5224,20.2774],[109.517,20.262],[109.517,20.262],[109.511,20.2466],[109.5042,20.2313],[109.4966,20.2161],[109.4879,20.2012],[109.4781,20.1865],[109.467,20.1722],[109.4546,20.1583],[109.4406,20.1449],[109.425,20.132],[109.4076,20.1198],[109.4076,20.1198],[109.3884,20.1084],[109.3672,20.0978],[109.344,20.0881],[109.3187,20.0797],[109.2914,20.0724],[109.2619,20.0667],[109.2303,20.0624],[109.1963,20.0599],[109.1601,20.0593],[109.1216,20.0606],[109.1216,20.0606],[109.0807,20.064],[109.0379,20.0694],[108.9937,20.0767],[108.9486,20.0857],[108.9031,20.0964],[108.8576,20.1085],[108.8127,20.122],[108.7688,20.1367],[108.7265,20.1525],[108.6862,20.1692],[108.6862,20.1692],[108.6483,20.1868],[108.6131,20.2051],[108.5804,20.224],[108.5504,20.2435],[108.5232,20.2634],[108.4987,20.2837],[108.4771,20.3043],[108.4583,20.325],[108.4424,20.3457],[108.4296,20.3665],[108.4296,20.3665],[108.4197,20.3871],[108.4128,20.4077],[108.4088,20.4282],[108.4076,20.4486],[108.4091,20.469],[108.4132,20.4894],[108.4199,20.5098],[108.4292,20.5303],[108.4408,20.5508],[108.4548,20.5714],[108.4548,20.5714],[108.471,20.5921],[108.4893,20.6128],[108.5092,20.6332],[108.5306,20.6532],[108.5531,20.6726],[108.5766,20.6912],[108.6006,20.7089],[108.625,20.7254],[108.6494,20.7407],[108.6736,20.7545],[108.6736,20.7545],[108.6973,20.7666],[108.7208,20.7772],[108.7441,20.7863],[108.7675,20.7938],[108.7911,20.8],[108.8152,20.8048],[108.8399,20.8083],[108.8654,20.8105],[108.8919,20.8116],[108.9197,20.8115]]]],\"type\":\"MultiPolygon\"},\"type\":\"Feature\",\"properties\":{\"Content\":\"海浪红色警报\",\"WaveH\":\"9\"}}],\"crs\":{\"type\":\"name\",\"properties\":{}},\"type\":\"FeatureCollection\"}";
		List<WaveWarningInfo> waveWarningInfoList = parseWaveWarningInfo(geoJson);
		System.out.println(waveWarningInfoList);
	}
}

GeoTools是一个开源的Java工具包,可用于处理地理空间数据。GeoTools提供了对GeoJSON格式的支持,可以使用GeoTools解析GeoJSON数据。 以下是一个简单的示例代码,展示了如何使用GeoTools解析GeoJSON数据: ```java File geojsonFile = new File("path/to/geojson/file"); // GeoJSON文件路径 // 创建GeoJSON文件读取器 GeoJSONDataStoreFactory dataStoreFactory = new GeoJSONDataStoreFactory(); Map<String, Object> params = new HashMap<>(); params.put(GeoJSONDataStoreFactory.URLP.key, geojsonFile.toURI().toURL()); GeoJSONDataStore dataStore = (GeoJSONDataStore) dataStoreFactory.createDataStore(params); // 获取GeoJSON数据源中的FeatureCollection SimpleFeatureSource featureSource = dataStore.getFeatureSource(dataStore.getTypeNames()[0]); SimpleFeatureCollection featureCollection = featureSource.getFeatures(); // 遍历FeatureCollection try (SimpleFeatureIterator featureIterator = featureCollection.features()) { while (featureIterator.hasNext()) { SimpleFeature feature = featureIterator.next(); Geometry geometry = (Geometry) feature.getDefaultGeometry(); // 获取几何对象 // 对几何对象进行操作 // ... } } ``` 上述代码首先创建了一个GeoJSON文件读取器,然后使用该读取器获取GeoJSON数据源中的FeatureCollection。接着遍历FeatureCollection,对其中的每个Feature进行操作。 需要注意的是,使用GeoTools解析GeoJSON数据时,需要先将GeoJSON文件转换为GeoJSON数据源,然后再从数据源中获取FeatureCollectionGeoTools支持的数据源类型包括文件、URL、InputStream等。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值