Frank, I have been working on this issue for some time and the driver has a quirky way of handling spatial reference parameters. If a tag is not present, the netCDFDataset::FetchCopyParms() function returns a default value. Currently, those default values are all specified as 0.0. Because of this, there is no error and my projection is set with several 0.0 values. I have fixed the standard parallel issue on my local machine and it now supports CF-1 tags(standard_parallel) as well as gdal tags (standard_parallel_1 and standard_parallel_2). I would like to continue to update the driver for other tags that have been added to CF, but still support gdal tags as well, but I am not sure if my programming methods will be suitable. I would hate to do a bunch of work and not be able to incorporate it. Any thoughts on how to go about this?
kss # =================== Kyle Shannon Physical Science Technician RMRS Fire Sciences Lab Fire, Fuels & Smoke - RWU 4405 5775 Highway 10 W. Missoula, MT 59808 (406) 829-6954 [email protected] # =================== On Tue, Jan 12, 2010 at 1:57 PM, Frank Warmerdam <[email protected]>wrote: > Kyle Shannon wrote: > >> After a little digging, it appears that the netCDF driver does not support >> the tag: >> >> Lambert_Conformal:standard_parallel >> >> it supports: >> Lambert_Conformal:standard_parallel_1 >> and: >> Lambert_Conformal:standard_parallel_2 >> >> I am not sure if the tag is out of specification, or if the driver needs >> to be updated. I also notice OGRSpatialReference has a separate function >> for setting a Lambert Conformal Conic with single parallel: >> >> OGRErr SetLCC1SP( *double* dfCenterLat, *double* dfCenterLong, ... >> >> but this is not referenced in the netCDF driver. >> >> So, my next question is: >> Can you specify the value of SP_1 and SP_2 as the same parallel in the >> standard LCC, or do you have to set LCC1SP >> >> Thanks everyone for your patience, >> > > Kyle, > > Good investigating. I'd suggest filing a ticket, ideally referencing > an example file. It should be fairly easily added. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > [email protected] > light and sound - activate the windows | > http://pobox.com/~warmerdam<http://pobox.com/%7Ewarmerdam> > and watch the world go round - Rush | Geospatial Programmer for Rent > >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
