[FWTools] ogr2ogr

David Fawcett david.fawcett at gmail.com
Sun Aug 21 21:05:47 EDT 2005


Let me answer my own last question.  Doing a -t_srs as opposed to
-a_srs built the shapefile that I was looking for in UTM.

[djf at localhost data]$ ogr2ogr sail_prj2.shp zsail.shp -t_srs
EPSG:26915 -s_srs EPSG:4326

David.


On 8/21/05, Frank Warmerdam <fwarmerdam at gmail.com> wrote:
> On 8/21/05, David Fawcett <david.fawcett at gmail.com> wrote:
> > I am using org2ogr on linux (fc3).  I am attempting to reproject a
> > shapefile that is in lat/long to UTM Zone 15.
> >
> > Here is my syntax:  [root at localhost data]# ogr2ogr sail_trk.shp -a_srs
> > EPSG:26915
> >
> > I get this response indicating that my syntax is either wrong or that
> > it doesn't recognize my epsg code:
> 
> David,
> 
> I believe the problem is that you didn't provide an destination
> datasetname.
> 
> Try:
> ogr2ogr sail_trk_out.shp sail_trk.shp -a_srs EPSG:26915
> 
> ogr2ogr does not support "in place" reprojection or other transformations.
> 
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>



More information about the FWTools mailing list