{"id":1007,"date":"2023-05-29T18:14:16","date_gmt":"2023-05-29T18:14:16","guid":{"rendered":"https:\/\/www.gislxz.com\/?p=1007"},"modified":"2023-06-29T14:37:18","modified_gmt":"2023-06-29T14:37:18","slug":"webgis-project","status":"publish","type":"post","link":"https:\/\/www.gislxz.com\/index.php\/2023\/05\/29\/webgis-project\/","title":{"rendered":"WebGIS\u7ed3\u8bfe\u5927\u4f5c\u4e1a\u8bb0\u5f55\uff08\u4e3b\u8981\u9760\u7f16\u6545\u4e8b\uff09"},"content":{"rendered":"\n<p>\u6bcf\u5230\u671f\u672b\u90fd\u60f3\u7ed9\u5b66\u671f\u521d\u9009\u8bfe\u7684\u81ea\u5df1\u4fe9\u4e2a\u5927\u5634\u5df4\u5b50\uff0c\u73b0\u5728\u66f4\u60f3\u7ed9\u4e0a\u7b2c\u4e00\u8282\u8bfe\u65f6\u7ed9\u8001\u5e08\u753b\u997c\u7684\u81ea\u5df1\u4e00\u4e2a\u5927\u903c\u6597\u3002\u73b0\u5728\u79bb\u622a\u6b62\u65e5\u671f\u8fd8\u6709\u4e09\u5929\uff0c\u770b\u770b\u4e09\u5929\u65f6\u95f4\u80fd\u7f16\u51fa\u4e00\u4e2a\u4ec0\u4e48\u6837\u7684webgis\u9879\u76ee\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u601d\u8003\u4e00\u4e0b\u7cfb\u7edf\u67b6\u6784\uff1a<\/p>\n\n\n\n<p>\u6570\u636e\u5e93\u5c31\u7528PostgreSQL\uff0c\u6bd5\u7adf\u6211\u4eec\u7ec4\u7684\u77e2\u91cf\u6570\u636e\u90fd\u592a\u5927\u4e86\uff0c\u52a8\u8f84\u51e0\u5341\u4e07\u5730\u5757\uff0c\u4e0d\u7528postgis\u7684r\u6811\u7a7a\u95f4\u7d22\u5f15\u7684\u8bdd\u52a0\u8f7d\u592a\u6162\u4e86\u3002\u76ee\u524d\u8bbe\u60f3\u662f\u5c06\u77e2\u91cf\u6570\u636e\u7684\u4f4d\u7f6e\u6570\u636e\u548c\u5c5e\u6027\u6570\u636e\u5206\u5f00\u5b58\u50a8\uff0c\u4e0d\u60f3\u7528\u7b80\u5355\u7684\u5c5e\u6027\u8868\u6765\u63cf\u8ff0\uff0c\u4e4b\u524d\u6bcf\u4e2a\u6708\u7684\u6570\u636e\u90fd\u662f\u7531\u591a\u4e2a\u6570\u636e\u878d\u5408\u5f97\u5230\uff0c\u611f\u89c9\u8fd9\u70b9\u53ef\u4ee5\u505a\u6539\u8fdb\uff0c\u6bd4\u5982\u8fd9\u4e2a\u5730\u5757\u8fd9\u4e2a\u67085\u53f7\u6709\u4e00\u4efd\u6570\u636e\uff0c25\u53f7\u6709\u4e00\u4efd\u6570\u636e\uff0c\u6216\u8005\u8fd8\u6709\u4e0d\u540c\u536b\u661f\u7684\u6570\u636e\uff0c\u4ee5\u524d\u603b\u662f\u6c42\u4e2a\u5e73\u5747\uff0c\u7136\u540e\u5c31\u8bb0\u8f7d\u5c5e\u6027\u8868\u91cc\u5f53\u4f5c\u8fd9\u4e2a\u6708\u7684\u5c5e\u6027\u503c\u4e86\uff0c\u8fd9\u6837\u4e22\u5931\u4e86\u5f88\u591a\u6709\u6548\u4fe1\u606f\u800c\u4e14\u4e0d\u591f\u51c6\u786e\uff0c\u80af\u5b9a\u4f1a\u5f71\u54cd\u540e\u7eed\u6a21\u578b\u7684\u7cbe\u5ea6\uff0c\u6240\u4ee5\u8981\u662f\u628a\u5c5e\u6027\u6570\u636e\u7528\u4e00\u4e2a\u6570\u636e\u4e13\u95e8\u8bb0\u5f55\uff0c\u5305\u62ec\u4fe1\u606f\u6765\u6e90\uff0c\u65f6\u95f4\uff0c\u5206\u8fa8\u7387\uff0c\u7cbe\u5ea6\u7b49\u7b49\uff0c\u80af\u5b9a\u5bf9\u540e\u7eed\u5904\u7406\u6709\u597d\u5904\u3002\u5f53\u7136\u4e0d\u77e5\u9053\u65f6\u95f4\u6765\u4e0d\u6765\u5f97\u53ca\u3002<\/p>\n\n\n\n<p>\u540e\u7aef\u7684\u8bdd\u5c31\u662fGeoServer\uff0bMyBatis\u5427\uff0c\u4e4b\u524d\u8ddf\u8001\u5e08\u5439\u725b\u903c\u7528Springboot\uff0c\u4f30\u8ba1\u662f\u6765\u4e0d\u53ca\u73b0\u5b66\u4e86\u3002<\/p>\n\n\n\n<p>\u524d\u7aef\u7684\u8bdd\u5c31\u662fCesium\u4e5f\u591f\u7528\u4e86\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u51c6\u5907\u505a\u4e2a\u57fa\u7840\u7684\u6570\u636e\u5c55\u793a\uff0c\u6700\u597d\u80fd\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u7528echarts\u4e4b\u7c7b\u7684\u5e93\u753b\u4e2a\u56fe\u8868\u3002<\/p>\n\n\n\n<p>\u6b64\u5916\u7684\u8bdd\u518d\u7f16\u4e2a\u6545\u4e8b\u5439\u4e2a\u9ad8\u6027\u80fd\u5904\u7406\u5e73\u53f0\uff0c\u4eceGEE\u81ea\u52a8\u4e0b\u8f7d\u6570\u636e\u8d4b\u503c\u5230\u5730\u5757\uff0c\u5176\u5b9e\u5c31\u662f\u5199\u4e2a\u722c\u866b\u81ea\u52a8\u8fd0\u884cGEE\u811a\u672c\uff0c\u7136\u540e\u518d\u8c03\u7528\u4e4b\u524dGIS\u5f00\u53d1\u8bfe\u5199\u7684GDAL\u4ee3\u7801\u505a\u4e2a\u5206\u533a\u7edf\u8ba1\u3002<\/p>\n\n\n\n<p>\u521d\u6b65\u8bbe\u60f3\u662f\u8fd9\u6837\uff0c\u7136\u540e\u5f00\u59cb\u5f00\u53d1\uff08\u5404\u79cd\u8c03\u5305\uff0c\u590d\u5236\u7c98\u8d34\uff09<\/p>\n\n\n\n<p>postgreSQL\u548cGeoServer\u4e4b\u524d\u90fd\u505a\u8fc7\uff0c\u8f7b\u8f66\u719f\u8def\uff0cCesium\u6ca1\u7528\u8fc7\uff0c\u53cd\u6b63JS\u5305\uff0c\u76f4\u63a5\u4e0b\u8f7d\u653e\u6587\u4ef6\u6839\u76ee\u5f55\uff0c\u6284\u4e00\u4e0b\u8001\u5e08\u7684html\u4ee3\u7801\uff0cok\u6210\u529f\u8fd0\u884c\u3002\u4e4b\u540e\u5c31\u662f\u8fde\u63a5GeoServer\u53d1\u5e03\u7684\u6570\u636e\uff0c\u8bbe\u7f6e\u521d\u59cb\u89c6\u89d2\u4f4d\u7f6e\u3002<\/p>\n\n\n\n<p>\u8fde\u63a5GeoServer\u65f6\u9700\u8981\u542f\u7528GeoServer\u7684\u8de8\u57df\uff0c\u6309\u7f51\u4e0a\u6b65\u9aa4\u6765\u91cd\u542fGeoServer\u76f4\u63a5\u65e0\u6cd5\u8bbf\u95ee\u4e86\uff0c\u4ed4\u7ec6\u4e00\u770b\uff0c\u65b0\u7248web.xml\u7684\u914d\u7f6e\u4ee3\u7801\u548c\u65e7\u7248\u4e0d\u4e00\u6837\uff0c\u590d\u5236\u8fc7\u6765\u5c31\u597d\u4e86\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/blog.csdn.net\/weixin_43598687\/article\/details\/124005542\" target=\"_blank\"  rel=\"nofollow\" >geoserver\u5b89\u88c5\u53ca\u8de8\u57df\u95ee\u9898\u89e3\u51b3\u65b9\u6848_1 + 1=\u738b\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/a><\/p>\n\n\n\n<p>\u65b0\u7248\u957f\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    &lt;filter&gt;\n      &lt;filter-name&gt;cross-origin&lt;\/filter-name&gt;\n      &lt;filter-class&gt;org.apache.catalina.filters.CorsFilter&lt;\/filter-class&gt;\n      &lt;init-param&gt;\n        &lt;param-name&gt;cors.allowed.origins&lt;\/param-name&gt;\n        &lt;param-value&gt;*&lt;\/param-value&gt;\n      &lt;\/init-param&gt;\n      &lt;init-param&gt;\n        &lt;param-name&gt;cors.allowed.methods&lt;\/param-name&gt;\n        &lt;param-value&gt;GET,POST,PUT,DELETE,HEAD,OPTIONS&lt;\/param-value&gt;\n      &lt;\/init-param&gt;\n      &lt;init-param&gt;\n        &lt;param-name&gt;cors.allowed.headers&lt;\/param-name&gt;\n        &lt;param-value&gt;*&lt;\/param-value&gt;\n      &lt;\/init-param&gt;\n    &lt;\/filter&gt;<\/code><\/pre>\n\n\n\n<p>\u65e7\u7248\u957f\u8fd9\u6837<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;filter&gt;\n    &lt;filter-name&gt;cross-origin&lt;\/filter-name&gt;\n    &lt;filter-class&gt;org.eclipse.jetty.servlets.CrossOriginFilter&lt;\/filter-class&gt;\n    &lt;init-param&gt;\n      &lt;param-name&gt;chainPreflight&lt;\/param-name&gt;\n      &lt;param-value&gt;false&lt;\/param-value&gt;\n    &lt;\/init-param&gt;\n    &lt;init-param&gt;\n      &lt;param-name&gt;allowedOrigins&lt;\/param-name&gt;\n      &lt;param-value&gt;*&lt;\/param-value&gt;\n    &lt;\/init-param&gt;\n    &lt;init-param&gt;\n      &lt;param-name&gt;allowedMethods&lt;\/param-name&gt;\n      &lt;param-value&gt;GET,POST,PUT,DELETE,HEAD,OPTIONS&lt;\/param-value&gt;\n    &lt;\/init-param&gt;\n    &lt;init-param&gt;\n      &lt;param-name&gt;allowedHeaders&lt;\/param-name&gt;\n      &lt;param-value&gt;*&lt;\/param-value&gt;\n    &lt;\/init-param&gt;\n  &lt;\/filter&gt; \n<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u9875\u9762\u957f\u8fd9\u6837<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"557\" src=\"https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-1024x557.png\" alt=\"\" class=\"wp-image-1009\" srcset=\"https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-1024x557.png 1024w, https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-300x163.png 300w, https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-768x418.png 768w, https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-1536x836.png 1536w, https:\/\/www.gislxz.com\/wp-content\/uploads\/2023\/05\/image-13-2048x1115.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5730\u5757\u53ea\u662f\u7b80\u5355\u663e\u793a\uff0c\u4e0d\u597d\u770b\u4e14\u4e0d\u900f\u660e\uff0c\u4e0b\u9762\u7528QGIS\u8bbe\u7f6e\u4e00\u4e0b\u6837\u5f0f\u3002<\/p>\n\n\n\n<p>QGIS\u53ef\u4ee5\u5bfc\u51fasld\u6837\u5f0f\u7531geoserver\u8c03\u7528<\/p>\n\n\n\n<p><a href=\"https:\/\/www.osgeo.cn\/geoserver-user-manual\/styling\/qgis\/index.html\" target=\"_blank\"  rel=\"nofollow\" >\u4f7f\u7528qgis\u751f\u6210SLD\u6837\u5f0f \u2014 GeoServer 2.19.x User Manual (osgeo.cn)<\/a><\/p>\n\n\n\n<p>\u4e4b\u540e\u540e\u7aef\u5c31\u7528jdbc\u7b80\u5355\u5199\u4e86\u4e00\u4e0b\u5c5e\u6027\u4fe1\u606f\u7684\u67e5\u8be2\uff0c\u524d\u7aef\u7528ECharts\u7ed8\u56fe\u7ed8\u5236\u4e00\u4e0bndvi\u66f2\u7ebf\u5c31\u4ea4\u5dee\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e09\u5929\u65f6\u95f4\u521b\u9020\u4e00\u4e2a\u5947\u8ff9\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25,24],"tags":[],"class_list":["post-1007","post","type-post","status-publish","format-standard","hentry","category-gis","category-24"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/posts\/1007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/comments?post=1007"}],"version-history":[{"count":4,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/posts\/1007\/revisions"}],"predecessor-version":[{"id":1035,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/posts\/1007\/revisions\/1035"}],"wp:attachment":[{"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/media?parent=1007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/categories?post=1007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gislxz.com\/index.php\/wp-json\/wp\/v2\/tags?post=1007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}