Hot answers tagged

4

I know this is too late to answer this question. But I want to share my knowledge in this question. For the static purpose you can freely add the google map tiles inside your leaflet. For the static tiles, you can add following code, for street, googleStreets = L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',{ maxZoom: 20, ...


4

It works for me if I add a new XYZ Tiles service in the Browser panel. The URL is https://nls.tileserver.com/nls/{z}/{x}/{y}.jpg The tile layer uses EPSG:3857 but if your project CRS is 27700 then QGIS will reproject it on the fly. But be careful of trying to draw the whole world with a project CRS like 27700 because its not valid over the whole globe and ...


3

They are missing because their mean is null, and get filtered out with .filter(ee.Filter.neq('mean', null)). Some debug printing will show you: print(triplets.distinct('Name').aggregate_array('Name')) Then there is a second problem, which comes from a somewhat surprising behavior in ee.Feature. When calling ee.Feature.set() with null as value, or with an ...


3

As you noticed from the gdal2tiles documentation https://gdal.org/programs/gdal2tiles.html, the Python script deals well only with 8-bit input images. Note Inputs with non-Byte data type (i.e. Int16, UInt16,…) will be clamped to the Byte data type, causing wrong results. To awoid this it is necessary to rescale input to the Byte data type using ...


3

Sure, you can publish imagery in any projection you want. Just make sure the rasters and dataframe are in the right projection. Then when you are creating the service you will have to make sure you don't pick the Bing Google AGOL tiling scheme. That will override your coordinate system and place the imagery in EPSG:3857. So you will have to generate your ...


2

Unfortunately, TileLayerPlugin is compatible with QGIS versions 2.8 - 2.99 So, the other option to add custom tiles stored locally on disk - fill in URL (I use Linux, for Windows I suppose you have to change backslashes): file:///path/to/your/custom/tiles/{z}/{x}/{y}.png


2

Please note that the current recommended method for defining the tiles argument is as follows: # Define a method for displaying Earth Engine image tiles to folium map. def add_ee_layer(self, eeImageObject, visParams, name): map_id_dict = ee.Image(eeImageObject).getMapId(visParams) folium.raster_layers.TileLayer( tiles = map_id_dict['tile_fetcher']....


2

Probably the simplest solution for this is to use TMS tiling schema in SAS Planet, since it's natively supported in Leaflet. In SAS Planet you go to Settings > Options > Cache. Then in the Default cache type field select Tile Map service (TMS). The you can declare your TMS layer simply with: var tmsLayer = L.tileLayer('path to cache files/{z}/{x}/{y}.jpg',...


2

gprojector Software, its great for Raster https://www.giss.nasa.gov/tools/gprojector/


2

I downloaded and reprojected arbitrarily your image and, afterward, I created a layer with seven polygons; as it can be observed in following image: With raster -> Extraction -> Clip raster by mask layer tool, I set following parameters (mask layer was loaded by default): After click in Run button, result was as expected. A masked raster by seven ...


2

@IvanSanchez is right (tested), CRS transform should be transformation: new L.Transformation(1 / 64, 0, 1 / 64, 0) because you have 6 zoom levels and 2^6 = 64.


2

If you plot the geometry of the original image, you would have seen that it simply doesn't cover all your geometries. Return from your function: return ee.Image([betMEAN, ltNEG, gtPOS]) .selfMask() // Mask 0's .multiply(ee.Image([1, 2, 3])) // Assign values to the classes .reduce(ee.Reducer.firstNonNull()) // Pick first class .addBands(...


2

This is probably what you are/were looking for. -e, --resume Resume mode. Generate only missing files. More information: https://gdal.org/programs/gdal2tiles.html


2

This Pencil style depends from remote vector tiles from Mapbox not from PostGIS e.g https://github.com/mapbox/mapbox-studio-pencil.tm2/blob/master/project.yml#L21 so reusing them is not possible except if you create local vector tiles with the same data structure as Mapbox in your styles. Unfortunately for you, if you do so, you will infringe Mapbox licence (...


2

I had a look into gdal2tiles.py code, and there is commented out part in update_no_data_values function with TODO: gbataille - check the need for this replacement. Seems to work without replace BandMapping tag for NODATA bands.... Well it seems it is not working that well. For now the fastest workaround I could find: In QGIS top menu use Raster / ...


