GeoServer

利用WPF建立自己的3d gis软件(非axhost方式)(十五)互联网数据接入

匿名 (未验证) 提交于 2019-12-02 23:39:01
先下载SDK:https://pan.baidu.com/s/1M9kBS6ouUwLfrt0zV0bPew 密码:1te1 设置system.ini 如下内容 Server=122.112.229.220 user=GisTest Password=chinamtouch.com 该数据库中只提供 成都市火车南站附近的数据请注意,104.0648,30.61658 最近更新了卫星数据提供部分,将数据提供部分改为了插件模式,可通过配置插件支持EPSG:900913方式切分的瓦片。 因为早期使用的数据库为sqlserver 现改为插件模式了。即可以支持多种数据来源混用,如orcal,mysql,国产数据库,恒辉,达梦等都可以。实现了整套系统完全国产化。除了操作系统。呵呵。非任何开源项目哦。 意味着可以直接接入自己以geoserver建立的数据源,这里先上几张互联网上数据的效果:下面是自己建的geoserver 下面是海图效果 由于这些地图在国内都是用的gcg02(火星座标系),所以和系统本身的矢量信息对不上。后期准备做一个功能就是动态纠偏, 直接在获取数据的时候直接纠偏为正确的,然后通过配置选择是否入库缓存。缓存后就可以脱离互联网了。 在这里也可以利用geoserver发布一些科幻效果的地图配合显示,后续再上图。因为这套东东是内置的功能,所以二次开发方面基本不涉及。直接支持。

Increasing Tomcat Heap Size

余生颓废 提交于 2019-12-02 23:22:44
问题 I'm trying to increase the heap size of tomcat (so i can optimize GeoServer performance), what i did is: Change the JAVA_OPTS values in tomcat default file to be: JAVA_OPTS="-Djava.awt.headless=true –Xmx3072m -XX:MaxPermSize=512m" Restart tomcat When I checked JVM values is shows: Free memory: 440.33 MB Total memory: 495.06 MB Max memory: 2969.62 MB I'm not sure whether this good or not. 回答1: -Xmx will set the maximum heap size . The the JVM will allocate more memory as needed up to that

PostGIS - convert multipolygon to single polygon

喜夏-厌秋 提交于 2019-12-02 22:35:54
Is it possible to import a shape file containing multipolygons into single polygon in PostGIS? Whenever I try importing a shape file of a polygon, it is stored as a multipolygon (as opposed to a single polygon) in a geom column. Thus, I am unable to extract it as a single polygon value from the multipolygon. All helpful suggestions much appreciated mdomnita You can use ST_GeometryN together with ST_NumGeometries and the generate_series function to obtain what you need. Let's assume you have the table from Jakub's example: CREATE TABLE multi AS( SELECT 1 as id, 2 as test, ST_GeomFromText(

javascript download geoserver layer as kml file

牧云@^-^@ 提交于 2019-12-02 22:30:06
var sqlfilter = " CITY='" + city + "' and SDATE>" + sdate + " and SDATE <" + edate; soMapRoad.downLoadGeoLayer(actionId, kpi, layerTitle, sqlfilter); function downloadTileGridMap(layerName, styleId, filterQuery) { var url = "http://" + geoIP + "/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&LAYERS=FAST:" + layerName + "&STYLES=" + styleId + "&CQL_FILTER=" + filterQuery + "&bbox=109.0,20.0,118.0,26.0&width=768&height=512&srs=EPSG:4326&format=application/vnd.google-earth.kml+xml"; window.open(url); } function downLoadGeoLayer(currentActionId, kpi, sqlfilter) { $.getJSON("../Action.json"

Increasing Tomcat Heap Size

主宰稳场 提交于 2019-12-02 13:29:15
I'm trying to increase the heap size of tomcat (so i can optimize GeoServer performance), what i did is: Change the JAVA_OPTS values in tomcat default file to be: JAVA_OPTS="-Djava.awt.headless=true –Xmx3072m -XX:MaxPermSize=512m" Restart tomcat When I checked JVM values is shows: Free memory: 440.33 MB Total memory: 495.06 MB Max memory: 2969.62 MB I'm not sure whether this good or not. -Xmx will set the maximum heap size . The the JVM will allocate more memory as needed up to that limit. If you, for some reason, want to allocate more memory for the heap at JVM start, use the -Xms option in

How to add shapefiles to a Bing Map using Openlayers 3

戏子无情 提交于 2019-12-02 07:32:14
I am using Openlayers3 with Bing Maps to build my application. I have a point shapefile and would like to show it on the map. I could do it using Openlayers2 using the OpenLayers.Layer.GML() construct but am facing difficulty while trying to the same with Openlayers 3. I tried searching for this and the openlayer example gives me an error: 'Cannot read property 'ogc' of undefined'. My shapefile is on GeoServer in my own system. So any help regarding this matter is highly appreciated :) The example you linked is from a very old beta version of OpenLayers 3. You can find the examples from the

Import OSM file to PostGis on Windows10

谁说胖子不能爱 提交于 2019-12-02 02:13:33
can you help me with importing planet.osm file to my PostGist db? I am new in this and I found tutorials only for linux. There are some commands, but I do not know how use it ... I will be grateful for some step by step tutorial. I'm using GeoServer if it is important information for us to help me. Thanks for advices. edit: I used osm2pgsql -s -U postgres -d nameofdatabase name.osm but unsuccessful because I have error with no database found. I used OGR2OGR to import osm data in pbf format on Windows (Windows 10, Posgres 9.6 with Postgis 2.3). You can use OGR2OGR from the "OSgeo42 shell",

can i make Geo server connection with Orient DB using WFS

不羁岁月 提交于 2019-12-01 23:18:42
Hi i got a new requirement i.e I want manipulate my spatial data in GeoServer. is there any way to connect geo server with orient db. as I know that geo server support few data bases . GeoServer has no connector for OrientDB (not an official one in the geoserver.org community at least). That said, it should be possible to develop one mimicking the existing stores for existing spatial databases. 来源: https://stackoverflow.com/questions/36011293/can-i-make-geo-server-connection-with-orient-db-using-wfs

Geoserver ERROR: function postgis_lib_version()

夙愿已清 提交于 2019-12-01 17:11:06
问题 in geoserver whene i need to creat a new data store after to creat new workspace, i have this error Error creating data store, check the parameters. Error message: Unable to obtain connection: ERROR: function postgis_lib_version() does not exist Indice : No function matches the given name and argument types. You might need to add explicit type casts. Position : 8 回答1: That error implies that you are attempting to add a PostgreSQL database rather than a PostGIS database. You need to add the

Geoserver ERROR: function postgis_lib_version()

不想你离开。 提交于 2019-12-01 17:05:11
in geoserver whene i need to creat a new data store after to creat new workspace, i have this error Error creating data store, check the parameters. Error message: Unable to obtain connection: ERROR: function postgis_lib_version() does not exist Indice : No function matches the given name and argument types. You might need to add explicit type casts. Position : 8 That error implies that you are attempting to add a PostgreSQL database rather than a PostGIS database. You need to add the PostGIS extension to the database with this command: psql -d yourdatabase -c "CREATE EXTENSION postgis;" psql