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

2
votes
1answer
298 views

Using multiple LayerIDs in a Legend

This should be simple, but I cannot find any documentation on how to do it. I have a legend that is bound to my map that contains several layers. I do not want all of the layers to appear on my Legend ...
1
vote
0answers
71 views

proportion of image layer in OL

I tried create map with single image used OL. But I have a trouble: image in map has a wrong proportions. Img: 1540 x 1481 Img in map: 2858 x1481 My js code: $(function (){ var map = new ...
4
votes
2answers
3k 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
2answers
106 views

How to specify one layer among many with getWMSInfo?

I am using getWMSFeatureInfo with multiple point layers. When I click on a point on map, how to specify which layer that point belongs to?
1
vote
1answer
55 views

geoserver returns incorrect number of points when cql used

I'm using Geoserver 2.2.4 to support WMS queries. All testing is done via the "Layer Preview" page. If I send a request with no CQL a map full of points is returned as expected. If I add a CQL ...
0
votes
1answer
193 views

How do I style lines to show gradient colors for two attributes?

I have a layer with the city streets. I have a database with traffic values, including traffic going into the city and traffic going out from the city. I need to show the street links with different ...
1
vote
2answers
153 views

Save a layer for each unique value using Python in QGIS

I have a map, in which each region is defined as an attribute of the map (I can select each region from the attribute table). I am trying to create new layers each one containing only 1 region using ...
0
votes
1answer
641 views

Feature Layer Selections

I'm new to arcgis and arcpy, so some of my lingo and terminology may be off. I have a script that takes a feature layer as an ainput. From there I want to be able to count the number of selections in ...
2
votes
2answers
2k views

How to clip a layer file

I have a world imagery layer that I want to clip to a single county. I would just save as a JPEG and edit using other software, but this uses a lot of processing power if I want a high resolution. I ...
1
vote
1answer
147 views

What ArcGIS Online feature layer can I use to display European states with unique country codes?

I'm writing a web page to display ECB statistics on an ArcGIS JavaScript API-based web map. I'm a bit lost when selecting a feature layer so that I can use the UniqueValueRenderer to make the states ...
2
votes
2answers
514 views

Managing a large number of layers in OpenLayers/GeoExt and Geoserver

I am building a web application to facilitate the handling of approximately 2500+ historic maps. I think it would be too difficult for our users to search for specific maps in an ordinary layer tree. ...
1
vote
1answer
2k views

How to manage user privilege on layers to Arcgis 10 Desktop?

Problem: I am a Computer Analyst on a town hall. Here we have the sector A and B. Both work in ArcGIS 10 Desktop. The sector A has granted to access/edit everything. The sector A has all the ...
0
votes
1answer
105 views

How can I create a button to add a POI layer?

I am making a map of a city with openlayers. I have the shapefile data of the POI (hospital,bank,school etc.) I want to add the layers with buttons not in layerswitcher. Like whereis.com's quick ...
1
vote
1answer
340 views

Get feature from two overlapping KML layers doesn't work

I did an implementation similar to http://openlayers.org/dev/examples/sundials.html The difference is that I have two or more kml layers at the same location and want to show their information ...
2
votes
1answer
397 views

How to realign (PostGIS) layers in QGIS?

I'm trying to realign layers in QGIS. As you can see here, the "background" light-blue layer is not aligned with the top layers. I'm working with pgAdmin III and importing PostGIS Layers in QGIS. My ...
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 ...
0
votes
1answer
517 views

MapBox import from TileMill gives only 1 layer

This is my first time using MapBox and I'm trying to import a map from TileMill. The map has 11 layers, in TileMill, but when I import it directly to MapBox, it only seems to have a single layer. It ...
3
votes
1answer
165 views

definition query and mosaic dataset from gdb ArcMap 10.1 SP1

I have a Python AddIn Combobox to select a value from the drop-down list. This value changes the definition query of the layers in mxd. This works fine for "normal" feature classes, not for a mosaic ...
2
votes
1answer
575 views

How to use arcpy.mapping to batch export layer to KML?

I am trying to export map layers from an MXD to KML using arcpy with the following code: import arcpy, os, sys, traceback arcpy.env.overwriteOutput = True mxd = ...
3
votes
1answer
4k views

How to set up a layer control using Leaflet?

I have been working on a mapping application using Leaflet. I am using a WMS on Geoserver to get my layers, which are overlaid on a cloudmade basemap. I tried to use the layer control on my map by ...
2
votes
1answer
333 views

Special background layer not coloring in Kartograph map

I'm testing out Kartograph according to the documentation and a linked gist. Both my US and non-US layers color correctly, but I can not get the special "sea" layer to fill. I found an example here ...
2
votes
0answers
51 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-> ...
1
vote
1answer
1k views

Openlayers Vector Feature Popup

im trying to create a popup in Openlayers that would open when someone clicks a marker. And the marker is setup like this: new OpenLayers.Feature.Vector() and not with the ordinary marker layer. The ...
0
votes
1answer
503 views

Geoserver does not see new layers

I have an existing GeoServer instance running (version 2.1.3). This GeoServer has multiple Workspaces and Stores serving a number of layers as WFS to an OpenLayers map. I want to update my Stores ...
4
votes
1answer
557 views

Extracting donut holes as separate layer in QGIS

Does anyone know how I can extract the holes in a polygon layer as a separate layer in Quantum GIS? An example could be a country with a number of lakes cut out of the polygon - I need the lakes. I ...
6
votes
3answers
228 views

Automating an ArcGIS Project that is a display of map

I'm relatively new to GIS and looking to automate a project. I have my 'base map' created in ArcGIS, but now need to create several hundred more so looking for an automated method to accomplish this. ...
1
vote
1answer
701 views

How to select features from different WFS layers?

I'm trying to select features from different WFS layers but unfortunatelly it doesn't works in my code. This is my code: var select = new OpenLayers.Layer.Vector("Selection", {styleMap: new ...
1
vote
1answer
130 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
531 views

Unable to see the featureLayer but it is present on the map

I have created a featureLayer from featureCollection and I am able to add it to the map and when I execute, map.graphicsLayerIds, it also returns the id of the featureLayer, ["resultLayer"]. But I am ...
2
votes
1answer
468 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 ...
4
votes
2answers
143 views

GIS projection for non-geographic data

I am working on two different types of data. One is related to mapping of Genome structure and another is creating a layout of the inventories inside Internet Data Center. What I am confused about is ...
2
votes
1answer
1k views

Create new polygon layers from postcodes latitude & longitude

First at all, I want to say that I am geocoding enthusiastic but have no formal background on GIS. I'll do my best to use the right wording and make myself clear what I am striving for. Also the only ...
8
votes
1answer
2k views

Sort layers in QGIS table of contents?

When I load a bunch of layers into QGIS from PostGIS, they seem to load in reverse alphabetical order. Is there any tools or plugins that allow you to quickly sort the QGIS TOC in a different order? ...
2
votes
0answers
145 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=" + ...
1
vote
0answers
219 views

Layer set visible

I add this layer like this: var POIData = new esri.layers.ArcGISDynamicMapServiceLayer("https://mysite.com/ArcGIS/rest/services/POI_Data/MapServer"); map.addLayer(POIData); ...
1
vote
0answers
68 views

Get layers and apply renderer to layer list from SDE ArcMap

I have the code that gets the layers from SDE, but when i add them to the map they have a different symbology. there is about 80 layers and i am accessing the SDE by getting the workspace from a ...
7
votes
2answers
4k views

Leaflet: How to move the layer-control menu?

This might be a silly question, but I could not find a documented way to achieve this. I'd like to freely position the layer-control menu, probably to the top left near the default zoom-in/out ...
5
votes
1answer
146 views

How to convert PostGis Table (Grid data) to Continuous field using Qgis?

I'd like to transform my Gridded Layer (generated form a PostGIS table of points) to a continuous and colored layer. How could I do this with Qgis or any other program? Many thanks and best regards, ...
0
votes
3answers
410 views

Accessing fields of particular layer

I am trying to access the fields which I can see in this particular layer. I am able to see that it has fields but fetching the values in those fields is something that I am unable to do. Is there ...
2
votes
2answers
712 views

Openlayers - Get Type of Layer

Is there a way to get the type of all the layers in an OpenLayer maps object? What I am trying to do is iterate over all the layers in my OpenLayers map object and populate a dropdown list with the ...
4
votes
2answers
395 views

Is there easy way to get layers names from WMS server?

I've been looking for information on how to get layers names from certain WMS servers, but I didn't find any. E.g. I have this server: http://sdi.geoportal.gov.pl/wms_prg/wmservice.aspx and I want to ...
2
votes
0answers
288 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 ...
1
vote
1answer
1k views

is it possible to obtain layerInfo from the Layer's URL

I am trying to fetch the names of the layers in the MapService, so that I can populate them in the dijit.form.select. I am able to get the layerInfo when the ArcGISDynamicMapServiceLayer is added to ...
7
votes
1answer
188 views

Load third-party APIs only when the corresponding map layer is requested?

OpenLayers allows multiple map layers to be hosted on a common platform. If the map application supports a wide variety of maps, say from Google, Yahoo and Microsoft, I find that upon initialization, ...
2
votes
1answer
2k views

How to record a base layer change event in OpenLayers?

The OpenLayers.Control class possesses an eventListener property which could be used in the layer switcher control. I am not sure how to make use of it to detect a base layer change event so that I ...
1
vote
1answer
2k views

Adding layers using ArcGISDynamicMapServiceLayer

I am right now adding individual layers using FeatureLayer but it takes quite some time to load as the map is for US Counties (3076 count). I tried to load it using ArcGISDynamicMapServiceLayer but I ...
3
votes
0answers
276 views

calculate total Miles in a polygon using Google Map

I have an application that allows the users to create any custom polygon layer on top of google maps, i am interested to know if their is a way to select the road layer in this polygon and then ...
14
votes
6answers
3k views

How to improve rendering performance of very large shapefile?

I have a polygon shapefile that has a 100MB .dbf and 500MB .shp file component. The reason it is so large is it is a landbase classification for a whole district. Everytime I am viewing the file in ...
3
votes
1answer
1k views

How to add a layer file to an ArcGIS map document programmatically?

I want to create a feature layer from a layer (.lyr) file and add it to my ArcGIS map document programmatically. I am using C# and ArcGIS. I have a layer file and a shapefile.
2
votes
1answer
100 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 ...