[FWTools] ogr2ogr

David Fawcett david.fawcett at gmail.com
Sun Aug 21 20:52:17 EDT 2005


Thanks Frank and Ken, 

I believe that naming an output file did the trick.  When I run the
suggested arguements, it doesn't complain and the output shapefile
files are created, including a .prj file that looks like it has the
proper info.

I guess this leads me to the next logical question...  Does OpenEv
recognize and use .prj files.  When I open up the shape that I believe
has been properly reprojected in OpenEv, it shows coordinates in
lat/lon.  When I try to add my UTM DOQ, obviously they don't display
together.

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