OpenStreetMap logo OpenStreetMap

PhysicsArmatureರ ದಿನಚರಿ

ಇತ್ತೀಚೆಗಿನ ದಿನಚರಿ ದಾಖಲಾತಿಗಳು

ChatGPT: GTK, OSM, and Python

PhysicsArmature ಅವರಿಂದ 29 ಮೇ 2023 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

Prompt: “I have OpenStreetMaps data. I am coding a GUI Program in Python with GTK. I want to create markers and areas on top of openstreetmaps data. What libraries will let me do that?”

Response: “To create markers and areas on top of OpenStreetMap data in a Python GUI program using GTK, you can use the following libraries:

  1. PyGObject: This library allows you to use GTK and its associated libraries in Python. It provides bindings for various GTK components, including maps.

  2. Gtk.Map: This is a GTK widget that can display maps using different map providers, including OpenStreetMap. You can create an instance of this widget and add it to your GTK application’s window.

  3. Gio.Resource: This library allows you to load resources, such as images or data files, into your GTK application. You can use it to load map markers or icons to display on the map.

  4. cairo: This is a 2D graphics library that can be used to draw on GTK widgets. You can use cairo to draw areas or polygons on top of the map widget to represent specific regions.

Here’s a basic example to get you started:

See full entry

ಸ್ಥಳ: Shiprock Agency, Apache County, Arizona, United States

Simple Tips #1

PhysicsArmature ಅವರಿಂದ 2 ಮೇ 2023 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ
  • Rivers and lakes may move 10 meters in 5 years.
  • When you map a river, treat it like low-poly art.
  • Think of the next mapper 3 years from now. No 200 point rivers. No holding space bar.

Simple rivers enable simple change.

ಸ್ಥಳ: Cedar City, Cedar Falls, Black Hawk County, Iowa, 50613, United States

Volunteer Oprotunity: AI Transcription generation for OpenStreetMapsUS

PhysicsArmature ಅವರಿಂದ 22 ಮಾರ್ಚ್ 2023 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ Last updated on 2 ಮೇ 2023.

Goal:

  1. Find a video on the OpenStreetMaps YouTube channel.
  2. Download the audio of a talk.
  3. Run it through OpenAI’s Whisper.
  4. Send the transcript and the source URL to somebody in the OSM Community who has ownership over the OSM YouTube channel.

While you may be able to automate this, I don’t know how to do so.

What you need:

  1. GPU (possibly NVIDIA, don’t know). 5gb vram (gpu ram). This might mean RTX 2060 or newer.
  2. Strong cooling and noise isolation through building design.

Costs

  1. Electricity will create some cost as transcription is hard. Do note that it is still less then the amount needed to power on and train a normal human being on the same task for several years in addition to the quantity of humans needed to get the same throughput.
  2. This will result in wear and tare on your drives and other components.
  3. This will make your computer and room warm in the summer. You need great cooling or the ability to use the excess heat for something valuable.

Steps:

  1. Install Itch.io to assist updating.
  2. Install whisper gui frontend by Grisk with Itch.
  3. Download audio from a talk (not saying how).
  4. Plug it in and get the result.
  5. Send the URL of the talk and the transcript to unknownPerson who runs the OSM YouTube Channel in a standard format.

Sample format for an email

Hello noun, This email is to submit a transcript.

talk: https://www.youtube.com/watch?v=nsaiHhQvNSY model: whisper medium

Disclaimers:

  1. I have yet to coordinate with anyone.
  2. Human transcript writers are great and needed. They are in short supply. Let us reduce the net demand. They can save their energy for high impact legal and medical environments.
  3. Maybe the built in YouTube transcript does the job well enough. This might not be worth the effort. I don’t know.
ಸ್ಥಳ: Bloomington, Hennepin County, Minnesota, United States

JOSM >> Extension Suggestion >> Bucket Fill

PhysicsArmature ಅವರಿಂದ 15 ಜುಲೈ 2022 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

Problem: Map a large volume of something that has distinct color.

Solution » High Level: * Highlight a sample square * Send a wanderer around in a perimeter * When the barrier is crossed, stop * Have the end user review

Solution » Low Level [LONG]: public main { //Describe sample square Let the user draw a square //Use sample square int minR, maxR, minB, maxB, minG, maxG; set all the mins to max value and all the max values to 0

for(every pixel in the square)
{
	does it need to be change one of the above 6 ints?
}

//Explore
while(endCondition not triggered)
{
	walk around the perimieter and send it to addSquare()
	if the addSquare says add it, send it to approvedSpots[][]
	else
	{
		ignore it
		but in future versions subdivide the square into 4 areas recursivley to minSizeOfArea;
	}
}

//Encase the area
Find our approved area and go to the top most point from the center.
Drop a point down
Go through the area, if 2 points are on the same line and not necessary, delete it. }

bool addSquare(all 6 rgb values, satteliteArea[][]) { //Filter out the blatantly false average out satteliteAreaRGB if satteliteArea violates the 6 rgb areas, return false.

//Check the square
for all the pixels, how many don't belong
percentDontBelong=numberDontBelong/howmany are in the satteliteArea
    Send it }

