New answers tagged

0

Try using this library I have made it for react js https://www.npmjs.com/package/leaflet-linestring-editor. If you want I can create it for vanilla JS also.


10

In the Layer pannel, there is an icon in form of an eye : Manage Map Themes (documentation) : By clicking on it, you can see the option for display / mask the selected layers. You can also go to the Settings menu > Shortcuts, find these options (one for display selected, one for mask selected) and affect the shortcut you want. PyQGIS code : Copy and ...


1

Leaflet has no built in functionality to specify alternative tile layer url to be used in case of tile loading error from primary url. A look at L.GridLayer and L.TileLayer objects internals shows that individual tiles are loaded asynchronously by specifying HTML element source for each tile. To specify general alternative url to be used in the case of ...


2

I would do it something like: def get_area(feature): return feature.GetGeometryRef().GetArea() features = [] for feature in dst_layer: features.append(feature) output = sorted(features, key=get_area, reverse=True)[:10]


2

A RAT is just a table that crosswalks the numeric values contained in an integer raster to descriptive attributes. It is not realistic to have a RAT for a true floating-point raster (eg., elevation) and really does not make much sense to. If one wants to represent a process as nominal than you just reclassify it into the desired ranges. A good way to ...


0

"each cell can be references to a row" - no, in a single Raster Layer each cell is a reference to exactly one row in the attribute table. So in your example each cell is either clay, silt, or sand (or possible NA missing data if not in the corresponding numeric range).


2

Not knowing your full workflow but can you use the wildcard option and the name of the layer to get the one you want, listLayers ({wildcard}) help doc A wildcard is based on the layer name and is not case sensitive. A combination of asterisks (*) and characters can be used to help limit the resulting list. Example: old_sites = mapx.listLayers('your ...


2

If the drawing order of your layer is important to you, and you are not satisfied creating layer objects based on any drawing order then you also have an optional parameter named add_position available with the addLayer method of the Map class: addLayer (add_layer_or_layerfile, {add_position}) add_position is: A constant that determines the placement of ...


2

This is one option: If you have a feature you want to manually move then you would need to enable the advanced digitizing toolbar and use the move feature tool. You can then view the distance in the X and Y plane as well as the bearing. To do this follow the steps taken in the GIF below:


1

Make sure you are using QGIS Desktop 3.10.1 with GRASS 7.8.1 (as opposed to plain QGIS Dekstop 3.10.1), this should enable the GRASS modules. Search for it from the start menu.


1

This is a known issue; the legend doesn't always display custom or complicated symbology in a useful way. Here's a workaround: Duplicate the layer (right click > duplicate layer) - this doesn't duplicate the source data, it only creates a second link to the same source data. Give the duplicate a smaller symbology that looks like the wedge buffer (eg use a ...


Top 50 recent answers are included