Quantcast

convert projection from UTM to WGS84 using proj

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

convert projection from UTM to WGS84 using proj

jishingaku
Dear friends,
I'm sorry, I'm not good at GIS applications but I wondering about
conversion between various projection or datum of the data files.

data.shp data.shx data.dbf and data.prj files are available.

shpdump data.shp gives following

Shape:0 (ArcZ)  nVertices=4, nParts=1
  Bounds:(  513275.786, 4006041.761, 0, 0)
      to (  513345.812, 4006078.182, 0, 0)
     (  513275.786, 4006078.182, 0, 0) Ring
     (  513301.130, 4006064.906, 0, 0)
     (  513321.636, 4006053.249, 0, 0)
     (  513345.812, 4006041.761, 0, 0)
...





data.prj as follows

PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]


using these data How to convert a file which is created using
european_datum_1950 to WGS84 (World Geodetic System 1984)
or where I have to start to understand these method of applications
using PROJ4.
Thanks
muratB


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Murat
Geophysical Engineer, M.Sc.
Ankara,Turkey
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

Jørn Vegard Røsnes
Hi,
maybe something like this:

ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source shapefile>

http://www.gdal.org/ogr2ogr.html

kind regards
Jørn-Vegard Røsnes

----- Original Message -----

> From: "Murat Beyhan" <[hidden email]>
> To: "mapserver-users" <[hidden email]>
> Sent: Wednesday, 16 May, 2012 10:41:39 AM
> Subject: [mapserver-users] convert projection from UTM to WGS84 using proj
>
> Dear friends,
> I'm sorry, I'm not good at GIS applications but I wondering about
> conversion between various projection or datum of the data files.
>
> data.shp data.shx data.dbf and data.prj files are available.
>
> shpdump data.shp gives following
>
> Shape:0 (ArcZ)  nVertices=4, nParts=1
>   Bounds:(  513275.786, 4006041.761, 0, 0)
>       to (  513345.812, 4006078.182, 0, 0)
>      (  513275.786, 4006078.182, 0, 0) Ring
>      (  513301.130, 4006064.906, 0, 0)
>      (  513321.636, 4006053.249, 0, 0)
>      (  513345.812, 4006041.761, 0, 0)
> ...
>
>
>
>
>
> data.prj as follows
>
> PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
>
>
> using these data How to convert a file which is created using
> european_datum_1950 to WGS84 (World Geodetic System 1984)
> or where I have to start to understand these method of applications
> using PROJ4.
> Thanks
> muratB
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

jishingaku
Dear Jorn Vegard,

thanks for this help I have done it and I obtained DD WGS84 shape file
but problem the data which I study on it goes 3 degree east of the
actual places. I mean 3 degree shifted on the longitude. So how can I
ignore  this problem.

here is command:

ogr2ogr -s_srs "+proj=utm +datum=European_Datum_1950 +epsg:4230
+zone=37" -t_srs "+proj=latlong +datum=wgs84 +epsg:4326"  mahalle1.shp
mahalle.shp

thanks

On Wed, 2012-05-16 at 11:21 +0200, Jørn Vegard Røsnes wrote:

> Hi,
> maybe something like this:
>
> ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source shapefile>
>
> http://www.gdal.org/ogr2ogr.html
>
> kind regards
> Jørn-Vegard Røsnes
>
> ----- Original Message -----
> > From: "Murat Beyhan" <[hidden email]>
> > To: "mapserver-users" <[hidden email]>
> > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > Subject: [mapserver-users] convert projection from UTM to WGS84 using proj
> >
> > Dear friends,
> > I'm sorry, I'm not good at GIS applications but I wondering about
> > conversion between various projection or datum of the data files.
> >
> > data.shp data.shx data.dbf and data.prj files are available.
> >
> > shpdump data.shp gives following
> >
> > Shape:0 (ArcZ)  nVertices=4, nParts=1
> >   Bounds:(  513275.786, 4006041.761, 0, 0)
> >       to (  513345.812, 4006078.182, 0, 0)
> >      (  513275.786, 4006078.182, 0, 0) Ring
> >      (  513301.130, 4006064.906, 0, 0)
> >      (  513321.636, 4006053.249, 0, 0)
> >      (  513345.812, 4006041.761, 0, 0)
> > ...
> >
> >
> >
> >
> >
> > data.prj as follows
> >
> > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> >
> >
> > using these data How to convert a file which is created using
> > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > or where I have to start to understand these method of applications
> > using PROJ4.
> > Thanks
> > muratB
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > _______________________________________________
> > mapserver-users mailing list
> > [hidden email]
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> CONFIDENTIALITY
> This e-mail and any attachment contain KONGSBERG information which may be
> proprietary, confidential or subject to export regulations, and is only meant
> for the intended recipient(s). Any disclosure, copying, distribution or use is
> prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
> error, please delete it immediately from your system and notify the sender
> properly.
>
>



