OpenStreetMap logo OpenStreetMap

h4ck3rm1k3's Diary

Recent diary entries

seextractor on osm

Posted by h4ck3rm1k3 on 21 August 2009 in English.

http://astroa.physics.metu.edu.tr/MANUALS/sextractor/

What is SExtractor?
SExtractor (Source-Extractor) is a program that builds a catalogue of objects from an astronomical image. It is particularly oriented towards reduction of large scale galaxy-survey data, but it also performs well on moderately crowded star fields.

convert landsat_4000_2000_xy_86000_168000.png landsat_4000_2000_xy_86000_168000.fits

sextractor landsat_4000_2000_xy_86000_168000.fits

nice...

Forest mapping scripts

Posted by h4ck3rm1k3 on 20 August 2009 in English.

Here is what I have learned :

1. Forestwalker produces ways that intersect. Some of them could be just one step apart, but it creates lines.

2. It creates alot of nodes that all point to the same beginning.

3. it creates endless loops at the end of the way.

Solutions :
1. track all points in a hash (lat/long) dont allow duplicates.

2. dont allow duplicate points in the ways.

Also what I have learned, we need to process the satallite photos. Can use some imagemagick or gimp scripts.

Ideally the script would be able to close areas off. create smaller areas out of big ones.

the intersections could be closed off as they are.

The rivers could be found with processing of the image. Larger features can be found with processing.

One big problem is the scanning for features, I would like to be able to scan for features without specifing points.

Ideally the entire thing can run as a python plugin in gimp.

I think that gimp would be great for osm, the data could be paths, the landsat could be image layers.

remove duplicate points from osm

Posted by h4ck3rm1k3 on 19 August 2009 in English. Last updated on 22 September 2009.

python is nice. but perl can be parsed easier.
you will have a hard time extracing python scripts from the journal
you need to wget the files.

this scriptlet removes duplicate nodes from the forest walker.

update: moved to launchpad
http://bazaar.launchpad.net/~kosova/%2Bjunk/openstreetmapkosova/annotate/head%3A/removeduplicates.pl

ForestWalker.py

Posted by h4ck3rm1k3 on 17 August 2009 in English.

I have a hacked version of lakewalker.py for osm 0.6
it does forests.
source :
http://www.pastebin.ca/1532240

patch :
http://pastebin.ca/1532241

Parameters :
python ./lakewalker.py --lat 42.4052 --lon 20.4782 --threshold 80 -o forest.osm

I used layer 1 of landsat (green)
"" 2 0.52-0.60 µm Green ""
ref : http://landsat.gsfc.nasa.gov/education/compositor/index.html

you can see the forest here :
osm.org/browse/way/39207413

Comparison tools Prizren

Posted by h4ck3rm1k3 on 11 August 2009 in English.

Accidental Name changes in Macedonia

Posted by h4ck3rm1k3 on 11 August 2009 in English.

Hello,

Someone told me that some people in Macedonia where discussing some "hacker" who was changing names of towns in Macedonia.

If there are any changes outside of kosovo, please revert them. I did work on the border to macedonia and there might have been some changes, please point them out to me.

You can find me here, I am here all the time, and I am a nice guy.

Also you are all invited to come to Prishtina on August 29th/30th,
we are having a conferences.

Also, my name referse to hacking code,not passwords. I have perl scripts, am just another perl hacker. http://en.wikipedia.org/wiki/Just_another_Perl_hacker

Thanks
mike

more official maps of kosovo

Posted by h4ck3rm1k3 on 8 August 2009 in English.

nato attack sites in kosovo

Posted by h4ck3rm1k3 on 8 August 2009 in English. Last updated on 22 September 2009.

we need some new tags :

attack:nato

uranium:depleted

please help convert these to lat/long
source:
http://postconflict.unep.ch/publications/uranium.pdf

Site Number Date Location (UTM) Total Number of Rounds
1 6-Apr-99 34TDM717863 UNKWN

UPDATE: Moved out to launchpad.
http://bazaar.launchpad.net/~kosova/%2Bjunk/openstreetmapkosova/annotate/head%3A/NatoAttackSites.txt

screenscraping

Posted by h4ck3rm1k3 on 8 August 2009 in English.

here is a broken webpage from the government of kosovo that is supposed to have property information.

The problem is that it is horrible, nothing works.

Here is the list of properties for rent in one area:
http://www.kpaonline.org/ReadyForRentMun/ReadyForRentMun.aspx?mun=Dakovica

Here is the list of properties for in adminstration
http://www.kpaonline.org/AdminMun.asp?mun=Dakovica

you need to search with the serbian names in google, not on the site, cause it does not work.

Search String :Gjakovë/Djakovica site:kpaonline.org

http://www.google.com/search?hl=en&hs=tJ2&q=Gjakov%C3%AB%2FDjakovica+site%3Akpaonline.org&

you can then get the data like this :

wget -r -l4 -D www.kpaonline.org http://www.kpaonline.org/AdminMun.asp?mun=Dakovica

new splitter

Posted by h4ck3rm1k3 on 8 August 2009 in English. Last updated on 22 September 2009.

new merging scripts

Posted by h4ck3rm1k3 on 7 August 2009 in English. Last updated on 22 September 2009.

Pageranking the streetnames

Posted by h4ck3rm1k3 on 7 August 2009 in English. Last updated on 22 September 2009.

I have gotten a list of old streetnames off some ancient webpages.
http://wiki.flossk.org/index.php/Kosova/Prizren#Streets_in_Prizren

Now , i want to pagerank them so I can decide on the most important ones,
here is the code, at least the start. Still have to make a report on that.

UPDATED SCRIPT :
http://bazaar.launchpad.net/~kosova/%2Bjunk/openstreetmapkosova/annotate/head%3A/PageRank.pl