The solution to the cross-domain problem when the front-end accesses the geoserver service, and the use of html2canvas to download the drawn map

My business scenario: You need to use html2canvas to download the map drawn by Openlayers. Expectation: Can be downloaded as images or even other formats (svg) files. Result: The download is a blank image. Troubleshooting errors: The request data is echoed to the page normally. When intercepted using html2canvas, cross-domain will occur, resulting in the […]

leaflet loads WMTS published by local Geoserver

Article directory 1. leaflet loads WMTS of local geoserver 1.1. Install wmts plug-in 1.1.1. You can go to the leaflet official website to find the required plug-ins. 1.1.2. npm plugin search 1.2. Leaflet accesses Geoserver’s WMTS 2. Openlayers access Geoserver’s WMTS 2.1. Combine openlayers to access wmts in vue3 3. WMTS related parameters 3.1. tileGrid […]

Implementing batch release of GeoServer vector files based on Python

 0. Preface Due to the large number of vector layer files, manual publishing is time-consuming and laborious. The geoserver package (geoserver-restconfig) supported by Python is also in disrepair and cannot be used normally in newer geoserver versions. After consulting a lot of information and referring to the following blog, I simply wrote a code to […]

geoserver automatically publishes vector data: RUST API

Foreword I recently studied the geoserver rust api, and the official documentation is relatively simple and not detailed. This article describes the python code implementation of using the geoserver rust api to publish shapfile data on the official documentation webpage. Among them, there is a warehouse geoserver-rust that implements a large number of geoserver’s rust […]

Geoserver configuration based on Jetty9 https certificate

1. Environment preparation Since the jetty version that comes with Geoserver does not have the https module, you need to download the full version of jetty. Here you need to first check the jetty version corresponding to the local geoserver, enter the geoserver installation directory, and execute the following command. java -jar start.jar –version Jetty […]

Using GeoServer for cross-layer spatial query

Cross-layer filtering Cross-layer filtering provides the ability to find features from layer A that have specific relationships with features in layer B. For example, this could be used to find all bus stops within a given distance of a specified store, or to find all coffee shops within a specified urban area. The querylayer module […]

ZLMediaKit+SpringBoot+Vue+Geoserver implements pulling the camera rtsp stream and playing it on the web side

Scene SpringBoot + Vue + Openlayers implements adding and editing coordinates on the map and saving submission: SpringBoot + Vue + Openlayers implements adding and editing coordinates on the map and saving and submitting_Domineering Rogue Temperament Blog-CSDN Blog The open source streaming media server ZLMediaKit runs on Windows, configures it, pulls the camera rtsp video […]

JAVA integrated GeoServer

Introducing dependent packages <mirror> <id>GeoSolutions</id> <mirrorOf>*</mirrorOf> <name>GeoSolutions</name> <url>http://maven.geo-solutions.it/</url> </mirror> or <repository> <id>GeoSolutions</id> <url>http://maven.geo-solutions.it/</url> </repository> <dependency> <groupId>it.geosolutions</groupId> <artifactId>geoserver-manager</artifactId> <version>1.7.0</version> </dependency> Tool class GeoServerUtils import com.alibaba.csp.sentinel.util.StringUtil; import it.geosolutions.geoserver.rest.GeoServerRESTManager; import it.geosolutions.geoserver.rest.decoder.RESTDataStore; import it.geosolutions.geoserver.rest.encoder.GSLayerEncoder; import it.geosolutions.geoserver.rest.encoder.datastore.GSPostGISDatastoreEncoder; import it.geosolutions.geoserver.rest.encoder.datastore.GSShapefileDatastoreEncoder; import it.geosolutions.geoserver.rest.encoder.feature.GSFeatureTypeEncoder; import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import […]

openlayers series: loading arcgis and geoserver online and offline slices

https://www.freesion.com/article/1751396517/ 1. Background There is a project that needs to use openlayer to load data published on various services, and the coordinate system is also different. We all know that openalyer can load EPAG:3857 by default. To load the data of the coordinate system of 4490, you need to redefine it and load it later. […]