Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Python is an open source interpreted programming language used in many GIS programs.
2
votes
1
answer
493
views
Detecting degeneracy in triangulations that causes matplotlib to crash?
Here's the code, it comes from python-osrm package which copies it from this example in matplotlib:
import csv
import matplotlib
import itertools
import numpy as np
matplotlib.use('Agg')
import matplotlib.pyplot …
2
votes
Accepted
Detecting degeneracy in triangulations that causes matplotlib to crash?
The solution was to use another interpolation algorithm. CubicTriInterpolator can process a mesh of collinear points.
minx = np.nanmin(x)
miny = np.nanmin(y)
maxx = np.nanmax(x)
maxy = np.nanmax(y)
…
1
vote
0
answers
695
views
How can I draw features on GeoTIFF in Python?
I have a set of data (coords + value) and want to turn it into a heatmap in GeoTIFF. Should I calculate pixels and set them as array, or there are shortcuts?
This is what I do now:
driver = gdal …
2
votes
1
answer
2k
views
Shapely/Pyproj converts all polygon coordinates to inf [duplicate]
After some libraries got updated, I can't convert a polygon between CRS in shapely/pyproj. Everything seems to be done according to the documentation.
Pyproj version 2.4.2.post1, Shapely version 1.7. …
1
vote
1
answer
2k
views
Shapely and lines intersection
The problem I'm solving is to find if a route in OSRM has passed through a certain segment in OSM highways, that are imported in Python separately from OSRM. …
3
votes
1
answer
1k
views
Programmatically manipulate GPX data
I need to do this repeatedly, so a Python script is much more preferred. Desktop software with plugins is not suitable. I'll prefer some Python & C modules than a quest of installing plugins. … Shapely (Python package) seems to not be able to do this (it works only in 2D on a plane, and mentions it has no projections). …
1
vote
2
answers
349
views
Suggest an algorithm to measure how a node is connected to road network
I personally prefer open source solutions (QGIS, PostGIS, or python-based), but other options are also welcome. …