OpenStreetMapi logo OpenStreetMap

Test conversions for kosovo

Postitas h4ck3rm1k3 kuupäeval 3. august 2009 – English.

here is the extract from the kosovo geodata:
7522538.4899 4743287.9845
7444008.5655 4705339.1564
7441735.2640 4710017.9238
7441225.3602 4711304.5720
7443881.5092 4711090.7286
7441994.2731 4715617.5620
7444241.5825 4713360.4177

From the end of this file:
http://www.kca-ks.org/download/report_020-033_v3_final.pdf

more here :
http://pastebin.com/m56db7289

cs2cs +ellps=GRS80 +units=m +proj=tmerc +k=0.9999 +lon_0=21 +lat_0=0 +y_0=0 -f "%.3f" < kosovopoints.src

30.097 43.437 0.000
30.380 43.315 0.000
29.990 43.478 0.000
30.823 43.122 0.000
30.898 43.088 0.000
32.051 42.591 0.000
31.318 42.905 0.000
29.828 43.543 0.000
31.403 42.868 0.000

Lets see

E-kirja ikoon Bluesky ikoon Facebooki ikoon LinkedIni ikoon Mastodoni ikoon Telegrami ikoon X-i ikoon

Arutelu

Kommentaar kasutajalt h4ck3rm1k3 3. august 2009, kell 18:43

Here is my conversion script :
cs2cs +ellps=GRS80 +units=m +proj=tmerc +k=0.9999 +lon_0=21 +lat_0=0 +y_0=0 -f "%.3f" < kosovopoints.src | perl ~/kosovo_maps/testconvert.pl newpoints.tml

http://www.pastebin.ca/1517014
use strict;
use warnings;

print q[

];

my $id=0;
while (<>)
{

if (/^\s*(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)\s*$/)
{
$id--;
print qq[];
}
else
{
die "error $_";
}

}

print q[];

The result is not good :

http://filebin.ca/obheaq/test.osm

Kommentaar kasutajalt h4ck3rm1k3 4. august 2009, kell 06:20

here are the points from the pdf
http://pastebin.com/m56db7289
64 data points

and with this command you can try and convert it
but the params are off
cs2cs +ellps=GRS80 +units=m +proj=tmerc +k=0.9999 +lon_0=21 +lat_0=0 +y_0=0 -f "%.3f" < kosovopoints.src

and with this perl script you can take the results and turn them into osm
http://www.pastebin.ca/1517014

Somewhere along the line, there is an error

kommenteerimiseks logi sisse