Questions tagged [gis]

A Geographic Information System (GIS) captures, stores, analyzes, manages, and presents data that are linked to location(s). The GIS Stack Exchange should be considered for questions with this tag.

According to Wikipedia:

A geographic information system (GIS), geographical information system, or geospatial information system is any system that captures, stores, analyzes, manages, and presents data that are linked to location(s). In the simplest terms, GIS is the merging of cartography, statistical analysis, and database technology.

There is a Stack Exchange site devoted to Geographic Information Systems.

6555 questions
32
votes
7 answers

How do I find the lat/long that is x km north of a given lat/long?

I have some C# code that generates google maps. This codes looks at all the Points I need to plot on the map and then works out the Bounds of a rectangle to include those points. It then passes this bounds to the Google Maps API to set the zoom…
Steve Weet
  • 28,126
  • 11
  • 70
  • 86
31
votes
13 answers

How to convert from UTM to LatLng in python or Javascript

I have a bunch of files with coordinates in UTM form. For each coordinate I have easting, northing and zone. I need to convert this to LatLng for use with Google Map API to show the information in a map. I have found some online calculators that…
Staale
  • 27,254
  • 23
  • 66
  • 85
31
votes
1 answer

Rasterizing a GDAL layer

Edit Here is the proper way to do it, and the documentation: import random from osgeo import gdal, ogr RASTERIZE_COLOR_FIELD = "__color__" def rasterize(pixel_size=25): # Open the data source orig_data_source = ogr.Open("test.shp") …
Luper Rouch
  • 9,304
  • 7
  • 42
  • 56
31
votes
7 answers

How to calculate distance from a point to a line segment, on a sphere?

I have a line segment (great circle part) on earth. The line segment is defined by the coordinates of its ends. Obviously, two points define two line segments, so assume I am interested in the shorter one. I am given a third point, and I am looking…
daphshez
  • 9,272
  • 11
  • 47
  • 65
30
votes
3 answers

Can R be used for GIS?

I'd like to create some GIS plots, and I'm wondering if R can be used for this. Here are some examples of plots I'd similar in concept to those I'd like to make: A temperature plot (or contour plot) of the United States, with color (or height)…
stretch44
  • 403
  • 5
  • 5
29
votes
4 answers

Spatial data with mongodb or cassandra

I am considering a Proof of concept for handling large volumes of data like > 10 G which requires atleast 200+ writes per second and about 50+ reads per second of spatial related data. This is a growing system as well. Currently I am considering…
Muthu
  • 2,675
  • 4
  • 28
  • 34
29
votes
3 answers

Shapely point geometry in geopandas df to lat/lon columns

I have a geopandas df with a column of shapely point objects. I want to extract the coordinate (lat/lon) from the shapely point objects to generate latitude and longitude columns. There must be an easy way to do this, but I cannot figure it out. I…
jtam
  • 814
  • 1
  • 8
  • 24
29
votes
1 answer

How to choose between MongoDB and PostgreSQL for GIS?

I'm trying to find some information on this topic but most articles I'm finding are 3+ years old. I am also fairly new to this side of things and not sure who to ask. For my particular use case, I'm not a database expert at all but I've used…
a person
  • 1,518
  • 3
  • 17
  • 26
28
votes
3 answers

Distance between 2 POINTs in Postgis in srid 4326 in metres

This is probably a simple question, but I'm not very good at PostGIS and don't fully grok all of this. Basically I have a table (nodes) with a POINT column (point). I have created an index on this column create index nodes__points on nodes using…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
27
votes
7 answers

Converting geo coordinates from degree to decimal

I want to convert my geographic coordinates from degrees to decimals, my data are as follows: lat long 105252 30°25.264 9°01.331 105253 30°39.237 8°10.811 105255 31°37.760 8°06.040 105258 31°41.190 8°06.557 105259 31°41.229…
Homap
  • 2,142
  • 5
  • 24
  • 34
26
votes
3 answers

Smoothing arcs/plot points in D3.js/GeoJSON/TopoJSON/Shapefile (somewhere along the way)

I've been looking around a while for an answer to this, and I haven't been able to figure it out. I'm ultimately creating a TopoJSON file from grid based data (GRIB files). I can pretty easily interpolate the data down to a finer resolution grid so…
stewart715
  • 5,557
  • 11
  • 47
  • 80
26
votes
5 answers

How to get list of points inside a polygon in python?

I searched a lot and cant find any practical answer to my question. I have a polygon. For example: [(86, 52), (85, 52), (81, 53), (80, 52), (79, 48), (81, 49), (86, 53), (85, 51), (82, 54), (84, 54), (83, 49), (81, 52), (80, 50), (81, 48), …
Farshid Ashouri
  • 16,143
  • 7
  • 52
  • 66
26
votes
6 answers

Calculating area enclosed by arbitrary polygon on Earth's surface

Say I have an arbitrary set of latitude and longitude pairs representing points on some simple, closed curve. In Cartesian space I could easily calculate the area enclosed by such a curve using Green's Theorem. What is the analogous approach to…
Paul A. Hoadley
  • 1,518
  • 1
  • 13
  • 17
26
votes
6 answers

How to identify Leaflet's Marker during a `popupopen` event?

when a marker is clicked, I need to execute some code that finds the id corresponding to the marker being clicked , retrieves data from backend API, then adds the newly retrieved data to the content of the popup that will open. The only way that is…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
25
votes
4 answers

Loading JSON into a GeoDataFrame

I'm having difficulty loading the following JSON containing GIS data (https://data.cityofnewyork.us/resource/5rqd-h5ci.json) into a GeoDataFrame. The following code fails when I try to set the geometry. import requests import geopandas as gpd data =…
blahblahblah
  • 2,299
  • 8
  • 45
  • 60