Index: frmts/netcdf/netcdfdataset.cpp
===================================================================
--- frmts/netcdf/netcdfdataset.cpp	(revision 23600)
+++ frmts/netcdf/netcdfdataset.cpp	(working copy)
@@ -2341,46 +2341,6 @@
                     yMinMax[1] = dummy[1];
                 }
 
-                /* ----------------------------------------------------------*/
-                /*    Many netcdf files are weather files distributed        */
-                /*    in km for the x/y resolution.  This isn't perfect,     */
-                /*    but geotransforms can be terribly off if this isn't    */
-                /*    checked and accounted for.  Maybe one more level of    */
-                /*    checking (grid_mapping_value#GRIB_param_Dx, or         */
-                /*    x#grid_spacing), but those are not cf tags.            */
-                /*    Have to change metadata value if change Create() to    */
-                /*    write cf tags                                          */
-                /* ----------------------------------------------------------*/
-                
-                //check units for x and y, expand to other values 
-                //and conversions.
-                if( oSRS.IsProjected( ) ) {
-                    strcpy( szTemp, "x" );
-                    strcat( szTemp, "#units" );
-                    pszValue = CSLFetchNameValue( poDS->papszMetadata, 
-                                                  szTemp );
-                    if( pszValue != NULL ) {
-                        pszUnits = pszValue;
-                        if( EQUAL( pszValue, "km" ) ) {
-                            xMinMax[0] = xMinMax[0] * 1000;
-                            xMinMax[1] = xMinMax[1] * 1000;
-                        }
-                    }
-                    strcpy( szTemp, "y" );
-                    strcat( szTemp, "#units" );
-                    pszValue = CSLFetchNameValue( poDS->papszMetadata, 
-                                                  szTemp );
-                    if( pszValue != NULL ) {
-                        /* TODO: see how to deal with diff. values */
-                        // if ( ! EQUAL( pszValue, szUnits ) )
-                        //     strcpy( szUnits, "\0" );
-                        if( EQUAL( pszValue, "km" ) ) {
-                            yMinMax[0] = yMinMax[0] * 1000;
-                            yMinMax[1] = yMinMax[1] * 1000;
-                        }
-                    }
-                }
-
                 adfTempGeoTransform[0] = xMinMax[0];
                 adfTempGeoTransform[2] = 0;
                 adfTempGeoTransform[3] = yMinMax[1];
