Questions tagged [topography]

45 questions
9
votes
3 answers

Create a surface plot of xyz altitude data in Python

I am trying to create a surface plot of a mountain in python, of which I have some xyz data. The end result should look something like that. The file is formatted as follows: 616000.0 90500.0 3096.712 616000.0 90525.0 3123.415 616000.0 90550.0…
sfluck
  • 345
  • 1
  • 2
  • 8
9
votes
1 answer

Reading shapefile coordinates in c#

I want to draw a polyline on "XAML Map Control" with latitude/longitude, using the content of a shapefile. I have 2 types of shapefile: One with .dbf, .prj, qpj, .shx and obviously .shp file. One with only .shp file Reading with both type of files…
iRubens
  • 315
  • 1
  • 2
  • 11
9
votes
2 answers

Topographical or relief data in Map APIs

I was wondering if anyone knew of any map APIs that offer topographical or relief data? I've had a quick look at Google and Bing APIs, but could find nothing there. Google allow you to view a map as TERRAIN, which means you can see the topography…
Sniffer
  • 6,242
  • 10
  • 45
  • 53
8
votes
1 answer

Python equivalent for Matlab's Demcmap (elevation +/- appropriate colormap)

I am looking for a way to get an elevation appropriate colormap for matplotlib. the cmap 'terrain' looks great but the colorscaling isn't based around zero (i.e. if the scale is 0->5000m, the 0->1000m range may be shades of blue, which you would…
mjp
  • 1,618
  • 2
  • 22
  • 37
5
votes
2 answers

Apache Flink KeyedStream after window operator behavior clarification

I'm requesting clarification on exactly how Apache Flink (1.6.0) handles events from KeyedStreams after the events have been sent through a window and some operator (such as reduce() or process()) has been applied. Assuming a single node cluster,…
5
votes
2 answers

How To Find Quad/Name/Scale From USGS Terra Server

I'm currently working on developing a Google Maps API implementation that overlays topographic data from USGS Terra Server. I think I have it pretty much under hand except that I can't figure out how to determine the name of the quad, name, & scale…
Russell C.
  • 1,649
  • 6
  • 33
  • 55
5
votes
1 answer

How to read .HGT files in R

I'm trying to read elevation data from NASA stored in .HGT files into R. I've checked rgdal library but apparently it does not read this type of file. ps. The Stack Overflow community shows how to read this typee of file in Python and C++, but I was…
rafa.pereira
  • 13,251
  • 6
  • 71
  • 109
4
votes
1 answer

How do I access .HGT SRTM files in C++?

Here is a similar question on the topic with a good description of the file: how to read NASA .hgt binary files I am fairly new to programming in general and my efforts thus far have been very limited. My ultimate goal is to access the elevation…
O K
  • 43
  • 4
3
votes
2 answers

Topographic map Contour lines extraction

I am trying to extract the contour lines from colour topographic maps. The goal is to build a 3D demonstration of the area, using an engine developed by me from zero. Untill now everything worked great (making the 3D engine from zero and displaying…
Nati Cohen
  • 230
  • 4
  • 11
3
votes
1 answer

glTexImage2D slicing and alignment issues appearing in window

I'm working on making my own topographic map, and I have been using .hgt files from NASA. I'm loading the files using void MapImage::load_map_file(const char* filename) { std::ifstream file(filename, std::ios::in | std::ios::binary); if…
AlexVestin
  • 2,548
  • 2
  • 16
  • 20
3
votes
1 answer

Displaying multiple 3d plots in the same window using plot3D {rasterVis} in R

I am interested in making two 3d topographic plots that display side by side in the same Xquartz device window. Displaying two 3d plots in the same window is straightforward using the rgl package - there are plenty of examples in the documentation…
TPegan
  • 33
  • 3
2
votes
2 answers

react-google-maps: dynamically highlight a country or a subntaional

I use a react-google-maps and I want to dynamically highlight a country or a subntaional when user click on the map anywhere in the whole world, so I need to get coordinates to draw a polygon, but can't find any service with api for it. What the…
Gross
  • 21
  • 3
2
votes
1 answer

How to fix "not enough values to unpack (expected 2, got 1)"?

I have zero background in programming. I am trying to code something for my class and it is giving me an error "not enough values to unpack (expected 2, got 1)". What might be wrong with my codes? from mpl_toolkits.basemap import Basemap import…
2
votes
1 answer

Find 2D peak prominence using Python

I found this scipy function scipy.signal.peak_prominences that finds the topographic prominence of specified local maxima in a 1d sequence. But my application requires locating important peaks in a 2D array. I'm aware of some peak finding methods,…
Jason
  • 2,950
  • 2
  • 30
  • 50
2
votes
1 answer

Stiching together topographic profiles based on known overlap

I have a series of topographic profile scans that I would like to combine to create a single continuous profile. The only issue is that each scan may or may not have been taken from a different height, so while the different files have a fair amount…
Vinterwoo
  • 3,843
  • 6
  • 36
  • 55
1
2 3