Code Monkey home page Code Monkey logo

mibe / srtm2osm Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 3.0 12.19 MB

Srtm2Osm tool uses Shuttle Radar Topography Mission (SRTM) digital elevation model (DEM) to generate elevation contours (isohypses) of a selected terrain. The tool writes contours as OSM ways into an OSM file. This then enables rendering of the terrain using Osmarender XSLT transformations or other OSM renderers.

Home Page: https://wiki.openstreetmap.org/wiki/Srtm2Osm

C# 84.79% Batchfile 0.03% XSLT 15.18%

srtm2osm's People

Contributors

mibe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

srtm2osm's Issues

Extract the .zip files in memory

Don't extract and delete the .hgt.zip files, but when loading these files extract them in memory. This will save some space on disk.

Error 404 server

Hi,

I was wondering if this is normal ? Is the server down sometimes or they change seomthing on their side ?
Is your wonderful tool still usable ?

C:\Users\***\Downloads\Software\Srtm2Osm > Srtm2Osm.exe -bounds2 47.6628 10.3707 50 -step 5 -o output.osm
Srtm2Osm v1.13.1.0 by Igor Brejc and others

Uses SRTM data to generate elevation contour lines for use in OpenStreetMap

Downloading data for SRTM index generation

An error occurred while accessing the network:
The remote server returned an error: (404) Not Found. (ProtocolError)
URI: https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/Australia/
```

Thanks for your feedback.

About the date format

Sorry if this is not the right place for what I am asking.
I am using this program to add contour lines to my gps OSM maps.
The command I send is:

srtm2osm.exe -bounds1 -119.7 49.76 -119.25 50 -step 10 -cat 2000 1000 -corrxy 0.0005 0.0005 -maxwaynodes 5000 -large - -o srtm-kelowna.osm > srtm.log

When I tried to sort it with OSMIUM I got an error because of the node ID.
I corrected this by adding these parameters to the line:
-firstnodeid 9000000000000000000 -firstwayid 9000000000000000000 and that solved it.

Later the error is due to the timestamp:
can not parse timestamp: '2023-06-09T22:36:40.4567369Z'

Below I copy a part of the first line of the file.
<node id="9223372036854775807" timestamp="2023-06-03T12:55:25.5578799Z" user="Srtm2Osm" uid="941874" lat="43.99925"...

Is it normal for srtm2osm to produce this date format?
Or is the problem somewhere else?

Regards

Downloading fails with ERROR: 1 is not a supported code page

Thanks to have had a look.

I have a problem, but it may be my fault:

Srtm2Osm.exe -bounds2 47.6628 10.3707 50 -step 5 -source "https://terrain.ardupilot.org/data/SRTM" -o output.osm
or
Srtm2Osm.exe -bounds2 47.6628 10.3707 50 -step 5 -o output.osm


Uses SRTM data to generate elevation contour lines for use in OpenStreetMap

Calculating contour data for bound 10.203497521711,47.5501903704538,10.537902478289,47.7754096295461...
Downloading SRTM cell N47E010.hgt

ERROR: 1 is not a supported code page.
Parameter name: codepage

Do I miss something ?

Originally posted by @DGrv in #5 (comment)

Add new function to source files locally

The source parameter does support the file scheme for local files, but it still needs the directory structure of the original SRTM server with the continents. So just throwing a bunch of .hgt files in a directory will not work.

This should be changed so that "throwing a bunch of .hgt files" will work. This is much easier for DEMs that are in SRTM format but not necessarily from the SRTM server, like in #13.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.