[mapserver-commits] r10242 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Jun 23 13:35:04 EDT 2010


Author: aboudreault
Date: 2010-06-23 17:35:04 +0000 (Wed, 23 Jun 2010)
New Revision: 10242

Modified:
   trunk/mapserver/mapfile.c
   trunk/mapserver/mapprojhack.c
   trunk/mapserver/mapserver.h
Log:
Modified mapserver units enum order to fix some problems with external softwares (#3173)

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2010-06-23 17:16:40 UTC (rev 10241)
+++ trunk/mapserver/mapfile.c	2010-06-23 17:35:04 UTC (rev 10242)
@@ -70,7 +70,7 @@
 ** Symbol to string static arrays needed for writing map files.
 ** Must be kept in sync with enumerations and defines found in mapserver.h.
 */
-/* static char *msUnits[9]={"INCHES", "FEET", "MILES", "METERS", "KILOMETERS", "NAUTICALMILES", "DD", "PIXELS", "PERCENTAGES"}; */
+/* static char *msUnits[9]={"INCHES", "FEET", "MILES", "METERS", "KILOMETERS", "DD", "PIXELS", "PERCENTAGES", "NAUTICALMILES"}; */
 /* static char *msLayerTypes[9]={"POINT", "LINE", "POLYGON", "RASTER", "ANNOTATION", "QUERY", "CIRCLE", "TILEINDEX","CHART"}; */
 char *msPositionsText[MS_POSITIONS_LENGTH] = {"UL", "LR", "UR", "LL", "CR", "CL", "UC", "LC", "CC", "AUTO", "XY", "FOLLOW"}; /* msLabelPositions[] also used in mapsymbols.c (not static) */
 /* static char *msBitmapFontSizes[5]={"TINY", "SMALL", "MEDIUM", "LARGE", "GIANT"}; */

Modified: trunk/mapserver/mapprojhack.c
===================================================================
--- trunk/mapserver/mapprojhack.c	2010-06-23 17:16:40 UTC (rev 10241)
+++ trunk/mapserver/mapprojhack.c	2010-06-23 17:35:04 UTC (rev 10242)
@@ -44,7 +44,7 @@
 #include "mapproject.h"
 
 enum MS_UNITS {MS_INCHES, MS_FEET, MS_MILES, MS_METERS, MS_KILOMETERS,
-               MS_NAUTICALMILES, MS_DD, MS_PIXELS};
+               MS_DD, MS_PIXELS, MS_NAUTICALMILES};
 
 
 /************************************************************************/

Modified: trunk/mapserver/mapserver.h
===================================================================
--- trunk/mapserver/mapserver.h	2010-06-23 17:16:40 UTC (rev 10241)
+++ trunk/mapserver/mapserver.h	2010-06-23 17:35:04 UTC (rev 10242)
@@ -395,7 +395,7 @@
 
 /* General enumerated types - needed by scripts */
 enum MS_FILE_TYPE {MS_FILE_MAP, MS_FILE_SYMBOL};
-enum MS_UNITS {MS_INCHES, MS_FEET, MS_MILES, MS_METERS, MS_KILOMETERS, MS_NAUTICALMILES, MS_DD, MS_PIXELS, MS_PERCENTAGES};
+enum MS_UNITS {MS_INCHES, MS_FEET, MS_MILES, MS_METERS, MS_KILOMETERS, MS_DD, MS_PIXELS, MS_PERCENTAGES, MS_NAUTICALMILES};
 enum MS_SHAPE_TYPE {MS_SHAPE_POINT, MS_SHAPE_LINE, MS_SHAPE_POLYGON, MS_SHAPE_NULL};
 enum MS_LAYER_TYPE {MS_LAYER_POINT, MS_LAYER_LINE, MS_LAYER_POLYGON, MS_LAYER_RASTER, MS_LAYER_ANNOTATION, MS_LAYER_QUERY, MS_LAYER_CIRCLE, MS_LAYER_TILEINDEX, MS_LAYER_CHART};
 enum MS_FONT_TYPE {MS_TRUETYPE, MS_BITMAP};



More information about the mapserver-commits mailing list