Murat BEYHAN

Jeofizik Y.Müh.
T.C. Başbakanlık
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Eskişehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:[hidden email]




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Murat
Geophysical Engineer, M.Sc.
Ankara,Turkey
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

Jørn Vegard Røsnes
In reply to this post by Jørn Vegard Røsnes
Hi,

I lost your previous email, so this is just by memory.
I'm not an projection expert, but here we go :-)

Regarding 3dg offset:
In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000.
http://proj.maptools.org/gen_parms.html
Se also +towgs84 in the same link and .prj file, and adjust accordingly.

Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg).
I think you're near the solution.

See also
http://spatialreference.org/
http://spatialreference.org/ref/epsg/4230/

kind regards
Jørn-Vegard Røsnes

----- Original Message -----

> From: "Jørn Vegard Røsnes" <[hidden email]>
> To: "Murat Beyhan" <[hidden email]>
> Cc: "mapserver-users" <[hidden email]>
> Sent: Wednesday, 16 May, 2012 11:21:22 AM
> Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj
>
> Hi,
> maybe something like this:
>
> ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source
> shapefile>
>
> http://www.gdal.org/ogr2ogr.html
>
> kind regards
> Jørn-Vegard Røsnes
>
> ----- Original Message -----
> > From: "Murat Beyhan" <[hidden email]>
> > To: "mapserver-users" <[hidden email]>
> > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > Subject: [mapserver-users] convert projection from UTM to WGS84
> > using proj
> >
> > Dear friends,
> > I'm sorry, I'm not good at GIS applications but I wondering about
> > conversion between various projection or datum of the data files.
> >
> > data.shp data.shx data.dbf and data.prj files are available.
> >
> > shpdump data.shp gives following
> >
> > Shape:0 (ArcZ)  nVertices=4, nParts=1
> >   Bounds:(  513275.786, 4006041.761, 0, 0)
> >       to (  513345.812, 4006078.182, 0, 0)
> >      (  513275.786, 4006078.182, 0, 0) Ring
> >      (  513301.130, 4006064.906, 0, 0)
> >      (  513321.636, 4006053.249, 0, 0)
> >      (  513345.812, 4006041.761, 0, 0)
> > ...
> >
> >
> >
> >
> >
> > data.prj as follows
> >
> > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> >
> >
> > using these data How to convert a file which is created using
> > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > or where I have to start to understand these method of applications
> > using PROJ4.
> > Thanks
> > muratB
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> > _______________________________________________
> > mapserver-users mailing list
> > [hidden email]
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

jishingaku

Hi,

