Przejdź do głównej zawartości




Hej jestem Monika i poza książkami uwielbiam jazdę na rowerze :) Czytanie na łące w plenerze to sztos!



Der Kammweg bietet sehr schöne Aussichten, ist aber auch durch eine Abfolge von Anstiegen und Gefälle charakterisiert. Durch den GPS-Track konnte die sehr pauchale Digitalisierung des Kammwegs verbessert werden.





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:

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

  • 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.

  • 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.

  • 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:
<span>import</span> <span>gi</span>
<span>gi</span><span>.</span><span>require_version</span><span>(</span><span>'</span><span>Gtk</span><span>'</span><span>,</span> <span>'</span><span>3.0</span><span>'</span><span>)</span>
<span>from</span> <span>gi.repository</span> <span>import</span> <span>Gtk</span><span>,</span> <span>Gio</span>

<span>def</span> <span>create_marker</span><span>(</span><span>lat</span><span>,</span> <span>lon</span><span>,</span> <span>icon_path</span><span>):</span>
    <span>marker</span> <span>=</span> <span>Gtk</span><span>.</span><span>Image</span><span>.</span><span>new_from_file</span><span>(</span><span>icon_path</span><span>)</span>
    <span># Set marker position on the map using lat/lon coordinates
</span>    <span>marker</span><span>.</span><span>set_property</span><span>(</span><span>'</span><span>latitude</span><span>'</span><span>,</span> <span>lat</span><span>)</span>
    <span>marker</span><span>.</span><span>set_property</span><span>(</span><span>'</span><span>longitude</span><span>'</span><span>,</span> <span>lon</span><span>)</span>
    <span># Add the marker to the map widget
</span>    <span>map_widget</span><span>.</span><span>add_overlay</span><span>(</span><span>marker</span><span>)</span>

<span>def</span> <span>draw_area</span><span>(</span><span>coordinates</span><span>):</span>
    <span>map_widget</span><span>.</span><span>queue_draw</span><span>()</span>

    <span>def</span> <span>draw_callback</span><span>(</span><span>widget</span><span>,</span> <span>cr</span><span>):</span>
        <span>cr</span><span>.</span><span>set_source_rgba</span><span>(</span><span>1</span><span>,</span> <span>0</span><span>,</span> <span>0</span><span>,</span> <span>0.5</span><span>)</span>  <span># Set fill color and opacity
</span>        <span>cr</span><span>.</span><span>set_line_width</span><span>(</span><span>2.0</span><span>)</span>  <span># Set line width
</span>        <span>cr</span><span>.</span><span>move_to</span><span>(</span><span>*</span><span>coordinates</span><span>[</span><span>0</span><span>])</span>  <span># Move to the first coordinate
</span>
        <span># Draw lines between the coordinates to form a closed area
</span>        <span>for</span> <span>x</span><span>,</span> <span>y</span> <span>in</span> <span>coordinates</span><span>[</span><span>1</span><span>:]:</span>
            <span>cr</span><span>.</span><span>line_to</span><span>(</span><span>x</span><span>,</span> <span>y</span><span>)</span>

        <span>cr</span><span>.</span><span>close_path</span><span>()</span>  <span># Close the path
</span>        <span>cr</span><span>.</span><span>fill_preserve</span><span>()</span>  <span># Fill the area with the chosen color
</span>        <span>cr</span><span>.</span><span>set_source_rgb</span><span>(</span><span>0</span><span>,</span> <span>0</span><span>,</span> <span>0</span><span>)</span>  <span># Set stroke color
</span>        <span>cr</span><span>.</span><span>stroke</span><span>()</span>  <span># Draw the outline
</span>
    <span>map_widget</span><span>.</span><span>connect</span><span>(</span><span>'</span><span>draw</span><span>'</span><span>,</span> <span>draw_callback</span><span>)</span>

<span># Create the GTK window
</span><span>window</span> <span>=</span> <span>Gtk</span><span>.</span><span>Window</span><span>()</span>
<span>window</span><span>.</span><span>connect</span><span>(</span><span>'</span><span>destroy</span><span>'</span><span>,</span> <span>Gtk</span><span>.</span><span>main_quit</span><span>)</span>

