30
votes
3answers
21k views

Why is law of cosines more preferable than haversine when calculating distance between two latitude-longitude points?

In fact, when Sinnott published the haversine formula, computational precision was limited. Nowadays, JavaScript (and most modern computers & languages) use IEEE 754 64-bit ...
24
votes
1answer
14k views

Trilateration algorithm for n amount of points

I need to find algorithm that can calculate centroid A (aka gravity center, geometric center, center of mass) from the figure where circles T1,T2,T3,T4,T5,..,Tn intersect AND length of line R from ...
20
votes
9answers
29k views

How to convert KML to shapefile without losing attributes using QGIS?

I'm new to QGIS and all geoinformation itself but have to work on some difficult stuff. I have a KML file with hundreds of points. To each point there is information, such as Name, Power, Age (it's a ...
27
votes
4answers
5k views

Bulk load multiple shapefiles into PostGIS

I've got over a hundred data layers in shapefile format that I want to upload into a PostGIS database. They are all in the same projection, but represent different data layers so they do not have the ...
25
votes
12answers
28k views

Converting Shapefiles to Text (ASCII) files? [duplicate]

How can I convert a shape file (GIS) to text? or, How can I extract the information in a shape file?
28
votes
8answers
31k views

Removing small spaces (slivers) between polygons?

I have a set of polygons representing administrative districts. The districts were digitized by hand, and there are small spaces (slivers) between polygons where the polygons should be touching. How ...
19
votes
4answers
16k views

Creating DEM from contours in QGIS?

Is it possible to make a DEM from contours in QGIS? I have a shp file (contours) and their heights, can I use QGIS for produce a DEM without using GRASS? I found this creating a dem from contours ...
15
votes
4answers
7k views

How to create equidistant points in QGIS?

I am trying to create points (new layer) at specific distance along the road (existing layer) in QGIS. This gives solution for ArcGIS. How to achieve this in QGIS? This one explains how to create ...
14
votes
8answers
11k views

How to georeference a vector layer with control points?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few ...
26
votes
3answers
51k views

How to calculate polygon areas in QGIS?

Hi I would like to simply calculate areas of a area-shape file in square meters or in acres (ha). I didn't find that functionality in the vector tools. Could anyone here help me with that?
7
votes
4answers
5k views

Dissolve ploygons in QGIS or Grass to new polygons of defined population sizes

I have a shapefile with 3800 polygons representing the smallest administrative areas in Ireland. Many of these, in rural areas, have tiny populations, under 100 people. In urban areas, all would have ...
7
votes
2answers
17k views

How to calculate polygon areas and perimeters using QGIS?

Using QGIS, if I load a polygon layer and make a new column, how do I fill that column with the: area of each polygon and another column with length of the perimeter of each polygon?
5
votes
3answers
1k views

Determining bare earth from unclassified LAS file?

I have data in LAS format with RGB values created from Aerial photogrammetry using a UAV. I am trying to find a solution to extract the bare earth to create my DTM from the DSM. I have tried SAGA, ...
64
votes
5answers
21k views

Spatial clustering with PostGIS

I'm looking for spatial clustering algorithm for using it within PostGIS-enabled database for point features. I'm going to write plpgsql function that takes distance between points within the same ...
32
votes
5answers
7k views

Curved point-to-point “route maps”

I have recently been looking at airlines web pages that display their routes departing a certain city to all other cities they service. I would like to be able to create similar curved routes between ...
37
votes
2answers
9k views

How to create a regular polygon grid in PostGIS?

How to create, on the shape of a polygon, a regular grid of polygons/squares of an given size, in postgis? I have thought about a function like Create regular point grid in Postgis only for squares, ...
27
votes
11answers
8k views

Alternatives to pgRouting

I was wondering if there are any alternatives to pgRouting tools. Thinking about it for a bit, I think the only alternative is to use R or RPY to do the analysis. Basically I'm trying to solve ...
47
votes
4answers
12k views

What are the pros and cons of PostGIS geography and geometry types?