is cs2cs a tool for converting shape data and
are there any example for this purpose
actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the
result :(


On Fri, 2012-05-18 at 14:00 +0200, Jørn Vegard Røsnes wrote:

> Hi,
>
> I lost your previous email, so this is just by memory.
> I'm not an projection expert, but here we go :-)
>
> Regarding 3dg offset:
> In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000.
> http://proj.maptools.org/gen_parms.html
> Se also +towgs84 in the same link and .prj file, and adjust accordingly.
>
> Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg).
> I think you're near the solution.
>
> See also
> http://spatialreference.org/
> http://spatialreference.org/ref/epsg/4230/
>
> kind regards
> Jørn-Vegard Røsnes
>
> ----- Original Message -----
> > From: "Jørn Vegard Røsnes" <[hidden email]>
> > To: "Murat Beyhan" <[hidden email]>
> > Cc: "mapserver-users" <[hidden email]>
> > Sent: Wednesday, 16 May, 2012 11:21:22 AM
> > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj
> >
> > Hi,
> > maybe something like this:
> >
> > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source
> > shapefile>
> >
> > http://www.gdal.org/ogr2ogr.html
> >
> > kind regards
> > Jørn-Vegard Røsnes
> >
> > ----- Original Message -----
> > > From: "Murat Beyhan" <[hidden email]>
> > > To: "mapserver-users" <[hidden email]>
> > > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > > Subject: [mapserver-users] convert projection from UTM to WGS84
> > > using proj
> > >
> > > Dear friends,
> > > I'm sorry, I'm not good at GIS applications but I wondering about
> > > conversion between various projection or datum of the data files.
> > >
> > > data.shp data.shx data.dbf and data.prj files are available.
> > >
> > > shpdump data.shp gives following
> > >
> > > Shape:0 (ArcZ)  nVertices=4, nParts=1
> > >   Bounds:(  513275.786, 4006041.761, 0, 0)
> > >       to (  513345.812, 4006078.182, 0, 0)
> > >      (  513275.786, 4006078.182, 0, 0) Ring
> > >      (  513301.130, 4006064.906, 0, 0)
> > >      (  513321.636, 4006053.249, 0, 0)
> > >      (  513345.812, 4006041.761, 0, 0)
> > > ...
> > >
> > >
> > >
> > >
> > >
> > > data.prj as follows
> > >
> > > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> > >
> > >
> > > using these data How to convert a file which is created using
> > > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > > or where I have to start to understand these method of applications
> > > using PROJ4.
> > > Thanks
> > > muratB
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > > _______________________________________________
> > > mapserver-users mailing list
> > > [hidden email]
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >
> >
>
> CONFIDENTIALITY
> This e-mail and any attachment contain KONGSBERG information which may be
> proprietary, confidential or subject to export regulations, and is only meant
> for the intended recipient(s). Any disclosure, copying, distribution or use is
> prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
> error, please delete it immediately from your system and notify the sender
> properly.
>
>



Murat BEYHAN

Jeofizik Y.Müh.
T.C. Başbakanlık
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Eskişehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:[hidden email]




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Murat
Geophysical Engineer, M.Sc.
Ankara,Turkey
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

Jørn Vegard Røsnes
Hi,
cs2cs is a part of proj
http://trac.osgeo.org/proj/
Transforms from one projection to another.

