Commit eac89801 authored by Alan Boudreault's avatar Alan Boudreault

Imported upstream version 6.0.1

parent d4de4aeb
...@@ -23,4 +23,7 @@ jmckenna Jeff McKenna jmckenna at gatewaygeomatics.com Documen ...@@ -23,4 +23,7 @@ jmckenna Jeff McKenna jmckenna at gatewaygeomatics.com Documen
aboudreault Alan Boudreault aboudreault at mapgears.com OGR, general bug fixes aboudreault Alan Boudreault aboudreault at mapgears.com OGR, general bug fixes
toby Toby Rahilly toby.rahilly at gmail.com OpenGL toby Toby Rahilly toby.rahilly at gmail.com OpenGL
jbourke Jonathan Bourke jonathan.bourke at mapds.com.au OpenGL jbourke Jonathan Bourke jonathan.bourke at mapds.com.au OpenGL
jimk James Klassen klassen.js at gmail.com maporacle
rouault Even Rouault even.rouault at mines-paris.org OGC WFS
schpidi Stephan Meissl stephan.meissl at eox.at OGC WCS
============ ===================== =================================== ================================ ============ ===================== =================================== ================================
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# - Run the VCVARS32.BAT script to initialize the VC++ environment variables # - Run the VCVARS32.BAT script to initialize the VC++ environment variables
# - Start the build with: nmake /f makefile.vc # - Start the build with: nmake /f makefile.vc
# #
# $Id: Makefile.vc 9284 2009-09-01 10:12:05Z tamas $ # $Id: Makefile.vc 11154 2011-03-11 19:59:30Z aboudreault $
# #
MAPSERVER_ROOT = . MAPSERVER_ROOT = .
...@@ -26,7 +26,7 @@ LINK= link ...@@ -26,7 +26,7 @@ LINK= link
# #
MS_DLL = libmap.dll MS_DLL = libmap.dll
MS_OBJS = maprgbapng.obj mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ MS_OBJS = mapbits.obj maphash.obj mapshape.obj mapxbase.obj \
mapparser.obj maplexer.obj maptree.obj \ mapparser.obj maplexer.obj maptree.obj \
mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \ mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj \
maplegend.obj maputil.obj mapscale.obj mapquery.obj \ maplegend.obj maputil.obj mapscale.obj mapquery.obj \
...@@ -34,19 +34,21 @@ MS_OBJS = maprgbapng.obj mapbits.obj maphash.obj mapshape.obj mapxbase.obj \ ...@@ -34,19 +34,21 @@ MS_OBJS = maprgbapng.obj mapbits.obj maphash.obj mapshape.obj mapxbase.obj \
mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj \ mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj \
maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj \ maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj \
mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj \ mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj \
mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj \ mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj \
mapgdal.obj mapwfs.obj mapwfs11.obj mapwfslayer.obj mapows.obj maphttp.obj \ mapgdal.obj mapwfs.obj mapwfs11.obj mapwfslayer.obj mapows.obj maphttp.obj \
mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj \ mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj \
mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj \ mapimagemap.obj mapcopy.obj maprasterquery.obj \
mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj \ mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj \
classobject.obj layerobject.obj mapwcs.obj mapwcs11.obj \ classobject.obj layerobject.obj mapwcs.obj mapwcs11.obj mapwcs20.obj \
mapgeos.obj strptime.obj \ mapgeos.obj strptime.obj mapogroutput.obj \
mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj \ mapcpl.obj mapio.obj mappool.obj mapregex.obj mappluginlayer.obj \
mapogcsos.obj mappostgresql.obj mapcrypto.obj mapowscommon.obj \ mapogcsos.obj mappostgresql.obj mapcrypto.obj mapowscommon.obj \
maplibxml2.obj mapdebug.obj mapchart.obj mapagg.obj maptclutf.obj \ maplibxml2.obj mapdebug.obj mapchart.obj mapagg.obj maptclutf.obj \
maprendering.obj mapimageio.obj mapcairo.obj \ maprendering.obj mapimageio.obj mapcairo.obj \
mapoglrenderer.obj mapoglcontext.obj mapogl.obj \ mapoglrenderer.obj mapoglcontext.obj mapogl.obj \
maptile.obj $(EPPL_OBJ) $(REGEX_OBJ) mapgeomtransform.obj $(AGG_OBJ) maptile.obj $(EPPL_OBJ) $(REGEX_OBJ) mapgeomtransform.obj mapunion.obj \
mapkmlrenderer.obj mapkml.obj mapdummyrenderer.obj mapgeomutil.obj mapquantization.obj \
mapogcfiltercommon.obj mapcluster.obj $(AGG_OBJ)
MS_HDRS = mapserver.h mapfile.h MS_HDRS = mapserver.h mapfile.h
...@@ -111,6 +113,7 @@ clean: ...@@ -111,6 +113,7 @@ clean:
del *.exp del *.exp
del *.ilk del *.ilk
del *.manifest del *.manifest
del renderers\agg\*.obj
!IFDEF DOT_NET !IFDEF DOT_NET
cd mapscript\csharp cd mapscript\csharp
nmake /f makefile.vc clean nmake /f makefile.vc clean
...@@ -122,7 +125,7 @@ clean: ...@@ -122,7 +125,7 @@ clean:
cd ..\.. cd ..\..
!ENDIF !ENDIF
!IFDEF PHP_HOME !IFDEF PHP_HOME
cd mapscript\php3 cd mapscript\php
nmake /f makefile.vc clean nmake /f makefile.vc clean
cd ..\.. cd ..\..
!ENDIF !ENDIF
...@@ -147,7 +150,8 @@ mapscriptvars: makefile.vc nmake.opt ...@@ -147,7 +150,8 @@ mapscriptvars: makefile.vc nmake.opt
echo $(LIBS) >> mapscriptvars echo $(LIBS) >> mapscriptvars
findstr MS_VERSION mapserver.h | findstr define >> mapscriptvars findstr MS_VERSION mapserver.h | findstr define >> mapscriptvars
install: $(MS_DLL) $(MS_EXE) python csharp java php #install: $(MS_DLL) $(MS_EXE) python csharp java php
install: $(MS_DLL) $(MS_EXE)
-mkdir $(BINDIR) -mkdir $(BINDIR)
xcopy /y /r /d /f $(MS_DLL) $(BINDIR) xcopy /y /r /d /f $(MS_DLL) $(BINDIR)
copy *.exe $(BINDIR) copy *.exe $(BINDIR)
...@@ -169,7 +173,7 @@ install: $(MS_DLL) $(MS_EXE) python csharp java php ...@@ -169,7 +173,7 @@ install: $(MS_DLL) $(MS_EXE) python csharp java php
!ENDIF !ENDIF
!IFDEF PHP_HOME !IFDEF PHP_HOME
-mkdir $(BINDIR)\mapscript\php -mkdir $(BINDIR)\mapscript\php
xcopy /y /r /d /f .\mapscript\php3\*.dll $(BINDIR)\mapscript\php xcopy /y /r /d /f .\mapscript\php\*.dll $(BINDIR)\mapscript\php
!ENDIF !ENDIF
!IFDEF PYTHON_HOME !IFDEF PYTHON_HOME
...@@ -202,7 +206,7 @@ java: ...@@ -202,7 +206,7 @@ java:
!IFDEF PHP_HOME !IFDEF PHP_HOME
php: mapscriptvars $(MS_DLL) $(MS_LIB_DLL) php: mapscriptvars $(MS_DLL) $(MS_LIB_DLL)
cd mapscript\php3 cd mapscript\php
nmake /f makefile.vc nmake /f makefile.vc
cd ..\.. cd ..\..
!ELSE !ELSE
......
...@@ -22,7 +22,7 @@ directory where you extracted the MapServer source code package and... ...@@ -22,7 +22,7 @@ directory where you extracted the MapServer source code package and...
:: ::
$ cd mapserver-5.0.x $ cd mapserver-6.0.x
$ ./configure $ ./configure
$ make $ make
...@@ -106,16 +106,14 @@ Optional Packages: ...@@ -106,16 +106,14 @@ Optional Packages:
--without-tiff Disable TIFF support. --without-tiff Disable TIFF support.
--with-tiff[=DIR] Include TIFF support (DIR is LibTIFF's install dir). --with-tiff[=DIR] Include TIFF support (DIR is LibTIFF's install dir).
--with-postgis[=ARG] Include PostGIS Support (ARG=yes/path to pg_config) --with-postgis[=ARG] Include PostGIS Support (ARG=yes/path to pg_config)
--with-mygis[=ARG] Include MyGIS Support (ARG=yes/path to my_config) --with-mysql[=ARG] Include Mysql Support (ARG=yes/path to my_config)
--with-oraclespatial[=ARG] Include OracleSpatial Support (ARG=yes/path to --with-oraclespatial[=ARG] Include OracleSpatial Support (ARG=yes/path to
Oracle home) Oracle home)
--with-ming[=DIR] Include MING/Flash Support (DIR=path to Ming
directory)
--without-wms Disable OGC WMS Compatibility (enabled by default). --without-wms Disable OGC WMS Compatibility (enabled by default).
--with-wfs Enable OGC WFS Server Support (OGR+PROJ4 required). --with-wfs Enable OGC WFS Server Support (OGR+PROJ4 required).
--with-wcs Enable OGC WCS Server Support (GDAL+PROJ4 required). --with-wcs Enable OGC WCS Server Support (GDAL+PROJ4 required).
--with-wmsclient Enable OGC WMS Client Connections (PROJ4 and libcurl --with-wmsclient Enable OGC WMS Client Connections (PROJ4, libcurl and
required). GDAL required).
--with-wfsclient Enable OGC WFS Client Connections (PROJ4, libcurl and --with-wfsclient Enable OGC WFS Client Connections (PROJ4, libcurl and
OGR required). OGR required).
--with-sos Enable OGC SOS Server Support (libxml2 and PROJ4 and --with-sos Enable OGC SOS Server Support (libxml2 and PROJ4 and
...@@ -165,7 +163,11 @@ GD and Support Libraries: ...@@ -165,7 +163,11 @@ GD and Support Libraries:
- The GD library is the only component that is not optional. - The GD library is the only component that is not optional.
Version 2.0.16 or more recent is required, and GD 2.0.35 or higher is Version 2.0.16 or more recent is required, and GD 2.0.35 or higher is
strongly recommended (see http://www.boutell.com/gd/ . strongly recommended.
- To get the GD source code: The official home of the GD library is
http://www.libgd.org/ and in case it is down a copy of recent GD releases
is provided as a convenience at http://download.osgeo.org/mapserver/libgd/
- Version 2.0.29 or more recent is required for the LABEL FOLLOW option - Version 2.0.29 or more recent is required for the LABEL FOLLOW option
to work (curved labels, added in 4.10). to work (curved labels, added in 4.10).
...@@ -414,15 +416,15 @@ PostGIS Support: ...@@ -414,15 +416,15 @@ PostGIS Support:
MyGIS (MySQL v3.xx SFSQL) Support: Mysql (MySQL v3.xx SFSQL) Support:
---------------------------------- ----------------------------------
:: ::
--with-mygis[=ARG] Include MyGIS Support (ARG=yes/path to my_config) --with-mysql[=ARG] Include Mysql Support (ARG=yes/path to my_config)
- MyGIS provides OGC SFSQL support using MySQl v3.xx. This option is - Mysql provides join support using MySQl v3.xx. This option is
disabled by default and can be enabled using the --with-mygis option. disabled by default and can be enabled using the --with-mysql option.
Oracle Spatial Support: Oracle Spatial Support:
----------------------- -----------------------
...@@ -444,47 +446,16 @@ Flash/SWF/Ming Output Support: ...@@ -444,47 +446,16 @@ Flash/SWF/Ming Output Support:
:: ::
--with-ming[=DIR] Include MING/Flash Support (DIR=path to Ming Flash support has been removed since MapServer 6.0 due to lack of support and/or
directory) funding. Get in touch with the mapserver team if this is something you wish to sponsor.
- Support for generating Flash output is enabled only if requested. Use
the --with-ming switch to request it if the ming libraries have been
installed in the default path. To use a local ming build also provide the
path to the ming build directory.
- The IMAGETYPE for Flash output is SWF.
More information on the MING library should be available at http://www.opaque.net/ming/
PDF output support: PDF output support:
------------------- -------------------
:: ::
--without-pdf Disable PDF support. PDF support has been transitionned to use the cairo rendering backend. Use --with-cairo
--with-pdf[=DIR] Include PDF support (DIR is PDFlib's install dir). to enable it.
- Support for PDF output using PDFLib (http://www.pdflib.com/)
is disabled by default and can be enabled using the --with-pdf option.
- If PDFLib is installed in the default system directories then using
--with-pdf with no argument should be enough. If not then pass the
full path to the PDFLib installation directory.
e.g.
./configure ..... --with-pdf=/usr/local
IMPORTANT NOTE: PDFLib comes bundled with and is built by default using
its own internal copy of libpng and zlib. The PDFLib internal copy of
those libpng and zlib are very likely of different versions from the
ones used by the GD library. Loading both versions could lead to
crashes or instability of your MapServer or MapScript installation.
For this reason you should make sure that your PDFLib is configured
using '--with-pnglib --with-zlib' which will force PDFLib to use the
system verison of libpng and zlib.
CAIRO Support: CAIRO Support:
-------------- --------------
...@@ -520,14 +491,14 @@ OGC WMS Client Support: ...@@ -520,14 +491,14 @@ OGC WMS Client Support:
:: ::
--with-wmsclient Enable OGC WMS Client Connections (PROJ4 and libcurl --with-wmsclient Enable OGC WMS Client Connections (PROJ4, libcurl and
required). GDAL required).
- This option enables MapServer's 'CONNECTIONTYPE WMS' to include layers - This option enables MapServer's 'CONNECTIONTYPE WMS' to include layers
from remote WMS servers in MapServer applications. from remote WMS servers in MapServer applications.
It requires PROJ4, libcurl (see --with-curl-config option below) and OGR. It requires PROJ4, libcurl (see --with-curl-config option below) and GDAL.
GDAL is optional but highly recommended in order to support GDAL is required in order to support reprojection of layers obtained from
reprojection of layers obtained from remote WMS servers. remote WMS servers.
- See the MapServer WMS Client HOWTO for more details at - See the MapServer WMS Client HOWTO for more details at
http://mapserver.gis.umn.edu/docs/howto/wms_client http://mapserver.gis.umn.edu/docs/howto/wms_client
...@@ -803,7 +774,7 @@ Java Mapscript Module: ...@@ -803,7 +774,7 @@ Java Mapscript Module:
http://trac.osgeo.org/mapserver/tickets/1209 http://trac.osgeo.org/mapserver/tickets/1209
---------------- ----------------
$Id: README.CONFIGURE 10306 2010-07-08 20:07:15Z dmorissette $ $Id: README.CONFIGURE 11680 2011-05-12 13:07:06Z dmorissette $
---------------- ----------------
......
File mode changed from 100755 to 100644
This diff is collapsed.
/****************************************************************************** /******************************************************************************
* $Id: cgiutil.h 7998 2008-10-23 03:35:48Z sdlime $ * $Id: cgiutil.h 10645 2010-10-22 20:42:59Z aboudreault $
* *
* Project: MapServer * Project: MapServer
* Purpose: cgiRequestObj and CGI parsing utility related declarations. * Purpose: cgiRequestObj and CGI parsing utility related declarations.
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#ifndef CGIUTIL_H #ifndef CGIUTIL_H
#define CGIUTIL_H #define CGIUTIL_H
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
# define MS_DLL_EXPORT __declspec(dllexport) # define MS_DLL_EXPORT __declspec(dllexport)
#else #else
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
/* /*
** Misc. defines ** Misc. defines
*/ */
#define MS_MAX_CGI_PARAMS 100 #define MS_DEFAULT_CGI_PARAMS 100
enum MS_REQUEST_TYPE {MS_GET_REQUEST, MS_POST_REQUEST}; enum MS_REQUEST_TYPE {MS_GET_REQUEST, MS_POST_REQUEST};
...@@ -74,7 +75,8 @@ typedef struct ...@@ -74,7 +75,8 @@ typedef struct
** Function prototypes ** Function prototypes
*/ */
#ifndef SWIG #ifndef SWIG
MS_DLL_EXPORT int loadParams(cgiRequestObj *); MS_DLL_EXPORT int loadParams(cgiRequestObj *request, char* (*getenv2)(const char*, void* thread_context),
char *raw_post_data, ms_uint32 raw_post_data_length, void* thread_context);
MS_DLL_EXPORT void getword(char *, char *, char); MS_DLL_EXPORT void getword(char *, char *, char);
MS_DLL_EXPORT char *makeword_skip(char *, char, char); MS_DLL_EXPORT char *makeword_skip(char *, char, char);
MS_DLL_EXPORT char *makeword(char *, char); MS_DLL_EXPORT char *makeword(char *, char);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/****************************************************************************** /******************************************************************************
* $Id: layerobject.c 7349 2008-02-06 17:11:09Z nsavard $ * $Id: layerobject.c 11373 2011-03-29 23:37:29Z dmorissette $
* *
* Project: MapServer * Project: MapServer
* Purpose: Functions for operating on a layerObj that don't belong in a * Purpose: Functions for operating on a layerObj that don't belong in a
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
# include "cpl_conv.h" # include "cpl_conv.h"
#endif #endif
MS_CVSID("$Id: layerobject.c 7349 2008-02-06 17:11:09Z nsavard $") MS_CVSID("$Id: layerobject.c 11373 2011-03-29 23:37:29Z dmorissette $")
/* =========================================================================== /* ===========================================================================
msInsertClass msInsertClass
......
/****************************************************************************** /******************************************************************************
* $Id: legend.c 7350 2008-02-06 17:12:10Z nsavard $ * $Id: legend.c 11372 2011-03-29 23:34:57Z dmorissette $
* *
* Project: MapServer * Project: MapServer
* Purpose: Mainline of commandline legend generation test utility. * Purpose: Mainline of commandline legend generation test utility.
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "mapserver.h" #include "mapserver.h"
MS_CVSID("$Id: legend.c 7350 2008-02-06 17:12:10Z nsavard $") MS_CVSID("$Id: legend.c 11372 2011-03-29 23:34:57Z dmorissette $")
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
......
This diff is collapsed.
/****************************************************************************** /******************************************************************************
* $Id: mapagg.h 8984 2009-05-01 07:06:05Z tbonfort $ * $Id: mapagg.h 10743 2010-11-19 17:05:38Z tbonfort $
* *
* Project: MapServer * Project: MapServer
* Purpose: AGG template library types. * Purpose: AGG template library types.
...@@ -27,126 +27,8 @@ ...@@ -27,126 +27,8 @@
* DEALINGS IN THE SOFTWARE. * DEALINGS IN THE SOFTWARE.
******************************************************************************/ ******************************************************************************/
#include "renderers/agg/include/agg_array.h"
#include "renderers/agg/include/agg_rendering_buffer.h" #include "renderers/agg/include/agg_rendering_buffer.h"
template<class T> class mapserv_row_ptr_cache
{
public:
typedef mapserver::const_row_info<T> row_data;
mapserv_row_ptr_cache() :
m_buf(0),
m_rows(),
m_width(0),
m_height(0),
m_stride(0)
{
}
mapserv_row_ptr_cache( const gdImagePtr pImg ) :
m_buf(0),
m_rows(),
m_width(0),
m_height(0),
m_stride(0)
{
attach( pImg->tpixels, pImg->sx, pImg->sy, pImg->sx * sizeof( T ) );
}
void attach( T **ppRows, unsigned width, unsigned height, int stride )
{
m_width = width;
m_height = height;
m_stride = stride;
if( height > m_rows.size() )
m_rows.resize( height );
T** rows = &m_rows[0];
int iRowIndex = 0;
while( height--)
{
*rows = ppRows[iRowIndex];
rows++;
iRowIndex++;
}
}
/*-------------------------------------------------------------------*/
AGG_INLINE T* buf() { return m_buf; }
AGG_INLINE const T* buf() const { return m_buf; }
AGG_INLINE unsigned width() const { return m_width; }
AGG_INLINE unsigned height() const { return m_height; }
AGG_INLINE int stride() const { return m_stride; }
AGG_INLINE unsigned stride_abs() const
{
return (m_stride < 0) ? unsigned(-m_stride) : unsigned(m_stride);
}
/*-------------------------------------------------------------------*/
AGG_INLINE T* row_ptr(int, int y, unsigned)
{
return m_rows[y];
}
AGG_INLINE T* row_ptr(int y) { return m_rows[y]; }
AGG_INLINE const T* row_ptr(int y) const { return m_rows[y]; }
AGG_INLINE row_data row (int y) const
{
return row_data(0, m_width-1, m_rows[y]);
}
/*-------------------------------------------------------------------*/
T const* const* rows() const { return &m_rows[0]; }
/*-------------------------------------------------------------------*/
template<class RenBuf>
void copy_from(const RenBuf& src)
{
unsigned h = height();
if(src.height() < h) h = src.height();
unsigned l = stride_abs();
if(src.stride_abs() < l) l = src.stride_abs();
l *= sizeof(T);
unsigned y;
unsigned w = width();
for (y = 0; y < h; y++)
{
memcpy(row_ptr(0, y, w), src.row_ptr(y), l);
}
}
/*-------------------------------------------------------------------*/
void clear(T value)
{
unsigned y;
unsigned w = width();
unsigned stride = stride_abs();
for(y = 0; y < height(); y++)
{
T* p = row_ptr(0, y, w);
unsigned x;
for(x = 0; x < stride; x++)
{
*p++ = value;
}
}
}
private:
/*-------------------------------------------------------------------*/
T* m_buf; /* Pointer to rendering buffer */
mapserver::pod_array<T*> m_rows; /* Pointers to each row of the buffer */
unsigned m_width; /* Width in pixels */
unsigned m_height; /* Height in pixels */
int m_stride; /* Number of bytes per row. Can be < 0 */
};
/* /*
* interface to a shapeObj representing lines, providing the functions * interface to a shapeObj representing lines, providing the functions
* needed by the agg rasterizer. treats shapeObjs with multiple linestrings. * needed by the agg rasterizer. treats shapeObjs with multiple linestrings.
......
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
INFILE="./mapaxisorder.csv"
OUTFILE="./mapaxisorder.h"
# create array of elements from $INFILE
unset ARRAY i
while read -r LINE; do ARRAY[i++]=$LINE; done < $INFILE
print_header ()
{
echo '/******************************************************************************'
echo ' * $Id: $'
echo ' *'
echo ' * Project: MapServer'
echo ' * Purpose: Axis lookup table'
echo ' *'
echo ' ******************************************************************************'
echo ' * Copyright (c) 1996-2005 Regents of the University of Minnesota.'
echo ' *'
echo ' * Permission is hereby granted, free of charge, to any person obtaining a'
echo ' * copy of this software and associated documentation files (the "Software"),'
echo ' * to deal in the Software without restriction, including without limitation'
echo ' * the rights to use, copy, modify, merge, publish, distribute, sublicense,'
echo ' * and/or sell copies of the Software, and to permit persons to whom the'
echo ' * Software is furnished to do so, subject to the following conditions:'
echo ' *'
echo ' * The above copyright notice and this permission notice shall be included in '
echo ' * all copies of this Software or works derived from this Software.'
echo ' *'
echo ' * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS'
echo ' * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,'
echo ' * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL'
echo ' * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER'
echo ' * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING'
echo ' * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER'
echo ' * DEALINGS IN THE SOFTWARE.'
echo ' ****************************************************************************/'
}
print_comment ()
{
echo ' '
echo '/*'
echo ' * Generated file'
echo ' *'
echo ' * This file was generated from by means of a script. Do not edit manually.'
echo ' */'
echo ' '
}
print_body ()
{
echo '#ifdef __cplusplus'
echo 'extern "C" '{
echo '#endif'
echo ' '
echo 'static struct axisOrientationEpsgCodes_s {'
echo ' int code;'
echo '} axisOrientationEpsgCodes[] = {'
# unset first array element
unset ARRAY[0]
# traverse array and print out elements