Most Popular

1500 questions
18
votes
8 answers

Adding field with filename when merging shapefiles with ogr2ogr

I'm merging some shapefiles and I had some problems doing so inside QGIS, so i'm using ogr2ogr directly. I'm doing this (in a batch): ogr2ogr -overwrite %destination% %n1% ogr2ogr -update -append %destination% %n2% -nln all_new ogr2ogr -update…
vascobnunes
  • 5,570
  • 13
  • 49
  • 74
18
votes
9 answers

how to overlay shapefile and raster?

I have a shapefile with polygons. And I have a global raster file. I want to overlay the shapefile's polygons onto the raster grid and calculate the mean raster value for each polygon. How can I do this using GDAL, writing the results to the…
andreash
  • 741
  • 3
  • 8
  • 16
18
votes
4 answers

Free download of Soviet topographic maps (also known as Genshtab maps)

In the past, http://poehali.org/maps/ offered a free-of-charge download of Soviet military topographic maps of many areas in the world. Those maps are in the public domain. Now, this site redirects to http://mapstor.com , a website offering a…
gerrit
  • 719
  • 1
  • 6
  • 21
18
votes
2 answers

How to import geoJSON Data into MapBox

in an attempt to import editable data to mapbox I fail to get the data imported in a form that the system accepts. It rejects the data with an error message stating: cities.geojson: Input failed. old-style crs member is not recommended on line…
Merlin
  • 353
  • 1
  • 2
  • 9
18
votes
8 answers

Getting X Y coordinates and cell value of each pixel in raster using ArcPy

I'm really new to Python and I would like to know whether there is a quick method to get cell values of a raster pixel by pixel and the coordinates (map X Y coordinate of centre of each pixel) using Python in ArcGIS 10? To describe this further, I…
Dash
  • 189
  • 1
  • 1
  • 5
18
votes
2 answers

Is it possible to write a label expression in qgis that displays the label at a given coordinate?

I am using the QGIS expression builder for the label properties of my data. Is it possible to put different parts of the label in different coordinates on the map? For instance I have a linestring and I would like to have "A" displayed in the…
benoitespinola
  • 327
  • 1
  • 7
18
votes
9 answers

Drone aerial imagery to QGIS

I used Phantom DJI Standard 3 drone for some aerial photos of an archaeological site. When I viewed the properties of the jpeg file, it contained Longitude (like this: 22; 14; 37.701258239) and Latitude (like this: 41; 24; 33.58346), and also…
escplat12
  • 793
  • 1
  • 5
  • 17
18
votes
1 answer

Loading style (*.qml file) to layer via PyQGIS?

Is there any way to load a *.qml file to layer and set a style to it in python (pyqgis)? Can I 'get into' this file in console? I want to review it.
W. Tom
  • 668
  • 2
  • 10
  • 18
18
votes
2 answers

Save and load user profiles in QGIS

Is there a way use a configuration file, maybe .ini to load in the relevant settings for QGIS when it is setup, maybe to share with various people? Plugins installed and plugin repositories filled in Toolbars enabled and disabled Arrangement of…
maskin
  • 611
  • 8
  • 15
18
votes
1 answer

Alternative basemaps for leaflet

I am interested in creating a web map application, that will display a map of my country and various files (.tif, shp) on top of it as layers and I decided to build it on top of Leaflet. So when I started, I used a standard map from OpenStreetMaps,…
G90DD
  • 323
  • 2
  • 4
  • 6
18
votes
3 answers

Rounding column in attribute table using ArcGIS Field Calculator?

I want to use the Field Calculator in ArcMap to round an existing column to two decimals. Currently I have a column that is 6 decimal places long and would like to simply round it down to 2 decimals. I had planned on using the Field Calculator…
jsmith
  • 741
  • 2
  • 8
  • 19
18
votes
1 answer

Using Orfeo Toolbox object based classification in QGIS tutorial/workflow?

I have a set of aerial photos of vegetation which needs to be classified. Instead of using manual interpretation, I want to try using Object-Based classification based on the Orfeo Toolbox in QGIS Processing. However, I cannot find any tutorial that…
monruw
  • 757
  • 7
  • 17
18
votes
1 answer

How do I get the bounds of a layerGroup in Leaflet?

I have added multiple geoJSON layers to my map by first adding them to a LayerGroup and then adding the layerGroup to the map. Now I want to call fitBounds on the map with the combined bounds of all the layers, the problem is that layerGroup does…
fccoelho
  • 1,237
  • 5
  • 13
  • 22
18
votes
2 answers

Projecting attribute from one polygon layer to another in QGIS?

I have 2 polygon layers which can be found here. The two layers are overlapping. The first contains a map of the German counties in 1928 and the second the counties how they are in 2014. The 2014 layer contains information about the population…
Alex
  • 325
  • 1
  • 9
18
votes
2 answers

Identifying image location?

I have a satellite image of only one part of some city with a lot of vegetation. I need to find out where is that image taken. Is there any way to find out where it is taken on Google Maps, Google Earth or something similar? It is a .jpg image so…
againstflow
  • 5,034
  • 18
  • 56
  • 87