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)

2
votes
1answer
390 views

How to select only polygons that overlap with another layer?

I have two shapefile layers created from different thresholds from a predictive model (Pink=80; Yellow=95). Is there a way to create a new layer of only those pink polygons that contain yellow ...
2
votes
2answers
311 views

Using Qt Designer to Create a Form in QGIS that can search for a specific point in a layer

I would like to ask if you can create a form in Qt Designer to create a form that can search for a point on the map using data that the user will provide such as the Name. I am currently creating a ...
2
votes
2answers
148 views

How can I share my own spatial data on an online map?

Note: I am very new in this field! Can I find an open source map that enables me to display an overlay of my own layers? I need to add some text and rectangles for a certain area, but my ...
2
votes
1answer
421 views

GeoExplorer: “Could not create layer record for layer group”

I installed GeoServer via OpenGeo Suite, and still working on it. I created a "Layer Group" and add layers from local PostGIS. I tried to preview it from "Layer Preview" and show perfectly through ...
2
votes
1answer
787 views

Can one convert text annotations to a layer in Qgis?

I know text annotations can be turned on & off with Ctrl+T... but is there any way to export them as a layer? Thanks!
2
votes
1answer
121 views

Join attributes by date in Qgis

I learned (thanks!) to use the join feature built into the layer properties, but in my case it doesn't work because data do not match perfectly. Infact shape refers to geotagged photos, csv is a log ...
2
votes
1answer
553 views

What is the easiest way to let a user upload overlayers to openlayers (Geoserver/Mapserver)?

I need to let a user upload vector layers he created with QGIS or MapInfo professional to my website (using OpenLayers as client and either Geoserver or Mapserver as WMS). What will be the easiest ...
2
votes
1answer
101 views

Library design: Layer coodinates/origin

I am working on a vector map library where you can add plain image and vector layers to a map. The map itself consists of an infinite coordinate system and each layer is a coordinate system of it's ...
2
votes
1answer
2k views

How to change an OpenLayers vector layer from automatic to manual get request?

