Hot answers tagged

4

The tiger-ny group contains a layer called giant_polygon which is coloured grey to make the background look "nice". If you want it to be transparent leave that layer out of your request.


3

There are three useful actions to do that. But they are not for switching on/off a layer individually. Navigate "Settings > Keyboard Shortcuts...", and search "selected layers". You'll see three actions like in the image. Set adjacent keys (for simplicity) as shortcuts for them.


3

In QGIS there is not a specific hotkey by default for your task. By default, you have Crtl+Shift+U that shows all the layers and Crtl+Shift+H that hide them. Anyway, you can define a hotkey to hide or show the selected layer. Just go, in the menu Setting, to select Keyboard shortcuts and create the hotkey for the options Show selected layers and Hide ...


3

In Layer 1's (or a copy thereof's) layer properties, under Joins create a join to Layer 2, matching road_name as the join and target fields. Choose layer 2's FID as the joined field. Then filter/select based on this joined FID (which will have a prefix in its name) not being null. Or run the Extract by attribute processing algorithm on this layer with the ...


3

As @BERA suggested you'll need to reference a feature layer in the select layer by location method, use this statement before the select statement: for layer in layers: if layer.name != bldgLayer: arcpy.MakeFeatureLayer_management(layer, "featureLayer") arcpy.SelectLayerByLocation_management("featureLayer", "WITHIN", bldgLayer)


2

If you don't mind working with QGIS' natively supported SQLite dialect, this breaks down to a trivial self-JOIN on the distance threshold: either create a Virtual Layer, or use the DB Manager run (assuming your point source layer is called pts, and has an id column) SELECT a.id, b.id, MakeLine(a.geometry, b.geometry) AS geometry FROM ...


2

The Change Data Source Plugin https://plugins.qgis.org/plugins/changeDataSource/ will give you a list of all the layers in the file and their locations.


2

Save as Layer File just below the Export option in your snip is designed for this purpose. It does not contain data though. If you need data and all layer properties, you can try Create Layer Package option.


2

I find that I always run into those kinds of issues when working with Layers that are created from Selected Features. The only time I really use them is if I can't easily select them using a field. Since you say you are selecting them by an attribute, my suggestion is to use a definition query. Just make a copy of the layer in the Table of Contents, then ...


2

Create a layer object from your file path. You can update and save the layer file using layer object properties and methods. >>> lyrFl = r"C:\test.lyr" >>> arcpy.Describe (lyrFl).nameString #check name with describe u'mains' >>> lyr = arcpy.mapping.Layer (lyrFl) #create layer object >>> lyr.name u'mains' >>> lyr....


2

A very fast solution using, using the Field Calculator is: Import the CSV file as a point layer using LAT1 and LONG1 as X and Y; Save the shapefile as temporary (to be able to add a new field in the Attribute table) (we call here, for the example, VPOINTS); Open Field Calculator and create a new Field (string, field length 250) called "polygon" using the ...


1

I run some tests with rasterizing the points etc., but while your grid is regular, it's distribution is not, hence those methods didn't work (that's also why the Create Grid won't work perfectly). Here is a modified version of my previous answer that will work regardless of the fact that the population values are not unique. 1) Once again, this is our ...


1

Apperently I just used the wrong layer. I tried to do the same thing with a other layer and that one was png. I thought I could change the grey background to a transparrent background but I was wrong I changed my code From this: var wmsLayer= L.tileLayer.wms("http://localhost:8080/geoserver/nyc_roads/wms", { layers: 'nyc_roads:tiger-ny', ...


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