[mapserver-users] Support to KMZ in Mapserver
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/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Support to KMZ in Mapserver
On 2/17/2014, 6:09 AM, Juanma M. R. wrote: 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? I follow this page: http://trac.osgeo.org/gdal/wiki/LibKML -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Support to KMZ in Mapserver
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...@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 herehttp://www.gdal.org/ogr/drv_libkml.htmland 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/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] RESOLVED php mapscript setFilter and signal Segmentation fault (11)
Hello All. Apparently the mix of distros caused the segfault error. I installed Mapscript from openSuse repository instead Mapserver from official site. Пятница, 14 февраля 2014, 14:33 +04:00 от Vladimir f...@inbox.ru: Hello dear developers. Please could you give some direction for decision segfault problem. I tried execute php-script only without mapfile: $map=ms_newMapObjFromString(MAP NAME \WMSRoadrs\ STATUS ON CONFIG \PROJ_LIB\ \/usr/lib/proj/\ END); $map-setMetaData(wms_title,Roadrs); $map-setMetaData(wms_onlineresource, http://localhost/msscript.php ); $map-setMetaData(wms_srs,EPSG:3857); $map-setMetaData(wms_enable_request,*); $map-setMetaData(wms_encoding,utf-8); ... and result of first call $map-setMetaData is ignal Segmentation fault (11) immediately as in my post above Configuration: openSuse 13.1 Mapserver 6.4.1 php 5.4.3 Many Thanks. Четверг, 13 февраля 2014, 15:08 +04:00 от Vladimir f...@inbox.ru: Hello All. Please help me to understand what's wrong. php mapscript version 6.4.1 request url: localhost/script.php?LAYERS=roadsSRS=EPSG%3A3857SERVICE=WMSVERSION=1.1.1REQUEST=GetMapFORMAT=image%2FpngBBOX=8562963.8568664,5347815.0968664,8567741.1711336,5352592.4111336WIDTH=500HEIGHT=500 works in mapfile.map: FILTER (id in (386,400)) but does not work in script.php: $roadsLayer-setFilter(id in (386,400)); at that no other errors except the string in apache log: [Thu Feb 13 16:03:33.931054 2014] [core:notice] [pid 716] AH00052: child pid 2626 exit signal Segmentation fault (11) mapfile.map: --- MAP NAME WMSRoadrs CONFIG PROJ_LIB /usr/lib/proj/ STATUS ON WEB METADATA wms_title Roadrs wms_abstract Roadrs wms_onlineresource http://localhost/msscr/script.php wms_srs EPSG:3857 wms_enable_request * wms_encoding utf-8 END # end METADATA END # end WEB PROJECTION init=epsg:3857 END # end PROJECTION LAYER NAME roads STATUS ON CONNECTIONTYPE postgis CONNECTION user=user password=1 dbname=db host=localhost DATA coor from tab using unique id using srid=3857 FILTER (id in (386,400))#---works TYPE LINE CLASS NAME дороги STYLE COLOR 255 255 255 WIDTH 10 OUTLINECOLOR 0 0 255 OUTLINEWIDTH 1 END # end STYLE END # end CLASS PROJECTION init=epsg:3857 END # end PROJECTION METADATA wms_title Demo1 wms_abstract Roads Demo1 wms_srs EPSG:3857 wms_include_items all END # end METADATA END # end LAYER END # end MAP --- script.php: ini_set('display_errors', E_ALL); error_reporting(E_ALL); $request = ms_newOwsrequestObj(); if(!empty($_GET)){ foreach ($_GET as $key = $value) { $request-setparameter($key, $value); } } ms_ioinstallstdouttobuffer(); $map = ms_newMapobj(mapfile.map); $roadsLayer = $map-getLayerByName(roads); $roadsLayer-setFilter(id in (386,400));//---does not work $map-owsDispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); header('Content-type:'.$contenttype); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); -- Thanks ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Владимир -- Владимир ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users