A layer is a collection of information. It contains specific elements of a gis in a specific presentation method (e.g raster or vector layer). Layers can be edited separately in order to create individual toppics for a map.

learn more… | top users | synonyms (1)

3
votes
1answer
445 views

Removing WMS layers from mxds using ArcPy?

I'm trying to remove WMS layers from an mxd using arcpy. I can successfully remove "MapServer" type services using the below code, but not WMS? Here is an example mxd (zipped) with two different WMS ...
0
votes
0answers
35 views

How to change the color of a polygon in ArcPy?

I am trying to write a script that changes the color (fill and outline color) of a single polygon in a layer using ArcPy. Is this possible without importing properties from a reference layer file ...
5
votes
3answers
7k views

How do I add my own map layers to Leaflet

I have a Leaflet map and want to add two of my own small polygon layers (currently in shapefile format, but they could be converted to GeoJSON). Can this be done without a mapserver to publish them ...
1
vote
1answer
26 views

where are the rasters that make up a layer?

I used raster calculator to add up 12 rasters made up of 0's and 1's to make a fire frequency map. Then I saved the output as a layer (lyr). However, I need the raster output. Did I add it up ...
0
votes
1answer
22 views

How to know the date of adding specific layer to a map in ArcGIS?

Is there a way of knowing when specific layer have been added to MXD file? I work with MXD file with three layer with the same name: "polygon": i searched in the source tab (in the layer ...
1
vote
1answer
40 views

Use spatial queries on multiple layers in QGIS

Is there a way to perform spatial queries on multiple layers in QGIS without going through an external database? I would like to perform SQL-like queries on layers imported in QGIS directly, but can't ...
0
votes
1answer
44 views

Spatial selections using Python in ArcGIS

I am trying to perform a spatial query using Python in ArcGIS, here is my code: I'm getting the following error: Traceback (most recent call last): File "C:\Users\acarr\Documents_PYTHON ...
0
votes
0answers
56 views

Display Leaflet WMS Layers from same source on different panes

I am using the Leaflet WMS plugin to add in layers to my map via a WMS. I have the following code below that adds all of the layers using the same source but as separate layers. However, I want to ...
3
votes
0answers
474 views

How to load the default layer style from Postgresql with Python?

I would like to write a python macro that upon opening my QGIS project file will reload the default style for each layer from the postgres 'layer_style' table. I have had a look at the documentation ...
1
vote
1answer
47 views

Finding layer file used to add layers to MXD in ArcPy?

I work with layer that located in G:\PROJECTS\bneyAyish\gis\lyr\New File Geodatabase.gdb\polygon, and I created a layer file and located it in G:\PROJECTS\bneyAyish\gis\lyr under the name ...
-1
votes
1answer
198 views

Cartodb Toggle Layer help

I am working on a map that i'd like to toggle 1 layer off/on. I followed this http://academy.cartodb.com/courses/03-cartodbjs-ground-up/lesson-2.html tutorial and it worked fine(w/ their data) and i ...
4
votes
2answers
106 views

How can you align two shapefile layers in QGIS

I am a very beginner with QGIS. I would like to know how to align two shapefiles in QGIS. The image below shows the mismatch:
0
votes
0answers
20 views

Layers do not overlap [duplicate]

I am new to ArcGIS. I have some layers. Three of them perfectly overlap and the fourth does not. I have tried with the Projection tool and I have tried so many things and nothing. When I check the ...
2
votes
1answer
413 views

ArcPy replaceDataSource to ArcSDE raster catalog error?

I am new to Python. I'm trying to re-path a multitude of rasters currently the workspace is a folder, the intended workspace is a raster catalog in an SDE database - using the replaceDataSource ...
1
vote
0answers
19 views

Qgis, resolve bad layers

How to resolve bad layers and locate files on my computer?
1
vote
1answer
42 views

Is it possible to map a leaflet provider (precipitation) on top of a polygon in an interactive map?

I've just started using the leaflet package in R to create interactive maps and I'm wondering if it's possible to plot one of the leaflet providers on top of a plotted polygon rather than under it as ...
3
votes
0answers
27 views

gdal_translate multiple GDAL_PDF_LAYERS_OFF entries gives error

The documentation says that GDAL_PDF_LAYERS_OFF takes a list of comma separated layers. Examples look just like what I am trying to do. Executing the following gives an error FAILURE: Too many ...
2
votes
1answer
28 views

(Geotools) Get 2 Selected Layer out of the MapTableLayer

I have a Method that calculates the Area of 2 Layers of different topologic Relations, which needs 2 collections. In the Button where I use this method, I want to get just 2 of the selected Layers in ...
0
votes
1answer
23 views

Arcpy - LayerList - Count/Length [closed]

I use arcpy to load all layers in the current map document, and I need all layers but not the last one (this is my layer for the symbology template). How can I access the length or count of the ...
4
votes
1answer
72 views

Can I use .crd and .dwg files as QGIS data sources?

I want to use my autocad files(.dwg) and my field files (.crd), and want to know if they are compatible with qgis.
2
votes
1answer
228 views

Where to upload layers in geoexplorer?

I just install opengeo suite (boundless) in my machine and try to explore it. I followed the instruction in user manual and I encountered a problem. In "Load your data with GeoExplorer" part, after ...
3
votes
1answer
94 views

Nearest distance between point layer and line layer, QGIS

I have two layers , line and point layer. I need to make line layer which connect all points to nearest line features? Is someone made a plugin for qgis? This is very important tool which missing in ...
0
votes
1answer
21 views

Removing existing backup layers and renaming current live layer in ArcSDE

Looking at the attached screenshot of Catalog, there are the file "CRT_CANAL" and many backups. The aim of this code is deleting old backups in the ArcSDE database, renaming the existing "CRT_CANAL" ...
6
votes
2answers
8k views

Using Google Maps as layer in ArcMap?

Can I use Google Maps as a layer in ArcMap? Is it possible?
2
votes
1answer
35 views

House numbers on roads layer

I have a problem regarding the street numbers in OpenStreetMap. I have downloaded the .osm file of a city from the open street map web. Then with QGIS I have obtained a shape file with roads and a ...
1
vote
0answers
30 views

Android WebMap Popup Viewing not showing my layer info

I used the code for WebMap Popup Viewing from ArcGIS for Developers (https://developers.arcgis.com/android/sample-code/webmap-popup-viewing/) and I just changed the map URL with a map I created and ...
0
votes
1answer
28 views

How to get detailed informations about a layer (SRID, extent, …) in Geoserver REST API?

I'm trying go get detailed informations about a layer using the Geoserver REST API (I'm using Geoserver 2.8.1), but according to the online API documentation, I can only get basic informations such as ...
3
votes
1answer
40 views

Can a Relate within an MXD be detected programmatically using ArcPy?

I would like to know if it is possible detect relates in an MXD using arcpy. Similar problem as the question below, but for relates instead of joins. Can Join be detected programmatically by ArcPy? ...
2
votes
1answer
617 views

How to add label to QgsVectorLayer by Python

my goal is to define label programmaticly for the case similar for the figure below: But didn't find any guidance how to do so using Python. I have a feeling it could be done using QgsLabel but ...
0
votes
1answer
44 views

Hardwire definition query on layers in mxd VB.net

I am creating a tool that applies definition query to certain layers of the mxd. The user clicks the button and it should hardwire the definition query into the layer. This is useful if there are many ...
1
vote
1answer
62 views

Openlayers 3 - click under geolocation layer

I am using geolocation feature of Openlayers 3.13, as in the examples. (http://openlayers.org/en/v3.13.0/examples/geolocation.html) However I also have queryable point layers, and when I track the ...
10
votes
5answers
11k views

Remove feature layer using ArcPy script?

I have an ArcPy based script where I'm trying to intersect two layers where one layer must have its centroid in the other layer. Since I need to know that one layer (feature_layer below) includes ...
1
vote
0answers
43 views

External SLD file for OpenLayers [closed]

I'm creating a application with Geoserver, OpenLayers and Postgis. At some point, the user can select his own style for a layer. I've succeded to make a php script to write to a file the SLD code. ...
1
vote
1answer
105 views

How to iterate through layers of an MXD?

I know model builder will not iterate through the layers in an MXD, which is kind of fundamentally stupid if you ask me, but I still need to do exactly that. I am not a strong coder but i understand ...
11
votes
1answer
7k views

Use python to add layers to TOC

I've been battling with adding layers to the TOC for some time now. I have managed to single layers added but need to loop through a folder and add all layers. Shapefiles I cannot get to add at all. ...
1
vote
2answers
59 views

Switching out layers but keeping the order the same (see figure) with ArcMap and Arcpy

I need to update the table of contents for a given .mxd by keeping a certain order but switching out the contents. I can bring in the new feature classes as map layers, and delete the old map layers ...
2
votes
1answer
74 views

Repoint feature layers from one SDE to another

I am trying to repoint layer (.lyr) files to a new SDE connection. In a test project folder I have two test layer files. When using lyr.findAndReplaceWorkspacePath() the script runs with no errors, ...
2
votes
2answers
95 views

AttributeError: 'Layer' object has no attribute 'listLayers'

I want to use the result of OD cost matrix for my further calculations. However, whne I try to extract the sublayer "lines" it returnes an error AttributeError: 'Layer' object has no attribute ...
2
votes
0answers
13 views

Problem Importing CAD features using arcpy.MakeFeatureLayer_management?

When importing multiple CAD drawings using "arcpy.MakeFeatureLayer_management" and "arcpy.Merge_management" I encountered a problem. Drawings that have line weights and elevation values assigned to ...
-1
votes
1answer
34 views

Locating and adding state layers to a QGIS map.

If I wanted to add layers for a state (Indiana) in a program like QGIS so I could produce several maps (Infrastructure, Water Resources, Mineral Resources, and HAZMAT concerns), how would I locate and ...
3
votes
1answer
64 views

Using Feature Dataset with ReplaceDataSource gives ValueError: Layer: Unexpected error?

I'm attempting to replace the data source of a unsourced layer with a mxd. The issue I'm having is that the Featureclass "APPL" is contained within a Feature Dataset. When the feature class is outside ...
0
votes
0answers
25 views

Can I overlay a CartoDB visualisation on Bing Maps base?

If I am using Bing Maps as my base map, can i overlay a CartoDB visualisation (that I created earlier) on top of it? If so how do I go about doing that? The example on the cartodb site only refers to ...
3
votes
1answer
56 views

Styling a shape file obtained from S-57 data

I have downloaded S-57 data for a particular region and intend to publish this as a layer in geoserver. To do this I used the ogr2ogr converter utility to convert S-57 data to a series of shape ...
2
votes
1answer
56 views

Getting selected layer name in QGIS Modeler

If I have a geoalgorithm in my model and I want the value from one the parameters, then how can I get it? For example I want the layer name in the parameter layer in below figure so I get the value ...
2
votes
1answer
44 views

Images in my Click Info box are not appearing in both published CartoDB layers

I'm using the simple web version of CartoDB. I uploaded two datasets, each is a layer and both have the same image URL type (URLS for .png Twitter account images). When I visualise the maps ...
2
votes
1answer
79 views

Virtual fields are lost when duplicate layers

I've just upgraded to QGIS 2.12.3 - and hoped that the issue which was really time-consuming in 2.12. <3 could have been solved ... On duplicating layer - with tons of joined tables and virtual ...
7
votes
1answer
161 views

How to speed up QGIS project opening with large point datasets?

I recently loaded a big point set (in terms of memory usage) in the QGIS project i'm working on. This layer is necessary for the project but it is not used often. Most of the time is turned off. The ...
1
vote
0answers
91 views

Sources for meterological data with high resolution

I was running Maxent on an endemic species of andaman and nicobar.But the climate data I have from worlclim.org ( tile number 29 ) is not of high resolution and thus I can't see the distribution ...
1
vote
0answers
47 views

Rename a empty layer that has been added to a group layer [closed]

Originally I was trying to add a empty layer that was stored on disk. That contained no data. I created the empty layer , by making a group layer within my mxd and then saving it onto a location on my ...
-1
votes
1answer
72 views

How to extract all pixel values in a raster file [duplicate]

I have a image difference from ArcGIS, which i have performed a remap function on. The layer is a temporary layer and does not have an attribute table, i need all the pixel values to do a frequency ...