New answers tagged

0

After a bit of troubleshooting, I realized that the min and max Published Zoom Levels in GeoServer kept defaulting to 0 for the gridset I added. I simply removed the gridset from the assigned layers, saved, and added them again. One thing to note-- I added my resolutions in the Tile Matrix Set of the gridset config after initially assigning the girdset to ...


0

This is the way I do it. Although I haven't actually tested it on all versions since and including 2, I think it should work with them all. The purpose of the catch block is to try and read it from the script tag if all else fails. You might say, "If it's in the script tag, why do we need to find it?" Answer, ease of maintenance across different ...


1

There is no support for WebP, neither as a data source, nor as an output format. Both ends have pluggable extension points, so it's possible to create a GeoServer extension adding support for them, with some Java programming.


0

Observed that XML transaction generated by your code does not contain geometry property. Add following line // Add following line clone.setGeometryName('geom'); //just before transactWFS('update', clone);


1

If you want to divide polygon before it's published to the web, you can use GIS tools, such as for example ArcGIS Pro (see https://pro.arcgis.com/en/pro-app/latest/help/editing/divide-a-polygon-by-a-value.htm) or QGIS with the Polygon Divider plugin (see https://github.com/jonnyhuck/RFCL-PolygonDivider). I'm not aware of any JS library than could do this on ...


0

You can also use WMTS plugin for this. https://docs.geoserver.org/stable/en/user/community/wmts-multidimensional/index.html


1

A GetFeatureInfo on the mosaic layer will just give you the value of the pixel at that point: information about the set of images used to produce it is lost by the time GetFeaureInfo runs. However, you can publish the image mosaic index as a separate vector layer, and query that one instead.


0

We can create the circle by changing the parameters of the star shape https://stackoverflow.com/questions/69301542/openlayers-cant-draw-the-star var circleInteraction = new ol.interaction.Draw({ geometryFunction: function(coordinates, geometry, projection) { if (!geometry) { geometry = new ol.geom.Polygon([]); } var center = coordinates[0]; ...


2

You can get coordinates from feature geometry with the .getCoordinates() method, and you can get feature geometry from feature with the .getGeometry() method. To get all arrays of coordinates to a global variable allCoords, you just have to add some code to dragAndDropInteraction.on event processing function. Relevant part of the code could look something ...


Top 50 recent answers are included