[gdal-dev] Re: Transform not working

2010-03-01 Thread Jamie Lahowetz
I figured it out... with all of your help. I had the coordtrans = osr.CoordinateTransformation switched. I wanted to input lat/lon (WGS84) and transform it to lcc (source) and I also had to set the source prj to lcc. I think you all said this stuff already, just took me a little while. Thanks for a

Re: [gdal-dev] Re: Transform not working

2010-03-01 Thread Frank Warmerdam
deadpickle wrote: Not much of a response going on here. In order to change the shapefile projection from geographic to projected do I need to reopen the file, get each feature, and transform the points individually? If so what calls do I need to invoke? On Mar 1, 12:54 pm, Jamie Lahowetz wrote:

Re: [gdal-dev] Re: Transform not working

2010-03-01 Thread Jamie Lahowetz
Thanks for the response. I'm sorry I'm really new to this and am not sure where to transform the line geometry, I know it should be before layer.CreateFeature(feature) but after I add the points to the geometry. Is it before or after feature.SetGeometry(line)? And is the right way to call the trans

Re: [gdal-dev] Re: Transform not working

2010-03-01 Thread Chris Garrard
Jamie, Try transforming the line geometry before adding it to the feature. That should do it. chris On Mon, Mar 1, 2010 at 4:24 PM, deadpickle wrote: > Not much of a response going on here. In order to change the shapefile > projection from geographic to projected do I need to reopen the file,

[gdal-dev] Re: Transform not working

2010-03-01 Thread deadpickle
Not much of a response going on here. In order to change the shapefile projection from geographic to projected do I need to reopen the file, get each feature, and transform the points individually? If so what calls do I need to invoke? On Mar 1, 12:54 pm, Jamie Lahowetz wrote: > I'm new to GDAL a