[mapserver-users] Support to KMZ in Mapserver

Juanma M. R. juanma.mr at gmail.com
Mon Feb 17 07:34:34 PST 2014


Hi again,

Finally I got the KML support working in gdal 1.10 and so I am trying now
to compile mapserver against it to get the KMZ support. I am trying to
compile 6.0.2 version but still there are problems with GDAL. After
compiling GDAL I configure Mapserver with the following parameters:

sudo ./configure --with-proj --with-geos=/usr/local/bin/geos-config
--with-ogr=/usr/local/bin/gdal-config
--with-postgis=/usr/local/pgsql/bin/pg_config
--with-curl-config=/usr/bin/curl-config
--with-httpd=/usr/local/apache2/bin/httpd
--with-php=/usr/local/php-5.2.2 --enable-point-z-m
--with-png=/usr/local/include/libpng16/
--with-libiconv-dir=/usr/local/libiconv-1.12 --with-gd --with-jpeg
--with-tiff --with-xpm --with-wfs --with-wcs --with-wmsclient
--with-wfsclient  --with-gdal=/usr/src/gdal-1.10.1/apps/gdal-config
--with-kml

It starts compiling but when compiling the shp2img tool it throws the
following error:


sudo make

g++ -O2 -fPIC -Wall  -DNDEBUG   -DUSE_POINT_Z_M -DHAVE_VSNPRINTF
-DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR    -DUSE_POINT_Z_M
-DUSE_WMS_LYR -DUSE_WFS_LYR  -DUSE_LIBXML2 -DUSE_CURL
-DUSE_CURLOPT_PROXYAUTH -DUSE_KML -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR
  -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR
-DUSE_GEOS   -DUSE_PROJ -DUSE_AGG_SVG_SYMBOLS    -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS
-DGD_HAS_GET_TRUE_COLOR_PIXEL -DUSE_ICONV -DUSE_GIF -DUSE_PNG
 -DUSE_FREETYPE   -DDISABLE_CVSID -I/usr/include/freetype2
 -I/usr/local/include/libpng16/   -I/usr/include -Irenderers/agg/include
    -I/usr/src/gdal-1.10.1/port -I/usr/src/gdal-1.10.1/gcore
-I/usr/src/gdal-1.10.1/alg -I/usr/src/gdal-1.10.1/ogr
-I/usr/src/gdal-1.10.1/ogr/ogrsf_frmts -I/usr/src/gdal-1.10.1/frmts/vrt
-I/usr/local/pgsql/include    -I/usr/local/include
 -I/usr/include/libxml2   shp2img.o  -L. -lmapserver -lfreetype -lgd
-L/usr/lib64 -lgd -ljpeg -lfreetype -L/usr/local/include/libpng16/ -lpng
-L/lib64 -lz -lXpm -lX11  -lexpat   -lproj -ljpeg
-L/usr/local/include/libpng16/ -lpng -lgif
/usr/src/gdal-1.10.1/libgdal.la-L/usr/local/pgsql/lib -lpq
-L/usr/kerberos/lib64 -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
 -L/usr/local/lib -lgeos_c  -liconv    -L/lib64 -lz -lxml2 -lz -lm  -lm
-lstdc++    -o shp2img

/usr/src/gdal-1.10.1/libgdal.la: file not recognized: File format not
recognized

collect2: ld devolvió el estado de salida 1

make: *** [shp2img] Error 1

I have checked that the gdal binaries are from a make after a make clean
(to avoid corruption) but it did not sort out the problem. Could anyone
give a key for solving this problem?

Cheers,

Juan Manuel Moreno Rivera.

Sección de Teledetección y SIG / Remote Sensing & GIS group

Instituto de Desarrollo Regional / Institute for Regional Development

Universidad de Castilla-La Mancha / University of Castilla-La Mancha

Tlf: +34 967599200 (Ext: 2623)
http://www.teledeteccionysig.es/


2014-02-17 11:09 GMT+01:00 Juanma M. R. <juanma.mr at gmail.com>:

> Dear list,
>
> I am trying to compile mapserver with KMZ support.
>
> I have tried with both, mapserver 6.02 and Mapserver 6.4. The main problem
> is:
>
> * How should I add support to KMZ in Mapserver? I have tried compiling
> from trunk libkml (as explain here<http://www.gdal.org/ogr/drv_libkml.html>and
> here <https://code.google.com/p/libkml/wiki/UserGuide01x>) but I didn't
> manage to do it. Is this the correct way or is there a more simplified
> method?
>
> Cheers,
> Juan Manuel Moreno Rivera.
>
> Sección de Teledetección y SIG / Remote Sensing & GIS group
>
> Instituto de Desarrollo Regional / Institute for Regional Development
>
> Universidad de Castilla-La Mancha / University of Castilla-La Mancha
>
> Tlf: +34 967599200 (Ext: 2623)
> http://www.teledeteccionysig.es/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140217/be273b8e/attachment.htm>


More information about the MapServer-users mailing list