[mapserver-commits] r11156 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Mar 11 16:14:42 EST 2011


Author: assefa
Date: 2011-03-11 13:14:42 -0800 (Fri, 11 Mar 2011)
New Revision: 11156

Modified:
   trunk/mapserver/mapaxisorder.h
   trunk/mapserver/mapaxisorder.sh
Log:
add a static table to define axis order for some epsg codes (#3582)

Modified: trunk/mapserver/mapaxisorder.h
===================================================================
--- trunk/mapserver/mapaxisorder.h	2011-03-11 20:19:13 UTC (rev 11155)
+++ trunk/mapserver/mapaxisorder.h	2011-03-11 21:14:42 UTC (rev 11156)
@@ -49,7 +49,7 @@
   {4471,0},
 };
  
-#define AXIS_ORIENTATION_TABLE_SIZE 8
+#define AXIS_ORIENTATION_TABLE_SIZE 7
  
 #ifdef __cplusplus
 }

Modified: trunk/mapserver/mapaxisorder.sh
===================================================================
--- trunk/mapserver/mapaxisorder.sh	2011-03-11 20:19:13 UTC (rev 11155)
+++ trunk/mapserver/mapaxisorder.sh	2011-03-11 21:14:42 UTC (rev 11156)
@@ -66,13 +66,15 @@
 	# unset first array element
    unset ARRAY[0]
    # traverse array and print out elements
+        let count=0
 	for x in "${ARRAY[@]}"; do
 		echo "  {${x}},"
+		((count++))
 	done
 
 	echo '};'
    echo ' '
-	echo '#define AXIS_ORIENTATION_TABLE_SIZE 8'
+	echo '#define AXIS_ORIENTATION_TABLE_SIZE '${count}
    echo ' '
 	echo '#ifdef __cplusplus'
 	echo '}'



More information about the mapserver-commits mailing list