ogr2ogr reprojection

Jelmer Baas baas at SPEERIT.NL
Thu May 18 01:17:06 EDT 2006


Zhonghai Wang wrote:
> Hi,
> 
> I've tried with this batch command, but I failed, because I don't know 
> how to specify the -s_srs and -t_srs parameters, should it be something 
> like this?
> 
>>  for %a in (*.shp) do ogr2ogr.exe %a -init=epsg:4326 -init=world:CH1903
> 
> **init=world:CH1903 is for switzerland, and I am sure that this 
> projection code is right.

yeah, this should do it. Sorry for my short last response though.

This should execute
ogr2ogr.exe <filename> -init=epsg:4326 -init=world:CH1903

For each .shp file you have. What is the error you receive? Perhaps the 
ogr2ogr.exe isn't in the same folder?

-- 
Jelmer Baas



More information about the mapserver-users mailing list