I think it's just a matter of getting the projection parameters right.
Maybe this tool can help you, I just googled it (via http://gis.stackexchange.com/questions/7608/shapefile-prj-to-postgis-srid-lookup-table):
http://prj2epsg.org/search

kind regards
Jørn-Vegard Røsnes

----- Original Message -----

> From: "Murat Beyhan" <[hidden email]>
> To: "Jørn Vegard Røsnes" <[hidden email]>
> Cc: "mapserver-users" <[hidden email]>
> Sent: Monday, 21 May, 2012 9:57:53 AM
> Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj
>
>
> Hi,
>
> is cs2cs a tool for converting shape data and
> are there any example for this purpose
> actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged
> the
> result :(
>
>
> On Fri, 2012-05-18 at 14:00 +0200, Jørn Vegard Røsnes wrote:
> > Hi,
> >
> > I lost your previous email, so this is just by memory.
> > I'm not an projection expert, but here we go :-)
> >
> > Regarding 3dg offset:
> > In your .prj file there is an false easting=500000, so maybe it
> > helps adding +x_0=500000.
> > http://proj.maptools.org/gen_parms.html
> > Se also +towgs84 in the same link and .prj file, and adjust
> > accordingly.
> >
> > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km /
> > 360dg).
> > I think you're near the solution.
> >
> > See also
> > http://spatialreference.org/
> > http://spatialreference.org/ref/epsg/4230/
> >
> > kind regards
> > Jørn-Vegard Røsnes
> >
> > ----- Original Message -----
> > > From: "Jørn Vegard Røsnes" <[hidden email]>
> > > To: "Murat Beyhan" <[hidden email]>
> > > Cc: "mapserver-users" <[hidden email]>
> > > Sent: Wednesday, 16 May, 2012 11:21:22 AM
> > > Subject: Re: [mapserver-users] convert projection from UTM to
> > > WGS84 using proj
> > >
> > > Hi,
> > > maybe something like this:
> > >
> > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile>
> > > <source
> > > shapefile>
> > >
> > > http://www.gdal.org/ogr2ogr.html
> > >
> > > kind regards
> > > Jørn-Vegard Røsnes
> > >
> > > ----- Original Message -----
> > > > From: "Murat Beyhan" <[hidden email]>
> > > > To: "mapserver-users" <[hidden email]>
> > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > > > Subject: [mapserver-users] convert projection from UTM to WGS84
> > > > using proj
> > > >
> > > > Dear friends,
> > > > I'm sorry, I'm not good at GIS applications but I wondering
> > > > about
> > > > conversion between various projection or datum of the data
> > > > files.
> > > >
> > > > data.shp data.shx data.dbf and data.prj files are available.
> > > >
> > > > shpdump data.shp gives following
> > > >
> > > > Shape:0 (ArcZ)  nVertices=4, nParts=1
> > > >   Bounds:(  513275.786, 4006041.761, 0, 0)
> > > >       to (  513345.812, 4006078.182, 0, 0)
> > > >      (  513275.786, 4006078.182, 0, 0) Ring
> > > >      (  513301.130, 4006064.906, 0, 0)
> > > >      (  513321.636, 4006053.249, 0, 0)
> > > >      (  513345.812, 4006041.761, 0, 0)
> > > > ...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > data.prj as follows
> > > >
> > > > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> > > >
> > > >
> > > > using these data How to convert a file which is created using
> > > > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > > > or where I have to start to understand these method of
> > > > applications
> > > > using PROJ4.
> > > > Thanks
> > > > muratB
> > > >
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > > >
> > > > _______________________________________________
> > > > mapserver-users mailing list
> > > > [hidden email]
> > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > > >
> > >
> >
> > CONFIDENTIALITY
> > This e-mail and any attachment contain KONGSBERG information which
> > may be
> > proprietary, confidential or subject to export regulations, and is
> > only meant
> > for the intended recipient(s). Any disclosure, copying,
> > distribution or use is
> > prohibited, if not otherwise explicitly agreed with KONGSBERG. If
> > received in
> > error, please delete it immediately from your system and notify the
> > sender
> > properly.
> >
> >
>
>
>
> Murat BEYHAN
>
> Jeofizik Y.Müh.
> T.C. Başbakanlık
> Afet ve Acil Durum Yönetimi Başkanlığı
> Deprem Dairesi Başkanlığı
> Eskişehir Yolu 12. Km.
> Lodumlu/ANKARA
> Tel: 312 2872680-1556
> email:[hidden email]
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

Rahkonen Jukka  (Tike)
In reply to this post by jishingaku
Hi,

Ogr2ogr is your tool for converting shapefiles. There must be something wrong in the predefined EPSG parameteres.  Give projections as +proj strings and you will have a full control over what happens. An example about conversion from EPSG:2393 into EPSG:3067

ogr2ogr -f "ESRI Shapefile" -s_srs "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.7535,4.80107,0.34543,-1.37646,1.4964 +units=m" -t_srs "+proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,0 +no_defs" target.shp original.shp

Mapserver takes the parameters from the text file named "epsg" and it is easy to edit by hand. However, ogr2ogr does not use that file. Therefore you did not see any difference after your edits.

-Jukka Rahkonen-

Murat Beyhan wrote:


> Hi,

> is cs2cs a tool for converting shape data and
are there any example for this purpose
actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the
result :(


On Fri, 2012-05-18 at 14:00 +0200, Jørn Vegard Røsnes wrote:

> Hi,
>
> I lost your previous email, so this is just by memory.
> I'm not an projection expert, but here we go :-)
>
> Regarding 3dg offset:
> In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000.
> http://proj.maptools.org/gen_parms.html
> Se also +towgs84 in the same link and .prj file, and adjust accordingly.
>
> Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg).
> I think you're near the solution.
>
> See also
> http://spatialreference.org/
> http://spatialreference.org/ref/epsg/4230/
>
> kind regards
> Jørn-Vegard Røsnes
>
> ----- Original Message -----
> > From: "Jørn Vegard Røsnes" <[hidden email]>
> > To: "Murat Beyhan" <[hidden email]>
> > Cc: "mapserver-users" <[hidden email]>
> > Sent: Wednesday, 16 May, 2012 11:21:22 AM
> > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj
> >
> > Hi,
> > maybe something like this:
> >
> > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source
> > shapefile>
> >
> > http://www.gdal.org/ogr2ogr.html
> >
> > kind regards
> > Jørn-Vegard Røsnes
> >
> > ----- Original Message -----
> > > From: "Murat Beyhan" <[hidden email]>
> > > To: "mapserver-users" <[hidden email]>
> > > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > > Subject: [mapserver-users] convert projection from UTM to WGS84
> > > using proj
> > >
> > > Dear friends,
> > > I'm sorry, I'm not good at GIS applications but I wondering about
> > > conversion between various projection or datum of the data files.
> > >
> > > data.shp data.shx data.dbf and data.prj files are available.
> > >
> > > shpdump data.shp gives following
> > >
> > > Shape:0 (ArcZ)  nVertices=4, nParts=1
> > >   Bounds:(  513275.786, 4006041.761, 0, 0)
> > >       to (  513345.812, 4006078.182, 0, 0)
> > >      (  513275.786, 4006078.182, 0, 0) Ring
> > >      (  513301.130, 4006064.906, 0, 0)
> > >      (  513321.636, 4006053.249, 0, 0)
> > >      (  513345.812, 4006041.761, 0, 0)
> > > ...
> > >
> > >
> > >
> > >
> > >
> > > data.prj as follows
> > >
> > > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> > >
> > >
> > > using these data How to convert a file which is created using
> > > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > > or where I have to start to understand these method of applications
> > > using PROJ4.
> > > Thanks
> > > muratB
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > > _______________________________________________
> > > mapserver-users mailing list
> > > [hidden email]
> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > >
> >
>
> CONFIDENTIALITY
> This e-mail and any attachment contain KONGSBERG information which may be
> proprietary, confidential or subject to export regulations, and is only meant
> for the intended recipient(s). Any disclosure, copying, distribution or use is
> prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
> error, please delete it immediately from your system and notify the sender
> properly.
>
>


Murat BEYHAN

Jeofizik Y.Müh.
T.C. Başbakanlık
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Eskişehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:[hidden email]




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: convert projection from UTM to WGS84 using proj

jishingaku
Dear friends,
I have solved my problem using ogr gui tool easily and thank you for
your interest.
Regards...

On Mon, 2012-05-21 at 09:43 +0000, Rahkonen Jukka wrote:

> Hi,
>
> Ogr2ogr is your tool for converting shapefiles. There must be something wrong in the predefined EPSG parameteres.  Give projections as +proj strings and you will have a full control over what happens. An example about conversion from EPSG:2393 into EPSG:3067
>
> ogr2ogr -f "ESRI Shapefile" -s_srs "+proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.7535,4.80107,0.34543,-1.37646,1.4964 +units=m" -t_srs "+proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,0 +no_defs" target.shp original.shp
>
> Mapserver takes the parameters from the text file named "epsg" and it is easy to edit by hand. However, ogr2ogr does not use that file. Therefore you did not see any difference after your edits.
>
> -Jukka Rahkonen-
>
> Murat Beyhan wrote:
>
>
> > Hi,
>
> > is cs2cs a tool for converting shape data and
> are there any example for this purpose
> actually I added +x_0=500000. to ogr2ogr command but doesn't cahaged the
> result :(
>
>
> On Fri, 2012-05-18 at 14:00 +0200, Jørn Vegard Røsnes wrote:
> > Hi,
> >
> > I lost your previous email, so this is just by memory.
> > I'm not an projection expert, but here we go :-)
> >
> > Regarding 3dg offset:
> > In your .prj file there is an false easting=500000, so maybe it helps adding +x_0=500000.
> > http://proj.maptools.org/gen_parms.html
> > Se also +towgs84 in the same link and .prj file, and adjust accordingly.
> >
> > Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg).
> > I think you're near the solution.
> >
> > See also
> > http://spatialreference.org/
> > http://spatialreference.org/ref/epsg/4230/
> >
> > kind regards
> > Jørn-Vegard Røsnes
> >
> > ----- Original Message -----
> > > From: "Jørn Vegard Røsnes" <[hidden email]>
> > > To: "Murat Beyhan" <[hidden email]>
> > > Cc: "mapserver-users" <[hidden email]>
> > > Sent: Wednesday, 16 May, 2012 11:21:22 AM
> > > Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using proj
> > >
> > > Hi,
> > > maybe something like this:
> > >
> > > ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  <dest shapefile> <source
> > > shapefile>
> > >
> > > http://www.gdal.org/ogr2ogr.html
> > >
> > > kind regards
> > > Jørn-Vegard Røsnes
> > >
> > > ----- Original Message -----
> > > > From: "Murat Beyhan" <[hidden email]>
> > > > To: "mapserver-users" <[hidden email]>
> > > > Sent: Wednesday, 16 May, 2012 10:41:39 AM
> > > > Subject: [mapserver-users] convert projection from UTM to WGS84
> > > > using proj
> > > >
> > > > Dear friends,
> > > > I'm sorry, I'm not good at GIS applications but I wondering about
> > > > conversion between various projection or datum of the data files.
> > > >
> > > > data.shp data.shx data.dbf and data.prj files are available.
> > > >
> > > > shpdump data.shp gives following
> > > >
> > > > Shape:0 (ArcZ)  nVertices=4, nParts=1
> > > >   Bounds:(  513275.786, 4006041.761, 0, 0)
> > > >       to (  513345.812, 4006078.182, 0, 0)
> > > >      (  513275.786, 4006078.182, 0, 0) Ring
> > > >      (  513301.130, 4006064.906, 0, 0)
> > > >      (  513321.636, 4006053.249, 0, 0)
> > > >      (  513345.812, 4006041.761, 0, 0)
> > > > ...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > data.prj as follows
> > > >
> > > > PROJCS["(UTM)Universal Transvers Merkator 3�",GEOGCS["EUROPEAN
> > > > 1950",DATUM["European_Datum_1950",SPHEROID["International",6378388.00000000,297.00000000],
> > > > TOWGS84[-87.00000000,-98.00000000,-121.00000000,0.00000000,0.00000000,0.00000000,0.00000000]],
> > > > PRIMEM["Greenwich",0.00000000],UNIT["Degree",0.01745329],AUTHORITY["EPSG","4230"]],PROJECTION["TRANSVERSE_MERCATOR"],
> > > > PARAMETER["SCALE_FACTOR",1.00000000],PARAMETER["CENTRAL_MERIDIAN",36.00000000],PARAMETER["LATITUDE_OF_ORIGIN",0.00000000],
> > > > PARAMETER["FALSE_EASTING",500000.00000000],PARAMETER["FALSE_NORTHING",0.00000000],UNIT["meter",1.00000000]]
> > > >
> > > >
> > > > using these data How to convert a file which is created using
> > > > european_datum_1950 to WGS84 (World Geodetic System 1984)
> > > > or where I have to start to understand these method of applications
> > > > using PROJ4.
> > > > Thanks
> > > > muratB
> > > >
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > > >
> > > > _______________________________________________
> > > > mapserver-users mailing list
> > > > [hidden email]
> > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> > > >
> > >
> >
> > CONFIDENTIALITY
> > This e-mail and any attachment contain KONGSBERG information which may be
> > proprietary, confidential or subject to export regulations, and is only meant
> > for the intended recipient(s). Any disclosure, copying, distribution or use is
> > prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
> > error, please delete it immediately from your system and notify the sender
> > properly.
> >
> >
>
>
>
> Murat BEYHAN
>
> Jeofizik Y.Müh.
> T.C. Başbakanlık
> Afet ve Acil Durum Yönetimi Başkanlığı
> Deprem Dairesi Başkanlığı
> Eskişehir Yolu 12. Km.
> Lodumlu/ANKARA
> Tel: 312 2872680-1556
> email:[hidden email]
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



Murat BEYHAN

Jeofizik Y.Müh.
T.C. Başbakanlık
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Eskişehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:[hidden email]




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
mapserver-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
Murat
Geophysical Engineer, M.Sc.
Ankara,Turkey
Loading...