My company uses geometry (the_geom) data type for storing geospatial data. I've recently been acquainted to the concept of geography (the_geog) data type which, as I understand it, stores the SRID ...
24
votes
1answer
3k views

How to draw perpendicular lines in QGIS?

I have a situation like this: What I need to do is to connect each point to every line that is at most, let's say 200 m, away from the point. In other words, I need to draw a perpendicular line ...
32
votes
3answers
68k views

How to merge multiple layers to one layer using QGIS?

I've imported several shapefiles which where exported from an Mapinfo .tab. Several tab files are imported resulting in 20+ layers. Afterwards I want to export it to geoJSON; but I'm reluctant for ...
18
votes
3answers
18k views

Listing all feature classes in File Geodatabase, including within feature datasets?

From python how can I build a list of all feature classes in a file geodatabase (*.gdb), including inside feature datasets? The standard example only lists feature classes at the top level of the ...
18
votes
2answers
7k views

How to divide a polygon into specific sizes using ArcGIS?

I have several thousand irregularly shaped polygons in a shapefile. I want to be able to split each polygon into three areas, and to specify what the size of those areas (they sum to the previous ...
19
votes
6answers
3k views

How to make a GIS inventory?

My office will be seeing a big change in its GIS section. This section has been operational since the 1980's and has a huge collection of GIS data (i.e., shapefiles, raster files, data, etc) but never ...
4
votes
5answers
3k views

Creating feature class from area in one layer not covered by another layer using ArcGIS?

I am working on a project doing spatial analysis at a statewide level. I am looking at a form of transportation coverage in a state, and part of my analysis involves buffers and drive time polygons. I ...
10
votes
2answers
2k views

Why are heatmaps on qgis 2.8.1 produced in the wrong CRS?

I noticed that the heatmap calculation on the new upgrade version of qgis is given the raster map without any coordinate system. Have you got the same problem?
6
votes
5answers
2k views

How to Digitize Free Satellite Imagery in QGIS - Alignment issues with Openlayers Plugin

I am trying to digitize OpenLayers data (such as Google satellite imagery) with no success. Whenever I try to move or zoom the canvas the vector layer I digitized loses the position relative to the ...
9
votes
0answers
7k views

Splitting feature class by unique values for an attribute/field in ArcGIS for Desktop? [duplicate]

I would like to split a single shapefile into multiple shapefiles by using unique values for one attribute/field to select features for each value out into a new feature class. I found ET Geowizard ...
142
votes
42answers
14k views

What free programs should every GIS user have installed?

Note: This question is specifically about installed, desktop software. There is another question specifically about free cloud-based software and services. What free programs should every GIS user ...
72
votes
3answers
57k views

EPSG 3857 or 4326 for GoogleMaps, OpenStreetMap and Leaflet

The discussion at What is the difference between WGS84 and EPSG4326? shows that 4326 is just the EPSG identifier of WGS84.. Wikipedia entries for Google Maps and OpenStreetMap shows that they both ...
68
votes
7answers
8k views

Managing large amounts of geospatial data?

How do you manage your geospatial data? I have terabytes of data spread out over hundreds of datasets, and have an ad-hoc solution using symbolic links within projects which link back to an ...
35
votes
5answers
26k views

Comparing different open source GIS servers?

I currently know the following open source GIS servers: Geoserver: java based, vector and bitmap support, also supports. Is now on par with mapserver (performance-wise). mapserver: c/c++, used to be ...
39
votes
13answers
3k views

Geocoding USA addresses that cannot be sent over internet?

For a one-time project, I need to geocode a few thousand addresses. In the past I've used various online resources for this kind of thing (e.g., Google Maps API), but the addresses I'm working with ...
12
votes
3answers
12k views

How to add Direction and Distance to attribute table?

anyone who can help. i just want to add direction (Bearing: i.e N 25 35 E) and Distance (Length: 125 meters) as my new field in polyline/line data. is there a plug-in to generate these fields? i tried ...
28
votes
12answers
66k views

Converting MapInfo TAB and/or MIF to SHP using free tools or ArcGIS for Desktop core product?

How do I convert MapInfo TAB and/or MIF files to SHP using only free tools or ArcGIS itself? I've not had much luck trying to do this in the past and I don't want to have to shell out for the ArcGIS ...
18
votes
10answers
5k views

Getting started with ArcObjects?

What is the best route or place to get started with ArcObjects if one is not a developer and not aiming to become a developer? I've been using gis professionally for a long time, almost two decades, ...
27
votes
4answers
8k views

Separate polygons based on intersection using PostGIS

I have a PostGIS table of polygons where some intersect with one another. This is what I'm trying to do: For a given polygon selected by id, give me all of the polygons that intersect. Basically, ...
20
votes
9answers
49k views

How to import a DWG into a QGIS project?

I have a lot of DWG files like base map, and water and wastewater network. I am lookin for the principal steps to import my files into my QGIS project.
12
votes
5answers
30k views

How to add a simple WFS layer from GeoServer to OpenLayers map?

I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a ...
35
votes
4answers
26k views

Which character encoding is used by the DBF file in shapefiles?

Which character-encoding is used by the dbf-file in Shape-files? It seems it is handled different, based on the program and the local encoding-settings of the machine. Which encoding is 'right' - ...
20
votes
2answers
4k views

Calculate distortion outside a UTM zone

One of my colleagues is working with data that is spread across two UTM zone. The majority of the data is in one zone, with a few outliers in another zone. He would like to know what the area ...
14
votes
3answers
5k views

Cartographic techniques for symbolizing routing data

Some common problems with displaying routes created from street data, such as bus routes, include: Routes may overlap themselves, such as when a route takes the same road in opposite directions ...
13
votes
4answers
6k views

Is it possible to export geospatial PDF from QGIS via GDAL/OGR?

Is there any plugin for QGIS which would help me in exporting the map document as a geospatial PDF (similar to Terrago's GeoPDF)?
4
votes
5answers
4k views

Unable to install ECW support on lubuntu 14.04

I try unsuccessfully to install the ECW support (mainly to use ECW file in QGIS 2.2). We attempt to follow and adapt the howto provided by makina-corpus. My first supprise was the repository ...
49
votes
15answers
22k views

Resources for learning Python programming with generic GIS goals in mind?

In your opinion, what is the best book/site to learn Python with GIS goals in mind? By "best", I mean: not very long (book) easy to understand (book/site) good practical examples (book/site) For ...
52
votes
18answers
66k views

Free administrative boundaries available as shapefiles for United Kingdom, New Zealand, Canada and Italy?

After learning about the US Census's TIGERLines datasets I've working with the following layers, from the USA data Country boundaries State boundaries County boundaries City boundaries ZipCode ...
43
votes
6answers
23k views

How to find the minimum-area-rectangle for given points?

The following is another problem that I am working on it these days. As you see in the figure, (BTW, I tried to make it self-presenter) the question is: How to find the minimum-area-rectangle (MAR) ...
14
votes
3answers
3k views

Porting Avenue code for Producing Building Shadows to ArcPy/Python for ArcGIS Desktop? [duplicate]

Whuber provided an answer at Producing building shadows? which required using Avenue code. Any idea how to make it work in ArcGIS Desktop 10?
35
votes
6answers
16k views

How to use PostgreSQL/PostGIS with ArcGIS for Desktop? [duplicate]

Has anyone used PostgreSQL with PostGIS successfully? I am a semi-experienced ArcGIS user and want to build out a database and connect it to ArcCatalog. I've scoured the internet for resources but ...
22
votes
9answers
15k views

Looking for system specifications for a modern GIS workstation [closed]

My current employer has given me the opportunity to design my own GIS workstation. The problem is I have no idea what is important when it comes to hardware! I have been given a datasheet from Fujitsu ...
13
votes
7answers
11k views

ogr2ogr convert all shapefiles in a directory

I have a directory with several shapefiles. How can convert all these shapefiles to MapInfo with ogr2ogr. I know how I can convert one file. And I can make a batch script writing a line for each file. ...

15 30 50 per page