GeoServer

node.js and geoserver CORS

主宰稳场 提交于 2019-12-22 02:31:10
问题 I have node.js server 0.10.12 and express.js 4.8.5. Node.js is the web server, includes openlayers 3.9.0. Geoserver 2.1.3 serves the WMS layer. Later, I will implement vector layers. There is only one route (for the index page) var routes = require('./routes/index'); The index.js contains var express = require('express'); var router = express.Router(); router.get('/', function(req, res, next) { res.render('index', { title: 'openlayers3 testing', head: 'Welcome' }); next(); }); module.exports

How to add shapefiles to a Bing Map using Openlayers 3

我是研究僧i 提交于 2019-12-20 06:12:18
问题 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 :) 回答1:

Import OSM file to PostGis on Windows10

不打扰是莪最后的温柔 提交于 2019-12-20 03:36:14
问题 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. 回答1: I used OGR2OGR to import osm data in pbf

can i make Geo server connection with Orient DB using WFS

馋奶兔 提交于 2019-12-20 02:39:39
问题 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 . 回答1: 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

GeoServer won't write to my PostgreSQL updateable view

我们两清 提交于 2019-12-19 10:35:32
问题 Following on from this earlier question I'm on PostgreSQL 8.4 and am having trouble with updatable views. I have a view: CREATE VIEW filedata_view AS SELECT num, id, ST_TRANSFORM(the_geom,900913) AS the_geom FROM filedata And want to update it from my application throw Geoserver. But get a error: <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis

Openlayers-3 WFS-T (Post feature to postgis via geoserver)

﹥>﹥吖頭↗ 提交于 2019-12-18 17:11:53
问题 I have a problem with posting features from ol3 into postgis db via geoservers wfs.When i run this code, i only manage to insert gid(pk) and bin columns but the_geom(Geometry) column is empty. function addInteraction() { draw = new ol.interaction.Draw({ features: featureOverlay.getFeatures(), type: /** @type {ol.geom.GeometryType} */ (typeSelect.value) }); draw.on('drawend', function(evt) { var feature = evt.feature; feature.set('bin', 0); var fid = feature.getId(); var node = format

Openlayers-3 WFS-T (Post feature to postgis via geoserver)

﹥>﹥吖頭↗ 提交于 2019-12-18 17:11:16
问题 I have a problem with posting features from ol3 into postgis db via geoservers wfs.When i run this code, i only manage to insert gid(pk) and bin columns but the_geom(Geometry) column is empty. function addInteraction() { draw = new ol.interaction.Draw({ features: featureOverlay.getFeatures(), type: /** @type {ol.geom.GeometryType} */ (typeSelect.value) }); draw.on('drawend', function(evt) { var feature = evt.feature; feature.set('bin', 0); var fid = feature.getId(); var node = format

centos7部署Tomcat、geoserver、geowebcache

微笑、不失礼 提交于 2019-12-18 13:06:19
一、Tomcat 1、安装Tomcat之前,需要确保已安装jdk 2、下载Tomcat的安装文件 3、将下载的安装文件上传到Linux服务器的相应的目录 4、解压 tar –xf apache-tomcat-**** 5、启动Tomcat ./startup.sh 6、防火墙开启8080端口 firewall-cmd --zone=public --add-port=8081/tcp –permanent firewall-cmd –reload firewall-cmd --zone=public --list-ports 7、访问Tomcat查看结果 二、 geoserver 与 geowebcache 安装 1、确保您的系统上安装了java运行时环境(jre)。Geoserver需要一个java 8环境。Oracle JRE是首选,但众所周知,openjdk是充分可以工作的。 注意:java 9目前不支持。 2、选择要下载的Geoserver的版本。如果你不确定,选择稳定的。 3、在下载页面上Web Archive。 4、下载并解压Archive。 5、像平常一样部署网络存档。通常,只需要将Geoser.war文件复制到应用程序服务器的Web应用程序(webapps)目录中,应用程序就会被部署。 三、配置geowebcache 1、修改webapps/geowebcache

cURL with user authentication in C#

旧城冷巷雨未停 提交于 2019-12-17 10:42:35
问题 I want to do the following cURL request in c#: curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' \ -d '<workspace><name>acme</name></workspace>' \ http://localhost:8080/geoserver/rest/workspaces I have tried using a WebRequest: string url = "http://localhost:8080/geoserver/rest/workspaces"; WebRequest request = WebRequest.Create(url); request.ContentType = "Content-type: text/xml"; request.Method = "POST"; request.Credentials = new NetworkCredential("admin", "geoserver"); byte[]

Looped ajax request. Error handling and return order

北战南征 提交于 2019-12-14 02:33:20
问题 I am retrieving a series of data from a server (geoserver) using $.ajax. I need to rerun the request when an error occurs, fire an event when everything is finished and be able to access the data in the correct order. The request: var dataAr=[] //Array to fill with data from server //var urllist= // an array of URLs to request data from var deferreds = []; // array to fill by ajax // looped ajax request $.each(urllist,function() { var url = this; deferreds.push( $.Deferred(function(deferred)