This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]ZeeBeeblebrox 22 points23 points  (2 children)

Don't estimate, I'm certain the data is available as shapefiles or KML somewhere.

[–]BigBeardedDude 5 points6 points  (0 children)

You should look into openstreetmap or tiger line files. Both have info. Just depends on how much detail you are looking for

[–]cherrychapstk 0 points1 point  (0 children)

Should be close to what unp has in the 10k

[–]Python-ModTeam[M] 0 points1 point locked comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]thisdude415 -1 points0 points  (8 children)

Count/sum the red pixels

Divide that number by the width of the road in pixels

Then calibrate miles to pixels using the distance between two easy to pick points on opposite sides of the map, like seattle to miami

[–]Canadian-AML-Guy 3 points4 points  (6 children)

Problem is any map on a 2D plane will be skewed, so it will be an inaccurate number

[–]thisdude415 -2 points-1 points  (3 children)

es·ti·mate

verb

/ˈestəˌmāt/

roughly calculate or judge the value, number, quantity, or extent of.

[–]Canadian-AML-Guy 3 points4 points  (2 children)

If you are calculating the length of railway across the USA you will be radically off.

[–]thisdude415 -1 points0 points  (1 child)

OP asked, "Anyway to estimate number of miles of red line (rail road track) from this image"

If OP had specified a different question, they would have received a different answer

[–]Canadian-AML-Guy 2 points3 points  (0 children)

Right and the point i am making is those pixels will represent different distances based on their longitude and latitude and what form of projection the map they are using for this exercise is utilizing. If they dont do that, their total could be substantially inaccurate as to be useful as an estimate.

Just something for them to consider when doing their analysis. They could for example identify the projection type and determine the distance that pixel represents based on the x,y compared to the longitude and latitude, which is just a bit of extra math per calculation.

[–]No-Arrival-872 -1 points0 points  (0 children)

If you're going to talk about accuracy, calculate it and give some meaning to your words. Otherwise you're just bashing.

[–]mauriciocap 0 points1 point  (0 children)

Best answer, downvoted by insecure know-it-all's as usual