Most Popular

1500 questions
18
votes
1 answer

How to determine when Mapbox GL JS FlyTo has "arrived"

I'd like to show an overlay when the Mapbox flyto camera movement has completed its action, and is in place at the correct position and zoom level. Is there a way to know when that action is complete? So, fly to a position and then show the…
Bill Thornton
  • 183
  • 1
  • 1
  • 4
18
votes
7 answers

How can I find the farthest point from a set of existing points?

I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is there any sample VB code?
Demetris
  • 1,039
  • 4
  • 10
  • 21
18
votes
3 answers

Calculate lat lon bounds for individual tile generated from gdal2tiles

I have multiple tile sources generated using gdal2tiles I'd like to present on the same map. So when presenting a tile I need to determine which source to serve it up from, checking against the bounds. Anyone know how to calculate the lat lon bounds…
Gavin
  • 525
  • 2
  • 10
  • 26
18
votes
5 answers

How to Create Animated Cluster Markers in OpenLayers/Leaflet?

I want to use Leaflet due to the smooth transitions which Openlayers seems like they can't match. I specifically require the ability to cluster markers with custom styled marker groups. The best example which demonstrates what I am trying to achieve…
NetConstructor.com
  • 2,320
  • 5
  • 25
  • 36
18
votes
2 answers

Import GeoJSON into PostGIS

I want to import GeoJSON avaliable in the following dump into PostGIS but I am not able to import it. I already imported geousa data available in this public dump into MongoDB smoothly. Let me know is there a way to import this data directly or…
work_in_progress
  • 375
  • 1
  • 4
  • 9
18
votes
1 answer

Is there ArcPy tool for polygon resizing like Scale tool of Advanced Editing toolbar in ArcMap?

I am writing a python script for ArcGIS 10.3. I know about Scale tool in ArcGIS interface but I can't find such arcpy command. It exists? As you can see on the picture the Scale tool works different than Buffer tool - it changes the form of original…
Comrade Che
  • 7,091
  • 27
  • 58
18
votes
4 answers

Fastest way to convert big raster to polyline using R or Python?

I have a big raster file (129600 by 64800 pixel) with global water bodies (1 bit values 0 and 1) and try to extract ocean and inland water shorelines. I've tried with ArcGIS and QGIS to convert from raster to polyline, but it takes ages. Does…
Generic Wevers
  • 818
  • 1
  • 5
  • 14
18
votes
1 answer

Reading, modifying and writing a geotiff with GDAL in python

I'm trying the learn the ropes of Remote Sensing image processing using Python GDAL bindings and numpy. As a first attempt, I'm reading a Landsat8 geotiff file, do a simple manipulation and write the result to a new file. The code below appears to…
Hans Roelofsen
  • 1,035
  • 1
  • 10
  • 18
18
votes
1 answer

Is there a PostGIS function for determining whether a linestring intersects itself?

I've been looking for a function that can tell me if a LineString intersects itself. I've tried calling st_intersects with the same LineString twice, but obviously identical linestrings will intersect. My plan if there is no function would be to get…
Jeff
  • 287
  • 3
  • 7
18
votes
3 answers

How to bulk import gpx files to QGIS and merge into a single shapefile?

I am looking to create my own 'heatmap' of all the bike rides I have recorded using the app Strava in QGIS. I have over 450 individual gpx files and would like to merge the track points layers into one single shapefile so I can join them to a…
MFBawls
  • 377
  • 3
  • 9
18
votes
1 answer

Extract TopoJSON directly from PostGIS

I have a simple "region" table: id (TEXT), name (TEXT), geom (MULTIPOLYGON). Here's the query I can use to extract a GeoJSON FeatureCollection: SELECT row_to_json(fc) FROM ( SELECT 'FeatureCollection' AS type, array_to_json(array_agg(f))…
rgareth4
  • 489
  • 3
  • 7
18
votes
7 answers

Looking for free web service that calculates driving distance between two addresses

I'm looking for a free web service that gets an input of two addresses and returns an output of driving distance between the two points. In addition I'm looking for a web service that doesn't require submitting a domain in order to use it (like…
Sagi
  • 181
  • 1
  • 1
  • 4
18
votes
4 answers

List of language codes by country

Does anyone know of a list of countries with their associated official language codes? I haven't found anything by Googling yet. What I'm looking for is something like this: Country name/code Language code [...] Bulgaria (BG) …
Alex Ciminian
  • 337
  • 1
  • 2
  • 9
18
votes
11 answers

Seeking conferences for Spatial/GIS developers?

What are good conferences for GIS and spatial developers to attend? For Esri desktop users I think the User Conference is a must attend, but if you are an Esri developer I think the Esri developer conference is a better event. If you can't make the…
TheSteve0
  • 2,314
  • 2
  • 20
  • 23
18
votes
9 answers

Shapefile layers in QGIS don't display unless I zoom out

I have two shapefile layers in a QGIS project that have problems with zooming. One is a line I copied/pasted in a new layer from a set of height contours and the other one is a polygon layer I created by dissolving all features in another layer. In…
JPH
  • 181
  • 1
  • 1
  • 4