~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to ogr/ogr_srsnode.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: ogr_srsnode.cpp 18443 2010-01-05 19:33:15Z rouault $
 
2
 * $Id: ogr_srsnode.cpp 23521 2011-12-10 23:04:17Z etourigny $
3
3
 *
4
4
 * Project:  OpenGIS Simple Features Reference Implementation
5
5
 * Purpose:  The OGR_SRSNode class.
30
30
#include "ogr_spatialref.h"
31
31
#include "ogr_p.h"
32
32
 
33
 
CPL_CVSID("$Id: ogr_srsnode.cpp 18443 2010-01-05 19:33:15Z rouault $");
 
33
CPL_CVSID("$Id: ogr_srsnode.cpp 23521 2011-12-10 23:04:17Z etourigny $");
34
34
 
35
35
/************************************************************************/
36
36
/*                            OGR_SRSNode()                             */
646
646
 
647
647
            AddChild( poNewChild );
648
648
            
 
649
            // swallow whitespace
 
650
            while( isspace(*pszInput) ) 
 
651
                pszInput++;
 
652
 
649
653
        } while( *pszInput == ',' );
650
654
 
651
655
        if( *pszInput != ')' && *pszInput != ']' )
765
769
    {
766
770
        for( i = 0; papszSrcValues[i] != NULL; i += nStepSize )
767
771
        {
768
 
            if( EQUAL(papszSrcValues[i],pszValue) )
 
772
            if( EQUAL(papszSrcValues[i],pszValue) && 
 
773
                ! EQUAL(papszDstValues[i],"") )
769
774
            {
770
775
                SetValue( papszDstValues[i] );
771
776
                break;
839
844
 * wrong.  
840
845
 */
841
846
 
 
847
/* EXTENSION ... being a OSR extension... is arbitrary placed before the AUTHORITY */
842
848
static const char * const apszPROJCSRule[] = 
843
 
{ "PROJCS", "GEOGCS", "PROJECTION", "PARAMETER", "UNIT", "AXIS", "AUTHORITY", 
 
849
{ "PROJCS", "GEOGCS", "PROJECTION", "PARAMETER", "UNIT", "AXIS", "EXTENSION", "AUTHORITY", 
844
850
  NULL };
845
851
 
846
852
static const char * const apszDATUMRule[] = 
849
855
static const char * const apszGEOGCSRule[] = 
850
856
{ "GEOGCS", "DATUM", "PRIMEM", "UNIT", "AXIS", "AUTHORITY", NULL };
851
857
 
 
858
static const char * const apszGEOCCSRule[] = 
 
859
{ "GEOCCS", "DATUM", "PRIMEM", "UNIT", "AXIS", "AUTHORITY", NULL };
 
860
 
852
861
static const char * const *apszOrderingRules[] = {
853
 
    apszPROJCSRule, apszGEOGCSRule, apszDATUMRule, NULL };
 
862
    apszPROJCSRule, apszGEOGCSRule, apszDATUMRule, apszGEOCCSRule, NULL };
854
863
 
855
864
OGRErr OGR_SRSNode::FixupOrdering()
856
865