2

Standard projection for Leaflet is EPSG:3857. If you submit GetCapabilites request to you WMS server, you'll see that it supports only the following projections: EPSG:2056 and EPSG:21781. This means two things: If you want to use this layer, you'll have to define on of those projections with proj4leaflet plugin and then use it for your layer and your map. ...


1

Disclaimer I have no idea how an ESRI Elevation Service works. So, I'm assuming that you want to have actual elevation values available in the client. It sounds as if you need a WCS not a tile cache - a WMS will always serve a picture of your data, though I guess you could use Jiffle to calculate a LERC value but a WMS will still scale it to be an image. ...


1

Here is a pretty straight rewrite of https://github.com/mapbox/mercantile/blob/478e7e1c2291c828e52c381052f108ecec89989b/mercantile/init.py#L390 quadkey_to_tile = function(qk){ if(nchar(qk)==0){ return(list(x=0,y=0,zoom=0)) } xtile = 0 ytile = 0 digits = rev(strsplit(qk,"")[[1]]) for(i in 1:length(digits)){ digit = ...


1

At the moment (QGIS 3.12.x), 3D Tiles is not yet implemented but this is planned. Source: https://hub.packtpub.com/new-qgis-3d-capabilities-and-future-plans-presented-by-martin-dobias-a-core-qgis-developer/


1

That self-explaining error message "tolerance condition error (-20)" is obviously thrown by ST_Transform when it is not able to transform some coordinate. In this case, the problem is that the Web Mercator projection is not able to show data near the poles. You can either change the data in the table, by snipping off any coordinates that would lie beyond ...


1

I have uploaded the Sentinel-2 tiling grid as an asset (KML available for download here). Once you have an asset like this, you can do the following: var sentinel2SceneAreas = ee.FeatureCollection('users/wiell/SepalResources/sentinel2SceneAreas') var sceneAreas = sentinel2SceneAreas.filterBounds(geometry) .aggregate_array('name') https://code....


1

GeoServer creates tiles of rendered WMS maps using GeoWebCache where as the GeoTools tutorial you found is splitting up an existing GeoTiff. These are different processes with as you note different outputs. However, there is no difficulty in using GeoTools to split a GeoTiff into png or jpg images using the tutorial code. You simply need to change the ...


1

You can probably do this in a GIS software. Here's a rough outline of how I would go about doing this in QGIS. Some of the steps are a bit fuzzy on details, but I think this will be enough to get you started. Import the points as a delimited text layer. Here's a tutorial. Apply a symbology to the point layer that looks like the symbol you want to burn into ...


1

I'd strongly suggest that you ask your IT team to consider allowing you to have at the least a parallel install of QGIS 3.4LTR or QGIS 3.10, as they've made inumerable significant improvements in every area since 2.x, not least of which was a change to the raster rendering pipeline that allows for pixel-perfect rendering at native resolution, which did not ...


1

You need either ArcMap or ArcGIS Pro if you want to create a Tile Package. If using ArcMap you can use the UI or you can use the Create Map Tile Package tool. ArcGIS Pro UI help and Create Map Tile Package Tool help.


1

The parameter for the forEachTileCoord callback is a tileCoord grid.forEachTileCoord(extent, zoom, function (tileCoord) { console.log(tileUrlFunction(tileCoord, 1, ol.proj.get('EPSG:3857'))); }); For the tileloadend event you need to get the function using this.getTileUrlFunction() - this inside the callback will be tileSource - then call it so you ...


1

Gaps in a tile layer can be caused by an issue from the data source. If the problem is on the data provider's end, there's nothing you can do to fix it in QGIS. To check if the problem is with the data or only in QGIS, try to see the data through another viewer or program. In this case, since the layer is hosted by arcgis.com, it can be previewed there. Here'...


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 ...


1

The reason was in mapnik style xml, I forgot tor remove this line <PolygonSymbolizer fill="white"/>


1

A key factor in tile rendering is the server configuration. For an example, here is the configuration of the OSM tiles generation server: https://hardware.openstreetmap.org/servers/odin.openstreetmap.org/ Disk access is important, on a cloud based server the disk access may slow tile rendering.


Only top voted, non community-wiki answers of a minimum length are eligible