Concerns you might have: 1. Automation in OSM? The human has to: Define the sample and approve the result. 2. Junk Data: This would be a problem with a userbase, not a computational problem. We merely create tools. 3. What about non-90 degree angles? I agree that this would be a problem, I would hope someone made a tool that acts like the blender sculpt brush of smooth and bump, but for OSM.

See full entry

ಸ್ಥಳ: Shelby County, Iowa, United States

Areial Mapping, beat the trees

PhysicsArmature ಅವರಿಂದ 8 ಡಿಸೆಂಬರ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

2 example locations: Old houses near downtown big cities. These houses have trees that grow very tall due to the time the trees have been around. It makes it harder to see the secondary buildings like garages and sheds. Sometimes it becomes harder to see the primary building of the house due to trees, or the shadows of these trees.

Big new suburb at the edge of the urban crawl. The land was stripped to the grass. The houses have been placed down. Now the satellites goes by and takes images. It is easy to see the outline of the house.

We are in a race against the trees when we map houses using Aerial Data.

Pole Mapping

PhysicsArmature ಅವರಿಂದ 3 ಡಿಸೆಂಬರ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

I used 10 foot long 0.5 inch diameter electrical conduit for mapping outside. I connected pieces with some screw fastener thing.

1 pole works and is short.

2 poles kind of bend.

3 poles result in a tube bending and the far tip never leaving the ground.

Sorry: StreetLevel Imagery

PhysicsArmature ಅವರಿಂದ 15 ಸೆಪ್ಟೆಂಬರ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

For a good part of a year I have been marking street level imagery instead of Aerial Imagery.

I though Aerial Imagery was zoomed out a lot and Street Level imagery was close to the ground. Sorry.

About: Large volume of small edits

PhysicsArmature ಅವರಿಂದ 20 ಮೇ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

Don’t worry, I am not trying to increase my edit count. I am trying to add things to the map based upon ground surveys, when I have the time, whenever it is convenient.

Bash Scripting & mapwith.ai

PhysicsArmature ಅವರಿಂದ 27 ಏಪ್ರಿಲ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ Last updated on 4 ಜನವರಿ 2022.

Problem:

I need to slap down one set of 50 houses. I want to click as few things as possible. Script 1 is about this task. Script 2 is about finding the coordinates of things on your screen.

Notice: Eliminate [] before the pound sign, I needed to differentiate kramdown and BASH code. Notice 2: I have this weird spacing, otherwise journal system tries to turn a script into a paragraph.

SCRIPT 1

[]#!/bin/bash

[]#pull up script

sleep 4

[]#0.1 is to fast

for i in {1..49}

do

echo -e $i

[]#Find a house and click on it yourself

[]#Go to xy of use this feature xxxyyy

sleep 1.8

xdotool mousemove 35 243 click 1 &

[]#Go to xy of change this feature

sleep 0.3

xdotool mousemove 53 211 click 1 &

[]#Go to xy of option 1 house

sleep 0.3

xdotool mousemove 51 276 click 1 &

done

echo DONE

SCRIPT 2

[]#!/bin/bash

[]#pull up script

sleep 5

for i in {1..200}

do

xdotool getmouselocation –shell

eval $(xdotool getmouselocation –shell)

echo $X $Y

sleep 5

done

Works used:

https://stackoverflow.com/questions/8480073/how-would-i-get-the-current-mouse-coordinates-in-bash https://askubuntu.com/questions/179581/how-can-i-make-my-mouse-auto-click-every-5-seconds

Potential future targets for when I have time (Not for 2 weeks):

  • Another for loop for several sets of 50.
  • Search for the color pink on the screen and click it. Ask [Y/n] on the command prompt, then mark it.
  • Custom input that asks for pauses.
ಸ್ಥಳ: Saint Cloud, Stearns County, Minnesota, United States

My phone GPS is so inacurate, uploading a GPS trace LOWERS the quality of OSM.

PhysicsArmature ಅವರಿಂದ 1 ಏಪ್ರಿಲ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

(Subject says it all) If the GPS that got uploaded was accurate, I would be running off road, across driveways, on sidewalks that are not yet built.

Tracing OSM Users

PhysicsArmature ಅವರಿಂದ 23 ಮಾರ್ಚ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

I have realized people map what is important to them in higher quantities than other things. Thus you find the areas they have mapped over the areas they don’t map. People map the areas the know more about than the areas they don’t, thus looking at edit clusters can show where people live. Finally the tag local knowledge as a source shows where someone has been. Combining these all together can be used to track people down.

Advice for fellow New Mapers using Satellite Imagery

PhysicsArmature ಅವರಿಂದ 10 ಮಾರ್ಚ್ 2020 ರಂದು English ನಲ್ಲಿ ಪೋಸ್ಟ್ ಮಾಡಲಾಗಿದೆ

X Axis: Resolution. Y Axis: When the image was taken. Our notion of technology: Perfect arrow going up at y=x. I was mapping this park area. I looked at 5 different Satellites. The highest quality Satellite Imagery did not show a sidewalk that a the rest of the low resolution maps showed. I had two thoughts: 1. They ripped out a perfectly good map (Nope). 2. The low quality imagery is more recent.