Hot answers tagged

4

If you would like to contribute to OpenStreetMap you will need to sign up for an account and then choose an OSM editor. Start with the Beginners' Guide. After that, it's important to read the existing documentation on how to contribute data to the project, especially the OSM tags and mapping techniques.


2

Several of the answers provided here are no longer options for QGIS 3, and/or only allow for linear transformations of the vector file being georeferenced. This may answer the OP's question, but others who look at this post may want other transformation options for georeferencing vector files. Issues with some of the solutions for georeferencing vector ...


2

I was able to solve the problem. Thank You Joseph. The problem was with GDAL Dissolve tool. I used QGIS dissolve tool, and everything work fine.


2

You can set the columns right there in the dialogue, you simply have to know how exactly they are named - and if you want to reuse the model, the columns have to stay the same, or you'd have to alter the model every time.


2

Assign your basemap layer to a variable, and in the map layers, include the layer by variable rather than creating in in-place: basemap = new TileLayer({ source: new OSM() }) new Map({ layers: [ basemap ], controls: [ new Zoom({ zoomInLabel: '', zoomOutLabel: '' }) ], view: new View({ center: proj.fromLonLat([center.lon, center.lat]), ...


1

Without a working example it will be dificult to help you, below is an example that could help you with the logic of using .reset(). I'm assuming you are trying to use it for building widgets of some sort? It needs to be an ee.Map.Layer I think, before you can reset it: var one = ui.Map.Layer(ee.Image(1)) var two = ui.Map.Layer(ee.Image(2)) Map.layers()....


1

You have a number of issues with your script which will either cause issues now, or will cause issues when you reach Python 3. import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, '')[0] for layer in arcpy.mapping.ListLayers(mxd, None, df): # function variable elimination # Ignore layers without local data ...


1

You are right. That's the way to check the layer visibility in QGIS 3.x, provided by QgsLayerTreeNode. You can make it more easy to read, if you assign variables, like: project = QgsProject.instance() root = project.layerTreeRoot() layer = iface.activeLayer() root.findLayer(layer.id()).isVisible(); There are other methods related to visibility in ...


1

import arcpy mxd = arcpy.mapping.MapDocument(r"CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] lyrList = arcpy.mapping.ListLayers(mxd, "", df) for lyr in lyrList: if lyr.supports("dataSource"): fields = arcpy.ListFields(lyr.dataSource) print("{} {}, {}".format(lyr.name, [f.name for f in fields], [f.type for f in fields])) ...


1

You can manually specify letter kerning and other options in QGIS 3.10 and above, as well as make use of the Label Options toolbar, which will allow you to manually place individual labels. See this great overview from Randall Hale on the earlier Label Toolbar functionality from QGIS 3.0, which has been slowly & steadily improved as updates to the 3.x ...


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