<span># Create the map widget and add it to the window
</span><span>map_widget</span> <span>=</span> <span>Gtk</span><span>.</span><span>Map</span><span>()</span>
<span>window</span><span>.</span><span>add</span><span>(</span><span>map_widget</span><span>)</span>

<span># Load the icon file for the marker
</span><span>icon_path</span> <span>=</span> <span>'</span><span>path/to/marker.png</span><span>'</span>
<span>Gio</span><span>.</span><span>Resource</span><span>.</span><span>load</span><span>(</span><span>icon_path</span><span>)</span>

<span># Example marker and area coordinates
</span><span>marker_coordinates</span> <span>=</span> <span>(</span><span>latitude</span><span>,</span> <span>longitude</span><span>)</span>
<span>area_coordinates</span> <span>=</span> <span>[(</span><span>x1</span><span>,</span> <span>y1</span><span>),</span> <span>(</span><span>x2</span><span>,</span> <span>y2</span><span>),</span> <span>(</span><span>x3</span><span>,</span> <span>y3</span><span>)]</span>

<span># Create a marker and draw an area on the map
</span><span>create_marker</span><span>(</span><span>*</span><span>marker_coordinates</span><span>,</span> <span>icon_path</span><span>)</span>
<span>draw_area</span><span>(</span><span>area_coordinates</span><span>)</span>

<span># Show the window and start the GTK main loop
</span><span>window</span><span>.</span><span>show_all</span><span>()</span>
<span>Gtk</span><span>.</span><span>main</span><span>()</span>

Remember to replace ‘path/to/marker.png’ with the actual path to your marker icon file. You can adjust the coordinates to place the marker and draw the desired area on the map.”

Note: hashtag sign literal replaced with # to avoid formatting problems.








My husband is making me laugh

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.



Is this a motel 6

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.





Today was an eventful one, Members of our group (LMT, Nsukka) came together to get it right as we opened the 14788 project on HOTosm titled ENUGU STATE -MAP NIGERIA MAPATHON CAMPAIGN -LET’S MAP NSUKKA LGA FOR SDGS AND SOCIAL GOOD and we commenced to map with iD Editor meanwhile with my little knowledge I also help to direct and answer some of my teammates questions like “how do I put #tags?, why is my task showing error instead of submitting?, How many edits will get me to become an advance mapper?” etc.

I benefited mostly when our trainer Miss Juliet from Lion Mappers Team Enugu Campus expanded my knowledge on mapping with JOSM and even much more when she introduced RapiD which I believe is easier and faster compared to ID Editor.

I am confident that my mapping skills have improved today more than what it was yesterday. I and my Team members have gained greatly today and we are really excited about it.

A big thanks to Unique Mappers Network and their contribution to open-source data sets.
#tags




Background


This Peer to Peer Learning Exchange Workshop Series is aimed at providing a space for knowledge exchange to benefit the newly emerging OSM communities in Dominica and Saint Lucia. OSM community representatives from across the globe joined this 1-hour virtual session. It was extremely interesting to note that there were attendees from several different countries among the 36 persons who were in this April 25th peer to peer learning session. This was the first of six online sessions. The sessions are spearheaded by the Humanitarian OpenStreetmap Team (HOT) Community Working Group.

What is the OSM Community?


The Peer to Peer learning session kicked off with a discussion on “What is an OSM Community?” While some persons defined it in a broader sense, a group of like-minded people, who come together to map and some went into further detail. This included explaining the importance of charging a small membership fee in order to keep the group accessible for persons from all income brackets. One representative also mentioned the importance of having multiple members on the board of directors for continuity and accountability.

What should be the vision and mission of an OSM Community?


The general consensus was that the mission was to be a representative organization for mappers and mapping in their country/region. Further, it is important that clear goals and objectives are developed for example, increasing the number of mappers in the community, improving the quality of data and promoting the use of OSM data for community development

What should be the values to promote as an OSM community?


The dominant theme was that of inclusivity: ensuring that the OSM community was a welcoming and accessible space for all. In documenting the values the common approach is to have an informal policy at first, but written documents can be prepared and shared on the OSM Wiki.

Is there a need to register as an OSM community, either at a country or regional level?