I have a web server that returns a FeatureCollection in JSON. I was getting this using the code below, which works perfectly: var vectorLayer = new OpenLayers.Layer.Vector('geoJSON', { ...
2
votes
1answer
1k views

Problem with layer order in OpenLayers and Google styled maps

I'm using OpenLayers with Google styled maps. My biggest problem is KML polygon layer which needs to be under roads layer but it isn't (see prtscr). What am I doing wrong? This is my coding: ...
2
votes
3answers
2k views

Change zIndex of Vectors in openlayers

I have a bunch of linestring features on a vector layer. Some of them overlap. If I trigger the hover event on those features, I want them be in front. I did find some functions to set the z-index of ...
2
votes
1answer
413 views

How to create new layer within a DXF file?

Using OGR in Python, I'd like to create some geometries within a DXF file, but not in the "0" layer, but in new ones. I tried with: import ogr, os, osr, sys ds = ...
2
votes
1answer
1k views

Add AutoCAD .dwg annotation file to Arcmap using python (Same as +ADD Data button)

I would like to add an AutoCad .dwg file to Arcmap using python the same way that the +ADD Data button does. I can add an Annotation layer with python but only as a feature layer not as an annotation ...
2
votes
1answer
115 views

Keeping a vector layer always on top

I want to know how to keep a layer always on top of other layers! After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. ...
2
votes
0answers
183 views

Advice needed on JavaFX Map Rendering

A few months ago I inherited an old (10+ years) Java Desktop application that used maps and simple icons to represent point data to various users. The application was writted in Swing and used Esri ...
2
votes
1answer
62 views

CartoDB problem with layers and infowindow display

I hope someone has had the same problem and can help me out. I just started testing and using CartoDB, and I am dealing with this problem on a map that has been published already: ...
2
votes
0answers
78 views

Error when running Python script to replaceDataSource of multiple layers in multiple mxd's

I looked on all of your sites and did not find a solution to my problem. Almost all of our data has been copied to an SDE and now most of the layers in all of the mxd's need to be redirected to the ...
2
votes
1answer
203 views

How to load a *.qgs file in a C++ QGIS standalone app?

I'm using QGIS-2.4.0 API to develop a standalone app by C++. I saved a test.qgs file in QGIS Desktop software, in the project, there was one layer and it was visible. Then I loaded the test.qgs ...
2
votes
0answers
187 views

ArcGIS API for Silverlight : query that displays layer attributes in a dataGrid

I'm working with ArcGIS API for Silverlight to build a webmapping application and I'm trying to display my attributes in a datagrid. I made a try by using this code : void ...
2
votes
1answer
51 views

How to Raster Layer checked status change?

I make plugin with use QListWidget. Items of QListWidget is Raster Layer name. When selected items, same name layer checked status changing. current my code is items = ...
2
votes
1answer
80 views

TileMill: How to mask layer without loosing background

I have a large geotiff with elevation gradient which I want to use to colour my map. However the coastal line of the geotiff doesn't excacly match my shapefile so I want to mask it. The problem is ...
2
votes
0answers
20 views

QGIS view selected layers, manage views

I have a QGIS project with a large number of layers. Is it (without using Postgis) possible to define "Views" which include different subsets of the layers? For example: View 1: Layers WMS ...
2
votes
1answer
223 views

OpenLayers - cannot set layer opacity

I have the following problem: by default, you can simply change the opacity of layer by writing for example: layer.setOpacity(0.3); But when I add it to my map SelectFeature controls, my layer is ...
2
votes
0answers
91 views

Memory layer or QgsVectorFileWriter Error?

Currently this excerpt of code will not save to file (as it is supposed to). The memory layer is visable and editable. Yet even when manually saving the layer, any priorly added features ...
2
votes
0answers
92 views

multiple image in OpenLayers

I'm fairly new to OpenLayers so please bear with me. I'm trying to add multiple images to OpenLayers. I have the following (some code is excluded): var images = [image1,image2,image3] // these are ...
2
votes
1answer
72 views

Displaying QGIS layer after loading with Python

I'm successfully loading several layers with Python, but can only get to see them in the map window if I manually zoom to extent afterwards. Once the last layer is loaded I call zoom to extent in the ...
2
votes
0answers
54 views

Updating Description of MXD Layers

Is there a way to force the update of the Description content in the Properties/General/Description of each feature layer in an MXD? I frequently update metadata for each feature class in ArcCatalog, ...
2
votes
0answers
76 views

Is there a size restriction on KML layer in esri map?

My website utilizes ESRI's map and it contains several KML layers. Most of them show up fine except for the ones bigger than ~4MB. Are there any restrictions on KML file size? Thanks,
2
votes
0answers
103 views

why is my map is not in the center when I load my map in OpenLayers?

why is my map is not in the center when I load my map in OpenLayers?And when I drag my map,it dont move sometimes,It has been tortured me for a long time,any advice would be grateful! var maxExtent = ...
2
votes
0answers
41 views

How to search for layers in the layers panel?

I have QGIS projects with a lot of layers. Sometime it's difficult to find a layer into Layers Panel. How to search it?
2
votes
1answer
272 views

OpenLayers - How do I change the WMS URL in Code

I want to be able to change the url for a layer in code. The reasons is that I am implementing local caching. When local caching is Not enabled, we use 4 servers to deliver tiles to run parallel ...
2
votes
1answer
2k views

Layer visibility using maxscale minscale not working

I'm using Openlayer and Geoserver. I have a series of layers that have a scale parameter like: 1:50000-1:25000 where 50000 is the max scale while 25000 is the minscale. I have a map like in this ...
2
votes
0answers
52 views

What is the best way to manage dependencies between layers?

I have multiple layers that has dependency with each other. Such as: City; Courts; Lots; Front Lot; Buildings. The polygon's "block" depends on the polygon's "City." Example dependency: Buildings-> ...
2
votes
0answers
157 views

Ogr: How to add layer description to dgn?

I have created a dgn-file using Ogr, but can't find a way to fill out the description for this layer programatically. (something like _dgnLayer.Description = "Highways") opts.Add("SEED=" + ...
2
votes
0answers
316 views

Getting layers from SDE with vba

Im running arcmap 9.1. i have the code that lists feature classes in a list box from the SDE. The users select from one list box and adds it to another list box. How do i get it to show the layer name ...
2
votes
0answers
185 views

The layer added did not move in ArcGIS 10

I have a favor to ask. I already done the step that Mr PolyGeo and Aaron gave me from my previous question and it really look great when the layer did match all together. Thank you for that advise. ...
2
votes
0answers
56 views

Merging Layers and assigning different values [duplicate]

Possible Duplicate: Merging Two or More Layers I am working with three clipped layers that are shown in the TOC. I created these layers from a large watershed shape-file. However, each ...
2
votes
2answers
109 views

How to bind layer display?

I work on several layers in arcmap 9.3 My question is about creating binds to display theses layers directly. like ctrl+1 ( display / hide layer 1 ) ctrl+2 ( display / hide layer 2 ) ctrl+3 ( ...
2
votes
0answers
513 views

Add CAD Drawing Dataset into ArcMap using Python

I am trying to add an CAD Drawing Dataset into ArcMap using Python. Question is how to add a Auto-CAD .dwg file to ArcMap using Python Normally comes in as CAD file within a Group layer with: ...
1
vote
1answer
59 views

Giving line features of same layer different colours

I have one layer and there I have different lines. Imagine these lines are pathes of persons. So image a person x and y. And I now want to differ them by just watching on the different colours of the ...
1
vote
2answers
87 views

Referencing layer in Table of Contents using ArcPy?

I'm looking for the best way to reference a layer in the TOC using arcpy and, if it is possible, that is different than the following: mxd = arcpy.mapping.MapDocument("CURRENT") df = ...
1
vote
2answers
345 views

How can I create a pdf map at a high resolution while still keeping the file size manageable?

I have numerous layers in shapefile format that contain a lot of data across a large area. I am trying to create a .pdf file that shows all of the area and I want it to be in good quality, so that ...
1
vote
2answers
91 views

Error adding a delimited text layer

Im working with QGIS 1.8.0 and I have been trying to upload a delimited text layer but keep getting the following error : The layer ...
1
vote
1answer
46 views

Using union and area increases?

I have two layers … assume A and B … one is landuse and one is limit of that. The main reason to union these two layers is to calculate street. But my problem is after I union these two the area ...
1
vote
1answer
60 views

why does my script not save a layer when it encounters a “ \” character in the string

i have some code that takes a field and finds every unique value in that field. it then creates a layer for each unique value. The code is working ok , but it is failing when there are \ characters ...
1
vote
1answer
135 views

OSM labels look as red point in geoserver preview layer. Why?

I've imported shp directory files of OSM to geoserver and the city label layer look like red dots instead of showing labels of street names. Is there a fix for this ? (should I declare this layer kml ...
1
vote
1answer
138 views

Difference between a *.lyr and layer directly added from *.gdb/sde to mxd?

What is the difference between a *.lyr and a layer directly added from *.gdb/sde to mxd? Doing it difference in mxd? Which is better?
1
vote
2answers
3k views

How to get names of all layers in a store in GeoServer using OpenLayers

I have strict requirement to retrieve names of all layers in a GeoServer store using OpenLayers. I've gone through the post here, but it doesn't answer my question. I've also gone through GeoServer's ...
1
vote
2answers
50 views

SaveToLayerFile does not properly save symbology

I'm trying to save a symbology from a layer, but any way I try to do it, it just gives me a unsymbolised feature shapefile when I try to add the newly created .lyr file. Anyone have any idea why this ...
1
vote
1answer
63 views

Combine drainage streams and watersheds [duplicate]

I have a question regarding ArcMap. Lets say I have a .shp with watersheds and a .shp with drainage lines. How can I combine both, so that I can display single watersheds and the length of their inner ...