{"componentChunkName":"component---src-templates-microservices-js","path":"/zh/microservices/PublishPostGISServices/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"发布postgis服务\"><a href=\"#%E5%8F%91%E5%B8%83postgis%E6%9C%8D%E5%8A%A1\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>发布PostGIS服务</h2>\n<p>GIS云套件支持使用PostGIS数据库中的数据作为数据源直接发布为REST-地图服务、REST-数据服务、REST-矢量瓦片服务、WMS服务、WMTS服务、WFS服务、ArcGIS REST地图服务、ArcGIS REST要素服务、Baidu REST地图服务以及Google REST地图服务。您可以通过以下步骤发布PostGIS服务：</p>\n<ol>\n<li>\n<p>登录GIS云套件，点击<strong>iManager首页->系统管理</strong>进入iManager管理页面；点击左侧导航栏<strong>服务管理->服务实例</strong>；点击页面<strong>发布服务</strong>。选择数据来源<strong>PostGIS服务</strong>，点击<strong>下一步</strong>。</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/aa61c/PostGISselection.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 840px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 57.61904761904761%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABD0lEQVQoz51RQW6DMBDk6X1H/8CpVw4ViENf0J4qYoQiqHogtsHGa7aDCciJ0kTtHKy1PeOZXSfNsVVKOeewnqQkommatNZ93xtrUaMYhgEEY8yp75VWKJg5y7LEOfLec8A4jkpr9jQMGrI5wPuFgAKE7WThF0WRcAQ8CR9tvbWWA32OsNNui5FNK/WlZqShANjGbvfE5ztaegYwBWRZPbHd9b+KQYUhmkfy4HzuFjN7LN6nAnEc9Q/i9WP+IyY/W0dwjicspbwhXicZY2ZibydraDtB823bIs66RQFxnucXzqvR+ze/HdnSdS9XX1WWZVLXtdhQHUTbiOdX8fQiPj5FU4vDdnVBq6qu69I0/QGmsbY6oqTb6AAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"postGISselection\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/1e088/PostGISselection.png\"\n        srcset=\"/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/65ed1/PostGISselection.png 210w,\n/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/d10fb/PostGISselection.png 420w,\n/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/1e088/PostGISselection.png 840w,\n/iManager_K8S/1014/static/ea7814add55111f9b1df5b77982b4b46/aa61c/PostGISselection.png 1065w\"\n        sizes=\"(max-width: 840px) 100vw, 840px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ul>\n<li>高级选项（自定义时选择）：自定义构建服务需要的配置信息，如provider、component、interface等，详细介绍请参见<a href=\"https://help.supermap.com/iServer/zh/tutorial/Server_Service_Management/GISService_Config/GISService_Config/\" target=\"_blank\">SuperMap iServer文档->GIS服务的配置与管理</a>。使用高级选项进行服务扩展请参见<a href=\"../ExtensionIntroduction/\">服务管理->扩展服务</a>。使用高级选项将iServer中的服务迁移至GIS云套件请参见<a href=\"../iServerServicesMigration/\">附录->iServer服务迁移</a>。</li>\n</ul>\n</li>\n<li>\n<p>在<strong>配置数据</strong>中填入数据源相关信息。</p>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/iManager_K8S/1014/static/2f7047cc18b1b127ef936892fb5704d5/d0cc0/PostGISconfig.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 732px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 60.47619047619048%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAIAAADtbgqsAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABKklEQVQoz5VSy07DMBDMX3PlN/oTfAGXcuMASAghwQVR8UhoHefhx3r9YhIjlIpWoiNrtTv2ZHdHqd6atm6+5La5fR2uHj/bbd31g5RSCCFlO47jbrdthUAiW5C7vu+HYXqAWA3ahhCjdx+S3iUhcczOuTCxE7z3JQ/BI6aUfnjmiohyzsaaToocGFBaG4MvhrRAkeUF+FcMuBkowaJMh3BUTNbyNDKDKX1OEMMAMgblqBT2PLEzETTWWAwf9wG/iKMP8fjOyDA5M6z6uzOI+RwS47pYhbWttciL29gdl/UYVzfpWaT5ZQYXUia3EGuti9tKKaN1EYdZvOni+Trd15M4pkNj/wf4V3L0TyKt7vL6hSs9N4FVzHtnCVTEUzQwxarrjTu7DBcP9A0iqrx64zzmSwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"postgisconfig\"\n        title=\"\"\n        src=\"/iManager_K8S/1014/static/2f7047cc18b1b127ef936892fb5704d5/d0cc0/PostGISconfig.png\"\n        srcset=\"/iManager_K8S/1014/static/2f7047cc18b1b127ef936892fb5704d5/65ed1/PostGISconfig.png 210w,\n/iManager_K8S/1014/static/2f7047cc18b1b127ef936892fb5704d5/d10fb/PostGISconfig.png 420w,\n/iManager_K8S/1014/static/2f7047cc18b1b127ef936892fb5704d5/d0cc0/PostGISconfig.png 732w\"\n        sizes=\"(max-width: 732px) 100vw, 732px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<ul>\n<li>服务器地址（必填）：PostGIS服务器地址。</li>\n<li>端口（必填）：接入服务器的端口号。</li>\n<li>数据库（必填）：空间数据库名称。</li>\n<li>用户名（必填）：用来登录数据库的用户名。</li>\n<li>密码（必填）：用来登录数据库的密码。</li>\n</ul>\n<blockquote>\n<p>提示：<br>\n如果使用iManager创建的PostGIS，服务器地址与端口在iManager左侧导航栏<strong>数据库->PostGISL->您的数据库名称->postgis地址</strong>处查看；数据库、用户名、密码在<strong>账户</strong>处查看。</p>\n</blockquote>\n<ul>\n<li>样式文件：当服务类型为地图服务时，可为地图指定Mapbox风格样式(*.json)。若不指定，将使用默认的风格文件。</li>\n</ul>\n</li>\n<li>选择发布的<strong>服务类型</strong>。请参考<a href=\"../PublishService/\">GIS云套件->服务管理->服务实例->发布服务</a>中的关系表。</li>\n<li>\n<p>选择<strong>是否允许编辑</strong>，若允许编辑，则访问者可更改服务配置。</p>\n<p>当您选择的服务类型只有一种时，可配置服务实例的服务名：</p>\n<ul>\n<li>服务名：设置服务实例的名称。如果不设置服务名，默认根据数据源和服务类型自动生成。</li>\n</ul>\n</li>\n<li>\n<p>选择服务节点。</p>\n<ul>\n<li>新增服务节点：创建服务节点，用以承载服务实例运行，创建时输入节点名称即可。首次使用服务发布请选择新增服务节点。</li>\n<li>选择已有（推荐）：将服务实例发布到已有服务节点。若已有服务节点无许可权限，使用新增服务节点。</li>\n</ul>\n</li>\n<li>点击<strong>发布</strong>，等待跳转页面的提示信息。</li>\n</ol>","frontmatter":{"title":"GIS云套件","next":null,"prev":null},"fields":{"path":"content/microservices/PublishPostGISServices.zh.md","slug":"/zh/microservices/PublishPostGISServices/","langKey":"zh"}}},"pageContext":{"slug":"/zh/microservices/PublishPostGISServices/"}}}