In terms of regional OSM bodies, each local organization should be registered at the country level. It is best to start at the country level and then these country-level groups can come together to form a regional body. Also, in terms of registering as a local chapter under global OSM, it is useful to read the draft handbook for becoming a local chapter. In conclusion, setting clear goals and values is essential for the success of any OSM community. The peer-to-peer learning session provided valuable insights and guidance on developing a strong community that promotes inclusivity and accountability. With these best practices, emerging OSM communities can thrive and contribute to community development using OSM data.








In April, I asked OSM community members to help us out with a better name for the HOT unSummit (which too often was confused with something to do with the United Nations!)

We had more than 100 name suggestions, so thanks a million to everyone who put some thought into it!

The new name for the programme will be…

HOT OpenSummit


So I want to send a big thank you to Courtney Williamson for the suggestion - a token of our appreciation will be on the way soon!

We are working out how to make the actual programme better and will be re-launching it in the coming months. If you know of events (mappy and other) where you think there might be appetite for incorporating open mapping and OpenStreetMap for humanitarian and development purposes, please feel free to reach out (and thanks to those who have already done so!)



It was really an amazing and excitting experince today at Uniport Mapathon Center, Uniport Mall Abuja Campus, University of Port Harcourt. As i and team contributted to the ENUGU STATE -MAP NIGERIA MAPATHON CAMPAIGN -LET’S MAP NSUKKA LGA FOR SDGS AND SOCIAL GOOD project.

As the new Team Lead of the center, i was so excitted and greatly encouraged by the enthusiasm and Inpiring interest shown by the team members present, who were majorly newly recruited volunteers. their passion for volunteering and Geospatial data triggered a feeling in my heart..

It’s been a great time so far. Over the past two weeks, I have been privilaged to signup and conduct basic trainings for new members of the OSM community. Among these are @good Doris, @Vincent 2001, @James UNIPORT, @KUBULA, @Aglio’sboy 96 and @starman 6059. Part of what made my day today was the newly branded T-shirt I recieved as a prize award from my National Coordinator (@ Victor Sunday). i was so excitted. All thanks to him for his support and not to mention the fact that he has been ensuring that we have data and refreshment every time we meet to make our contributions.


San Jose Diary



OpenStreetMap is a map of the world, created by people like you and free to use under an open license.





I’ve been invited to go to Jordan to consult on a new OSM project involving Jordan’s Royal Scientific Society, the local Youthmappers chapter in Amman, and the Princess Sumaya University, coordinated/commissioned by the UNESCO research chair, Science Communicator Iain Stewart.

The location is Asraq (think Lawrence of Arabia, and ancient Petra; the area sometimes called the ‘Cradle of Civilisation’. Over the centuries, the area has been settled and travelled by many people - from silk-road traders to Moses’s biblical journey, incoming 11th century Druze, to modern syrian refugees.

The wetlands have different cultural significance and inspire/necessitate different cultural practices for many ethnicities, and the now desert has gone through climatic and human-influenced changes which exemplify one of Jordan - and the planet’s - biggest challenges: water supply.

As with so many Disaster Risk environemnts, the problem is compound in nature: climate change has turned once fertile wetlands into desert, whilst Jordan’s excellent record of refugee hosting has meant massive population growth. Result: decreased supply and increased demand for water supply.

I’m looking forward to working with diverse local voices to understand how OpenStreetMap might present some solutions, and am expecting a fascinating mix attitude, behaviour and shared-interest around Water Resource mapping and with Community Asset mapping.

Informed by Public Health (NHS) Wales community mapping (COVID Resilience and Food Deserts), this pilot hopes to look at both logistical resource allocation and cultural behaviours around those resources, whilst allowing the community to have an ‘auto-ethnographic’ hand in practical, participatory solutions. Hopefully, the better public understanding of these under-represented resource-poor communities made vulnerable by the changing world might reveal digital answers to some age-old practical challenges. Any supporters/interested OSM-ers are very encouraged to get involved by getting in touch. My current challenge is editing in English, not Arabic. Watch this space!


I just realized that a water well is sometimes privat and sometimes not even visible to people. I feel so sorry that I commited removal requests of some water wells in Portugal because I could not find drinking water there…. from now on I only search for “drinking water” or “spring” on osm.


Cześć jestem Marek!

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.