[OSM-dev] Gauss-Krüger coordinate s for kosoov?

jamesmikedupont at googlemail.com jamesmikedupont at googlemail.com
Mon Aug 3 19:48:16 BST 2009


Ok, I have done some tests, I repost my diary:
http://www.openstreetmap.org/user/h4ck3rm1k3/diary/7359

here are more data points:
http://pastebin.com/m56db7289

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[<?xml version='1.0' encoding='UTF-8'?>

];

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


it is just a straight line... somewhere in romania...


2009/8/3 jamesmikedupont at googlemail.com <jamesmikedupont at googlemail.com>

> Thank you kindly.
> Muchos Gracias Muchacho.
> I will try it out and report back.
> Thansk,
>
> mike
>
> 2009/8/3 Iván Sánchez Ortega <ivan at sanchezortega.es>
>
> El Domingo, 2 de Agosto de 2009, jamesmikedupont at googlemail.com escribió:
>> [...]
>> > 1. can you help me transform them?
>>
>> From the data I gathered from the .pdf you linked, it seems that this
>> cs2cs
>> command line should be able to do the proper reprojection from KOSOVOREF1
>> to
>> WGS84:
>>
>> cs2cs +ellps=GRS80 +units=m +proj=tmerc +k=0.9999 +lon_0=21 +lat_0=0
>> +y_0=0
>> +x_0=7500000 +to +init=epsg:4326
>>
>> If you delve into the documentation of proj.4 and its utilities (cs2cs,
>> ogr2ogr, etc) you should be able to batch reproject any files you want; or
>> you can mail me the files and I'll reproject them for you.
>>
>> I'm not an expert in projection systems, so that cs2cs command line should
>> be
>> reviewed by the authors of the .pdfs you linked to, in order to get some
>> reassurance about it.
>>
>>
>> Cheers,
>> --
>> ----------------------------------
>> Iván Sánchez Ortega <ivan at sanchezortega.es>
>>
>> Un ordenador no es un televisor ni un microondas, es una herramienta
>> compleja.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090803/6a59c308/attachment.html>


More information about the dev mailing list