From l.chen.18 at abdn.ac.uk Fri Jan 1 15:35:20 2021 From: l.chen.18 at abdn.ac.uk (CHEN, LIRON (PGT)) Date: Fri, 1 Jan 2021 23:35:20 +0000 Subject: [mapserver-users] Question about importing xml/json data from api Message-ID: Hi and happy New Year! Im completely new to MapServer and not from a development background, but I hope its ok to ask for help here. Im a GIS postgraduate with some programming skill and Im trying to teach myself to set up a service that generates maps or layers when called on; but I want the service to generate them using the most recently published data from other web sources through their respective APIs. They mostly provide XML or JSON formatted spatial data. Ill inevitably need to read up and practice a lot and thats fine. But can anyone point me towards the apps or functionalities that will eventually allow me to do this? Just because Im comfortable with C++ I had a look if I could import with libcurl and parse with that to something mapserver could use but I think thats taking a very long way round.. any help appreciated. Kind regards, Liron Chen The University of Aberdeen is a charity registered in Scotland, No SC013683. Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. SC013683. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spoissantca at gmail.com Mon Jan 4 10:58:04 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Mon, 4 Jan 2021 13:58:04 -0500 Subject: [mapserver-users] mapserver 7.6.2 In-Reply-To: References: <24b8f05b-fc41-7d20-e038-723d42d6cb55@gatewaygeomatics.com> <3FAE3101-11A9-40F2-8FEB-8B9B0AF7C4A7@gmail.com> <57e47bc0-9313-5784-be7e-beeed3ccb90a@gatewaygeomatics.com> Message-ID: <514FC128-FD7D-47B2-AEE0-7E2B4904B47D@gmail.com> I have tried many things but cannot get to compile ma-server successfully. I rely on repository yum packages for everything but for geos (which I build manually). My Makefile (relevant part) CMAKEFLAGS= -DWITH_GEOS=1 \ -DCMAKE_SHARED_LINKER_FLAGS="-lgcov" -DWITH_CLIENT_WMS=1 \ -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DWITH_CSHARP=1 -DWITH_PHP=0 -DWITH_PERL=1 \ -DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 -DWITH_FCGI=0 -DWITH_EXEMPI=0 \ -DCMAKE_BUILD_TYPE=Release -DWITH_RSVG=0 -DWITH_CURL=1 -DWITH_HARFBUZZ=1 -DWITH_POINT_Z_M=1 -DWITH_MSSQL2008=OFF \ -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32/;/usr/lib64/? Packages installed from repo: - name: install postgresql pieces yum: pkg={{item}} state=latest with_items: - postgresql12 - postgresql12-devel - postgresql12-libs - proj72 - proj72-devel - postgis30_12 - postgis30_12-devel - mpfr - mpfr-devel - gmp - gmp-devel - gdal32 - gdal32-devel - gdal32-libs Whenever I launch the build process, I get a boost error: [ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 82%] Linking C executable shptreetst //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_oarchive_impl::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::basic_binary_oprimitive >::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_iarchive_impl::load(std::string&)' collect2: error: ld returned 1 exit status make[3]: *** [shptreetst] Error 1 make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build' make: *** [cmakebuild] Error 2 Any suggestions are welcomed! SP St?phane Poissant Portable: 514-793-3506 spoissantca at gmail.com > On Dec 31, 2020, at 10:40 AM, Steve Lime wrote: > > The original error looks like it was related to this: > > https://stackoverflow.com/questions/39700537/undefined-reference-to-boost-serialization-functions > > I think you do something like this (see https://stackoverflow.com/questions/25243336/specifying-libraries-for-cmake-to-link-to-from-command-line ): > > cmake ... CMAKE_C_STANDARD_LIRBARIES="-lboost_serialization" > > The new error looks to be related to multiple versions of GDAL installed. If you search on "AH01215: GDAL: In GDALDestroy - unloading GDAL shared library" you'll see that error referenced in a couple of forums, including mapserver-users. Do you have both a package and source-built GDAL? You might be better off uninstalling the source-built stuff. > > --Steve > > > On Wed, Dec 30, 2020 at 2:13 PM Jeff McKenna > wrote: > Hi Stephane, > > I'm not sure about your last issue. You could first execute 'sudo > ldconfig' so your last compiled libs are found, then try a shp2img > command with your mapfile. > > I have seen cases where there are conflicting library versions used by > either the GDAL or MapServer dependencies: test this with a 'ldd name> command. > > That's not a fun scenario, but, I've been there before ha. > > Sorry maybe others have better advice for this. > > -jeff > > > > -- > Jeff McKenna > GatewayGeo: MapServer Consulting and Training Services > co-founder of FOSS4G > http://gatewaygeo.com/ > > > > On 2020-12-30 1:36 p.m., Stephane Poissant wrote: > > HI Jeff, > > > > That was a partial success! Thank you for you recommendation! > > It compiled successfully by compiling gems and recompiling goal as you > > suggested. > > > > I still have 1 issue. > > > > While rendering stuff that use to work on previous version, it no longer > > works in this lates one. > > I get AH01215 error in http. > > > > AH01215: GDAL: In GDALDestroy - unloading GDAL shared library.: > > /var/www/html/map/mapserv.cgi, referer: http://utility.sk.com/ > > > > > > > I am not a developper. It is hard for me to describe where this issue > > can possibly come from. > > It does not render on screen the way it should be. > > > > I will turn back on perl, have ruby, python and php in the makefile as > > it could be related?. > > > > Nevertheless, I would like to thank you for your very quick response and > > "right on" target answers! > > > > SP > > > > > > St?phane Poissant > > Portable: 514-793-3506 > > spoissantca at gmail.com > > > > > > >> On Dec 30, 2020, at 10:14 AM, Jeff McKenna > >> >> > >> wrote: > >> > >> Also, after you compile GEOS be sure to recompile GDAL ('make clean' > >> first), then continue on to tackle your MapServer cmake command. > >> > >> Happy new year to all, > >> > >> -jeff > >> > >> > >> > >> -- > >> Jeff McKenna > >> GatewayGeo: MapServer Consulting and Training Services > >> co-founder of FOSS4G > >> http://gatewaygeo.com/ > > >> > >> > >> > >> On 2020-12-30 9:56 a.m., Jeff McKenna wrote: > >>> Hi Stephane, > >>> Be sure to compile GEOS (3.9.0 is recommended from > >>> http://download.osgeo.org/geos/geos-3.9.0.tar.bz2 ), and then add > >>> into your cmake command: -DWITH_GEOS=1 > >>> Wishing you a happy new year, > >>> -jeff > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.png Type: image/png Size: 9954 bytes Desc: not available URL: From traviskirstine at gmail.com Mon Jan 4 11:55:24 2021 From: traviskirstine at gmail.com (Travis Kirstine) Date: Mon, 4 Jan 2021 14:55:24 -0500 Subject: [mapserver-users] Question about importing xml/json data from api In-Reply-To: References: Message-ID: Liron, Since MapServer is built with GDAL / OGR you connect to most common formats without parsing, see https://www.mapserver.org/input/vector/ogr.html. However this does not include hand rolled JSON / XML, if possible retrieve GeoJSON or some other GDAL / OGR supported format from the API. You may want to go through an extra step(s) of converting the data to a format that supports spatial indexing (like shapefile or geopackage) if working with large datasets. Most of this can be done using a shell / batch scripting and command line tools (ogr2ogr and shptree). BTW ogr does support direct connection to some API - like an ESRI feature server which can make the conversion "easy", however not all OGR supported formats work with MapServer https://gdal.org/drivers/vector/index.html Regards On Fri, 1 Jan 2021 at 18:35, CHEN, LIRON (PGT) wrote: > Hi and happy New Year! > > Im completely new to MapServer and not from a development background, but > I hope its ok to ask for help here. Im a GIS postgraduate with some > programming skill and Im trying to teach myself to set up a service that > generates maps or layers when called on; but I want the service to generate > them using the most recently published data from other web sources through > their respective APIs. They mostly provide XML or JSON formatted spatial > data. > > Ill inevitably need to read up and practice a lot and thats fine. But can > anyone point me towards the apps or functionalities that will eventually > allow me to do this? Just because Im comfortable with C++ I had a look if I > could import with libcurl and parse with that to something mapserver could > use but I think thats taking a very long way round.. any help appreciated. > > Kind regards, > Liron Chen > > > The University of Aberdeen is a charity registered in Scotland, No > SC013683. > Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. > SC013683. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Mon Jan 4 22:46:21 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 5 Jan 2021 06:46:21 +0000 Subject: [mapserver-users] mapserver 7.6.2 In-Reply-To: <514FC128-FD7D-47B2-AEE0-7E2B4904B47D@gmail.com> References: <24b8f05b-fc41-7d20-e038-723d42d6cb55@gatewaygeomatics.com> <3FAE3101-11A9-40F2-8FEB-8B9B0AF7C4A7@gmail.com> <57e47bc0-9313-5784-be7e-beeed3ccb90a@gatewaygeomatics.com> <514FC128-FD7D-47B2-AEE0-7E2B4904B47D@gmail.com> Message-ID: <496e8b0464d5421aba9c7f8218b43b51@sid.sachsen.de> Hi Stephane, are you sure you installed boost-devel _and_ boost-serialization packages? While the first one gives "Headers and shared object symbolic links for the Boost C++ libraries." the second one contains "Run-Time support for serialization for persistence and marshaling." and contains the required libboost_serialization.so The -devel-package installed many boost components as dependencies but not all. HTH, Andreas -----Urspr?ngliche Nachricht----- Von: mapserver-users Im Auftrag von Stephane Poissant Gesendet: Montag, 4. Januar 2021 19:58 An: MapServer-users Betreff: Re: [mapserver-users] mapserver 7.6.2 I have tried many things but cannot get to compile ma-server successfully. I rely on repository yum packages for everything but for geos (which I build manually). My Makefile (relevant part) CMAKEFLAGS= -DWITH_GEOS=1 \ -DCMAKE_SHARED_LINKER_FLAGS="-lgcov" -DWITH_CLIENT_WMS=1 \ -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DWITH_CSHARP=1 -DWITH_PHP=0 -DWITH_PERL=1 \ -DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 -DWITH_FCGI=0 -DWITH_EXEMPI=0 \ -DCMAKE_BUILD_TYPE=Release -DWITH_RSVG=0 -DWITH_CURL=1 -DWITH_HARFBUZZ=1 -DWITH_POINT_Z_M=1 -DWITH_MSSQL2008=OFF \ -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12;/usr/gdal32/;/usr/lib64/? Packages installed from repo: - name: install postgresql pieces yum: pkg={{item}} state=latest with_items: - postgresql12 - postgresql12-devel - postgresql12-libs - proj72 - proj72-devel - postgis30_12 - postgis30_12-devel - mpfr - mpfr-devel - gmp - gmp-devel - gdal32 - gdal32-devel - gdal32-libs Whenever I launch the build process, I get a boost error: [ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 82%] Linking C executable shptreetst //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_oarchive_impl::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::basic_binary_oprimitive >::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_iarchive_impl::load(std::string&)' collect2: error: ld returned 1 exit status make[3]: *** [shptreetst] Error 1 make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build' make: *** [cmakebuild] Error 2 Any suggestions are welcomed! SP St?phane Poissant Portable: 514-793-3506 spoissantca at gmail.com On Dec 31, 2020, at 10:40 AM, Steve Lime > wrote: The original error looks like it was related to this: https://stackoverflow.com/questions/39700537/undefined-reference-to-boost-serialization-functions I think you do something like this (see https://stackoverflow.com/questions/25243336/specifying-libraries-for-cmake-to-link-to-from-command-line): cmake ... CMAKE_C_STANDARD_LIRBARIES="-lboost_serialization" The new error looks to be related to multiple versions of GDAL installed. If you search on "AH01215: GDAL: In GDALDestroy - unloading GDAL shared library" you'll see that error referenced in a couple of forums, including mapserver-users. Do you have both a package and source-built GDAL? You might be better off uninstalling the source-built stuff. --Steve On Wed, Dec 30, 2020 at 2:13 PM Jeff McKenna > wrote: Hi Stephane, I'm not sure about your last issue. You could first execute 'sudo ldconfig' so your last compiled libs are found, then try a shp2img command with your mapfile. I have seen cases where there are conflicting library versions used by either the GDAL or MapServer dependencies: test this with a 'ldd command. That's not a fun scenario, but, I've been there before ha. Sorry maybe others have better advice for this. -jeff -- Jeff McKenna GatewayGeo: MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ On 2020-12-30 1:36 p.m., Stephane Poissant wrote: > HI Jeff, > > That was a partial success! Thank you for you recommendation! > It compiled successfully by compiling gems and recompiling goal as you > suggested. > > I still have 1 issue. > > While rendering stuff that use to work on previous version, it no longer > works in this lates one. > I get AH01215 error in http. > > AH01215: GDAL: In GDALDestroy - unloading GDAL shared library.: > /var/www/html/map/mapserv.cgi, referer: http://utility.sk.com/ > > > I am not a developper. It is hard for me to describe where this issue > can possibly come from. > It does not render on screen the way it should be. > > I will turn back on perl, have ruby, python and php in the makefile as > it could be related?. > > Nevertheless, I would like to thank you for your very quick response and > "right on" target answers! > > SP > > > St?phane Poissant > Portable: 514-793-3506 > spoissantca at gmail.com > > > >> On Dec 30, 2020, at 10:14 AM, Jeff McKenna >> >> >> wrote: >> >> Also, after you compile GEOS be sure to recompile GDAL ('make clean' >> first), then continue on to tackle your MapServer cmake command. >> >> Happy new year to all, >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> GatewayGeo: MapServer Consulting and Training Services >> co-founder of FOSS4G >> http://gatewaygeo.com/ >> >> >> >> On 2020-12-30 9:56 a.m., Jeff McKenna wrote: >>> Hi Stephane, >>> Be sure to compile GEOS (3.9.0 is recommended from >>> http://download.osgeo.org/geos/geos-3.9.0.tar.bz2 ), and then add >>> into your cmake command: -DWITH_GEOS=1 >>> Wishing you a happy new year, >>> -jeff >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users From spoissantca at gmail.com Tue Jan 5 01:55:12 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Tue, 5 Jan 2021 04:55:12 -0500 Subject: [mapserver-users] mapserver 7.6.2 In-Reply-To: <496e8b0464d5421aba9c7f8218b43b51@sid.sachsen.de> References: <24b8f05b-fc41-7d20-e038-723d42d6cb55@gatewaygeomatics.com> <3FAE3101-11A9-40F2-8FEB-8B9B0AF7C4A7@gmail.com> <57e47bc0-9313-5784-be7e-beeed3ccb90a@gatewaygeomatics.com> <514FC128-FD7D-47B2-AEE0-7E2B4904B47D@gmail.com> <496e8b0464d5421aba9c7f8218b43b51@sid.sachsen.de> Message-ID: <647EADDE-7D54-429C-8DEE-8407282A4F1C@gmail.com> Good day Andreas, Thank you for your suggestion. Indeed, they are both installed. Both versions 1.53 & 1.75 SFCGAL is installed from yum repo with version 1.3.1. Based on the log below, SFCGAL (from repo) is linked / compiled with the installed yum repository rpms boost version 1.53: [root at mapserver-0290 mapserver-7.6.2]# ldd /usr/lib64/libSFCGAL.so.1 linux-vdso.so.1 (0x00007ffd9958b000) libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007f00d4b15000) libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007f00d48dc000) libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007f00d467e000) libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007f00d4406000) libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007f00d41f5000) libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007f00d3fd3000) libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007f00d3dcf000) libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007f00d3b61000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f00d37df000) libm.so.6 => /usr/lib64/libm.so.6 (0x00007f00d349f000) libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f00d3289000) libc.so.6 => /usr/lib64/libc.so.6 (0x00007f00d2ede000) /lib64/ld-linux-x86-64.so.2 (0x00007f00d5800000) librt.so.1 => /usr/lib64/librt.so.1 (0x00007f00d2cd6000) libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f00d2ab8000) I tried compiling it separately but it ends up having issues as well: SFCGAL compilation? Make (stops at 26%...) ///snip/// [ 26%] Building CXX object src/CMakeFiles/SFCGAL.dir/algorithm/Intersection3D.cpp.o In file included from /usr/local/include/CGAL/Polygon_mesh_processing/self_intersections.h:45:0, from /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:55, from /root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:24: /opt/boost/include/boost/function_output_iterator.hpp:14:72: note: #pragma message: This header is deprecated. Use instead. BOOST_HEADER_DEPRECATED("") ^ In file included from /root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:24:0: /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h: In member function ?bool CGAL::Intersection_of_Polyhedra_3::Map_edge_facet_bbox_intersection_extract_coplanar_filter_self_intersections::self_intersections_found()?: /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1063:19: error: ?Intersect_facets? is not a member of ?CGAL::internal? internal::Intersect_facets? token PolyhedronPointPMap> ^ /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1068:70: error: ?intersect_facets? was not declared in this scope CGAL::box_self_intersection_d(box_ptr.begin(), box_ptr.end(),intersect_facets,cutoff); ^~~~~~~~~~~~~~~~ /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1068:70: note: suggested alternative: ?Project_facet? CGAL::box_self_intersection_d(box_ptr.begin(), box_ptr.end(),intersect_facets,cutoff); ^~~~~~~~~~~~~~~~ Project_facet /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3.h:1071:41: error: ?Throw_at_output_exception? in ?struct CGAL::internal::Throw_at_output? does not name a type catch( internal::Throw_at_output::Throw_at_output_exception& ) ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:25:0: /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h: At global scope: /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h:340:79: warning: ?No_intersection_tag? is deprecated [-Wdeprecated-declarations] typedef CGAL::Constrained_Delaunay_triangulation_2 CDT; //DO WE NEED DELAUNAY???? ^~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/CGAL/Constrained_Delaunay_triangulation_2.h:20:0, from /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/intersection_of_Polyhedra_3_refinement_visitor.h:31, from /root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:25: /usr/local/include/CGAL/Constrained_triangulation_2.h:48:24: note: declared here struct CGAL_DEPRECATED No_intersection_tag : ^~~~~~~~~~~~~~~~~~~ In file included from /usr/local/include/CGAL/AABB_traits.h:29:0, from /usr/local/include/CGAL/Side_of_triangle_mesh.h:26, from /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/internal/corefinement/Combinatorial_map_output_builder.h:32, from /root/inst/SFCGAL-v1.3.8/src/../CGAL_patches/CGAL/corefinement_operations.h:30, from /root/inst/SFCGAL-v1.3.8/src/algorithm/Intersection3D.cpp:26: /opt/boost/include/boost/bind.hpp:41:1: note: #pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. ) ^ make[2]: *** [src/CMakeFiles/SFCGAL.dir/algorithm/Intersection3D.cpp.o] Error 1 make[1]: *** [src/CMakeFiles/SFCGAL.dir/all] Error 2 make: *** [all] Error 2 SP -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue Jan 5 02:41:40 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Tue, 5 Jan 2021 10:41:40 +0000 Subject: [mapserver-users] mapserver 7.6.2 In-Reply-To: <2C57F27B-53FD-426E-9A4E-29A40B6F13B7@gmail.com> References: <24b8f05b-fc41-7d20-e038-723d42d6cb55@gatewaygeomatics.com> <3FAE3101-11A9-40F2-8FEB-8B9B0AF7C4A7@gmail.com> <57e47bc0-9313-5784-be7e-beeed3ccb90a@gatewaygeomatics.com> <514FC128-FD7D-47B2-AEE0-7E2B4904B47D@gmail.com> <496e8b0464d5421aba9c7f8218b43b51@sid.sachsen.de> <2C57F27B-53FD-426E-9A4E-29A40B6F13B7@gmail.com> Message-ID: <925d959b61d74f03a85b80f4674e7bc1@sid.sachsen.de> You're using CGAL 5.1.2 which might be unsuitable. The SFCGAL v1.3.8 looks an ancient version. So I'd suggest to either retry with an older CGAL v4.x or a newer SFCGAL. At least v1.3.9 contains a "Fix with CGAL 5.1". See https://gitlab.com/Oslandia/SFCGAL/-/releases/v1.3.9 -----Urspr?ngliche Nachricht----- Von: Stephane Poissant Gesendet: Dienstag, 5. Januar 2021 10:53 An: MapServer-users Cc: Eichner, Andreas - SID Betreff: Re: [mapserver-users] mapserver 7.6.2 I tried compiling it separately but it ends up having issues as well: [root at mapserver-0290 SFCGAL-v1.3.8]# cmake -DCMAKE_BUILD_TYPE=Release . -- CGAL 5.1.2 found ... -- Build files have been written to: /root/inst/SFCGAL-v1.3.8 From aperi2007 at gmail.com Tue Jan 5 05:26:43 2021 From: aperi2007 at gmail.com (Andrea Peri) Date: Tue, 5 Jan 2021 14:26:43 +0100 Subject: [mapserver-users] How set Ntv2 using Proj7 Message-ID: Hi, I need to configure the use of a set of NTv2 for the SRS changes when mapserver return maps in differences SRS. But I dont't find any reference to the use of NTv2 in the Mapserver docs. Is availabe in mapserver the choice to configure the use of NTv2 ? I'm using the last Proj7 Thx. -- ----------------- Andrea Peri . . . . . . . . . qwerty ????? ----------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From spoissantca at gmail.com Tue Jan 5 13:31:13 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Tue, 5 Jan 2021 16:31:13 -0500 Subject: [mapserver-users] Mapserver 7.6.2 Message-ID: Boost 1.75 (compiled) success CGAL-4.14 (compiled) success Gets-3.9.0 (compiled) success SFCGAL-1.3.9 (compiled) success From repo: gdal32-devel.x86_64 3.2.0-3.rhel7 @pgdg-common postgis30_12-devel.x86_64 3.0.3-3.rhel7 @pgdg12 postgresql12-devel.x86_64 12.5-1PGDG.rhel7 @pgdg12 proj72-devel.x86_64 7.2.0-3.rhel7 @pgdg-common [root at mapserver-0290 SFCGAL-v1.3.9]# ls -al /usr/lib64/libSFCGAL* lrwxrwxrwx 1 root root 14 Jan 5 12:45 /usr/lib64/libSFCGAL.so -> libSFCGAL.so.1 lrwxrwxrwx 1 root root 18 Jan 5 19:55 /usr/lib64/libSFCGAL.so.1 -> libSFCGAL.so.1.3.9 -rwxr-xr-x 1 root root 13543200 Jan 5 19:55 /usr/lib64/libSFCGAL.so.1.3.9 Mapserver 7.6.2 (unable to fully compile) //snip// [ 79%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o [ 80%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o [ 81%] Linking CXX shared library libmapserver.so make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' [ 81%] Built target mapserver make[3]: Entering directory `/root/inst/mapserver-7.6.2/build' Scanning dependencies of target shptreetst make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[3]: Entering directory `/root/inst/mapserver-7.6.2/build' [ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 82%] Linking C executable shptreetst //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status make[3]: *** [shptreetst] Error 1 make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build' make: *** [cmakebuild] Error 2 I am uncertain what could cause this issue. Any suggestions? St?phane Poissant Portable: 514-793-3506 spoissantca at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-1.png Type: image/png Size: 9954 bytes Desc: not available URL: From Andreas.Eichner at sid.sachsen.de Tue Jan 5 22:54:37 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 6 Jan 2021 06:54:37 +0000 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: References: Message-ID: <01927348eda645839f0287a4715508d5@sid.sachsen.de> Good morning, //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status it seems that libboost_serialization is build against a different (newer) libstdc++ as is used during the MapServer build. I'd suggest to use the distribution provided boost libraries (v1.53) and the system's default compiler packages (wich includes libstdc++). HTH -----Urspr?ngliche Nachricht----- Von: Stephane Poissant Gesendet: Dienstag, 5. Januar 2021 22:31 An: mapServer-users Cc: Jeff McKenna ; Eichner, Andreas - SID Betreff: Mapserver 7.6.2 Boost 1.75 (compiled) success CGAL-4.14 (compiled) success Gets-3.9.0 (compiled) success SFCGAL-1.3.9 (compiled) success From repo: gdal32-devel.x86_64 3.2.0-3.rhel7 @pgdg-common postgis30_12-devel.x86_64 3.0.3-3.rhel7 @pgdg12 postgresql12-devel.x86_64 12.5-1PGDG.rhel7 @pgdg12 proj72-devel.x86_64 7.2.0-3.rhel7 @pgdg-common [root at mapserver-0290 SFCGAL-v1.3.9]# ls -al /usr/lib64/libSFCGAL* lrwxrwxrwx 1 root root 14 Jan 5 12:45 /usr/lib64/libSFCGAL.so -> libSFCGAL.so.1 lrwxrwxrwx 1 root root 18 Jan 5 19:55 /usr/lib64/libSFCGAL.so.1 -> libSFCGAL.so.1.3.9 -rwxr-xr-x 1 root root 13543200 Jan 5 19:55 /usr/lib64/libSFCGAL.so.1.3.9 Mapserver 7.6.2 (unable to fully compile) //snip// [ 79%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o [ 80%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o [ 81%] Linking CXX shared library libmapserver.so make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' [ 81%] Built target mapserver make[3]: Entering directory `/root/inst/mapserver-7.6.2/build' Scanning dependencies of target shptreetst make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[3]: Entering directory `/root/inst/mapserver-7.6.2/build' [ 82%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 82%] Linking C executable shptreetst //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status make[3]: *** [shptreetst] Error 1 make[3]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[2]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make[2]: Leaving directory `/root/inst/mapserver-7.6.2/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/inst/mapserver-7.6.2/build' make: *** [cmakebuild] Error 2 I am uncertain what could cause this issue. Any suggestions? St?phane Poissant Portable: 514-793-3506 spoissantca at gmail.com From joerg.thomsen at wheregroup.com Tue Jan 5 23:57:18 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 6 Jan 2021 08:57:18 +0100 Subject: [mapserver-users] How set Ntv2 using Proj7 In-Reply-To: References: Message-ID: Hello Andrea, I think you have to use the ntv2 file within the definition of the epsg. Wether with a direct link in the epsg file of your proj lib or you can use ist in the mapfile in the projection section. file epsg: <31467> +proj=tmerc +lat_0=0 +lon_0=9 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +nadgrids=/data/etrs89/BETA2007.gsb +no_defs <> Mapfile: PROJECTION "proj=tmerc" "ellp"=bessel" .... "nadgrids=/data/etrs89/BETA2007.gsb" END J?rg Am 05.01.21 um 14:26 schrieb Andrea Peri: > Hi, > I need to configure the use of a set of NTv2 for the SRS changes when > mapserver return maps in differences SRS. > But I dont't find any reference to the use of NTv2 in the Mapserver docs. > > Is availabe in mapserver the choice to configure the use of NTv2 ? > > I'm using the last Proj7 > > Thx. > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty ????? > ----------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From spoissantca at gmail.com Wed Jan 6 05:41:29 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Wed, 6 Jan 2021 08:41:29 -0500 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: <01927348eda645839f0287a4715508d5@sid.sachsen.de> References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> Message-ID: <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> I?ll give a try to 1.70 (compile) The reason is that I cannot use 1.53 as it does not compile for the previously mentioned error with boost. Even if I install (from repo) boost169) it installs almost everything but not de -devel has it breaks dependancies. So using 1.75 was my first test. I am now trying 1.70. Fingers crossed it will work. Would you have a specific version recommendation for the software stack? (Without compilation)? In any cases, I have to go with what I have in the repos available. I?ve been trying for quite sometime to find the right combination without success. Your input would be Helpful to me. Regards, SP St?phane Poissant spoissantca at gmail.com > On Jan 6, 2021, at 1:54 AM, Eichner, Andreas - SID wrote: > > Good morning, > > //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22' > collect2: error: ld returned 1 exit status > > it seems that libboost_serialization is build against a different (newer) libstdc++ as is used during the MapServer build. > I'd suggest to use the distribution provided boost libraries (v1.53) and the system's default compiler packages (wich includes libstdc++). > > HTH -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Jan 6 10:02:44 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Wed, 6 Jan 2021 18:02:44 +0000 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> Message-ID: <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> Hallo, I'm still not sure what you're trying to achieve. I took a freshly installed RHEL7 maschine and did a simple installation with basically all packages from the repos and MapServer compiles just fine. This is what I did: * enable the SCL, EPEL and the repo from postgresql.org: yum install -y https://ftp.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm cat < /etc/yum.repos.d/sclo-rh.repo # this is quick'n'dirty to use CentOS-SCLo on RHEL [sclo-rh] name=SCLo RH baseurl=http://mirror.centos.org/centos/7/sclo/x86_64/rh/ enabled=1 gpgcheck=0 EOF * grab cmake and MapServer from the web and unpack wget https://download.osgeo.org/mapserver/mapserver-7.6.2.tar.gz && tar xzf mapserver-7.6.2.tar.gz wget https://github.com/Kitware/CMake/releases/download/v3.19.2/cmake-3.19.2-Linux-x86_64.tar.gz && tar xzf cmake-3.19.2-Linux-x86_64.tar.gz export PATH=$(pwd)/cmake-3.19.2-Linux-x86_64/bin:$PATH * install additional build dependencies: yum install -y gcc-c++ proj72-devel gdal32-devel libxml2-devel libcurl-devel postgis31_12-devel geos39-devel cairo-devel harfbuzz-devel fribidi-devel libjpeg-turbo-devel postgresql12-devel * create and got into the build directory mkdir mapserver-7.6.2/build && cd mapserver-7.6.2/build * configure with cmake cmake -Wno-dev -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" -DWITH_GIF=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DCMAKE_BUILD_TYPE=Release .. * and build make You might try to reprocude this and start from that. HTH -----Urspr?ngliche Nachricht----- Von: Stephane Poissant Gesendet: Mittwoch, 6. Januar 2021 14:41 An: Eichner, Andreas - SID Cc: mapServer-users ; Jeff McKenna Betreff: Re: Mapserver 7.6.2 I?ll give a try to 1.70 (compile) The reason is that I cannot use 1.53 as it does not compile for the previously mentioned error with boost. Even if I install (from repo) boost169) it installs almost everything but not de -devel has it breaks dependancies. So using 1.75 was my first test. I am now trying 1.70. Fingers crossed it will work. Would you have a specific version recommendation for the software stack? (Without compilation)? In any cases, I have to go with what I have in the repos available. I?ve been trying for quite sometime to find the right combination without success. Your input would be Helpful to me. Regards, SP St?phane Poissant spoissantca at gmail.com On Jan 6, 2021, at 1:54 AM, Eichner, Andreas - SID > wrote: Good morning, //opt/boost/lib/libboost_serialization.so.1.75.0: undefined reference to `std::uncaught_exceptions()@GLIBCXX_3.4.22' collect2: error: ld returned 1 exit status it seems that libboost_serialization is build against a different (newer) libstdc++ as is used during the MapServer build. I'd suggest to use the distribution provided boost libraries (v1.53) and the system's default compiler packages (wich includes libstdc++). HTH From spoissantca at gmail.com Wed Jan 6 15:12:49 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Wed, 6 Jan 2021 18:12:49 -0500 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> Message-ID: <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> Hi Andreas, Big thanks for your suggestion. I am just trying to build mapserver? Nothing else! ...But I can?t make it happen! No matter what I try, I end up with the same error pushing me in the same loop over and over again? (rebuilding from scratch all components > which fails anyway) I followed your recipe and it did produce the same error as I have from beginning. I have this SFCGAL error complaining about boost. Then if I compile boost, I need to compile CGAL and SFCGAL, etc? Then I end up with a similar error from SFCGAL but one line error instead of three (if I recall). Difference: My linux is Amazon Linux 2 which is ?like? a CentOS 7. I installed all the packages successfully, used make 3.19, etc. (as you suggested), If you have other ideas, please let me know. I need to get this going by the end of this week (if possible). PS: All my errors so far are related to SFCGAL / Boost. Cmake works fine. It fails when I do ?make?. Could you tell me which boost version / packages you have installed? Once again, thank you very much. Well appreciated. SP [root at mapserver-0290 build]# yum list SFCGAL CGAL geos39-de* boost* Loaded plugins: extras_suggestions, langpacks, priorities, update-motd 270 packages excluded due to repository priority protections Installed Packages CGAL.x86_64 4.7-1.rhel7.1 @pgdg-common SFCGAL.x86_64 1.3.1-2.rhel7 @pgdg-common boost.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-atomic.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-chrono.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-context.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-date-time.x86_64 1.53.0-27.amzn2.0.3 installed boost-filesystem.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-graph.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-iostreams.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-locale.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-math.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-program-options.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-python.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-random.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-regex.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-serialization.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-signals.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-system.x86_64 1.53.0-27.amzn2.0.3 installed boost-test.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-thread.x86_64 1.53.0-27.amzn2.0.3 installed boost-timer.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-wave.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core geos39-devel.x86_64 3.9.0-1.rhel7 @pgdg-common //snip// [ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/point.cpp.o [ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/line.cpp.o [ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o [ 85%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o [ 86%] Linking CXX shared library libmapserver.so [ 86%] Built target mapserver Scanning dependencies of target shptreetst [ 86%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 87%] Linking C executable shptreetst //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_oarchive_impl::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::basic_binary_oprimitive >::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_iarchive_impl::load(std::string&)' collect2: error: ld returned 1 exit status make[2]: *** [shptreetst] Error 1 make[1]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make: *** [all] Error 2 [root at mapserver-0290 build]# ldd /usr/lib64/libSFCGAL.so.1 linux-vdso.so.1 (0x00007ffcc8d82000) libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007fee26999000) libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007fee26760000) libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fee26502000) libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fee2628a000) libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007fee26079000) libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007fee25e57000) libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007fee25c53000) libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007fee259e5000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fee25663000) libm.so.6 => /usr/lib64/libm.so.6 (0x00007fee25323000) libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fee2510d000) libc.so.6 => /usr/lib64/libc.so.6 (0x00007fee24d62000) /lib64/ld-linux-x86-64.so.2 (0x00007fee27684000) librt.so.1 => /usr/lib64/librt.so.1 (0x00007fee24b5a000) libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fee2493c000) [root at mapserver-0290 build]# -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Jan 6 23:33:15 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Thu, 7 Jan 2021 07:33:15 +0000 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> Message-ID: <2fec706401724540a77242b5e47e6038@sid.sachsen.de> Good morning Stephane, to me it seems to be an issue with the amazon boost packages. This is what I have installed: # yum list installed SFCGAL CGAL geos* boost* Loaded plugins: enabled_repos_upload, package_upload, product-id, search- : disabled-repos, subscription-manager Installed Packages CGAL.x86_64 4.7-1.rhel7.1 @pgdg-common SFCGAL.x86_64 1.3.1-2.rhel7 @pgdg-common boost-date-time.x86_64 1.53.0-28.el7 @rhel-7-server-rpms boost-serialization.x86_64 1.53.0-28.el7 @rhel-7-server-rpms boost-system.x86_64 1.53.0-28.el7 @rhel-7-server-rpms boost-thread.x86_64 1.53.0-28.el7 @rhel-7-server-rpms geos39.x86_64 3.9.0-1.rhel7 @pgdg-common geos39-devel.x86_64 3.9.0-1.rhel7 @pgdg-common you might try to install the boost packages from CentOS over those from Amazon and cross fingers it causes no conflicts. I think it's worth a try. Regards, Andreas -----Urspr?ngliche Nachricht----- Von: Stephane Poissant Gesendet: Donnerstag, 7. Januar 2021 00:13 An: mapServer-users Cc: Jeff McKenna ; Eichner, Andreas - SID Betreff: Re: Mapserver 7.6.2 Hi Andreas, Big thanks for your suggestion. I am just trying to build mapserver? Nothing else! ...But I can?t make it happen! No matter what I try, I end up with the same error pushing me in the same loop over and over again? (rebuilding from scratch all components > which fails anyway) I followed your recipe and it did produce the same error as I have from beginning. I have this SFCGAL error complaining about boost. Then if I compile boost, I need to compile CGAL and SFCGAL, etc? Then I end up with a similar error from SFCGAL but one line error instead of three (if I recall). Difference: My linux is Amazon Linux 2 which is ?like? a CentOS 7. I installed all the packages successfully, used make 3.19, etc. (as you suggested), If you have other ideas, please let me know. I need to get this going by the end of this week (if possible). PS: All my errors so far are related to SFCGAL / Boost. Cmake works fine. It fails when I do ?make?. Could you tell me which boost version / packages you have installed? Once again, thank you very much. Well appreciated. SP [root at mapserver-0290 build]# yum list SFCGAL CGAL geos39-de* boost* Loaded plugins: extras_suggestions, langpacks, priorities, update-motd 270 packages excluded due to repository priority protections Installed Packages CGAL.x86_64 4.7-1.rhel7.1 @pgdg-common SFCGAL.x86_64 1.3.1-2.rhel7 @pgdg-common boost.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-atomic.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-chrono.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-context.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-date-time.x86_64 1.53.0-27.amzn2.0.3 installed boost-filesystem.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-graph.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-iostreams.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-locale.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-math.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-program-options.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-python.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-random.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-regex.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-serialization.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-signals.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-system.x86_64 1.53.0-27.amzn2.0.3 installed boost-test.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-thread.x86_64 1.53.0-27.amzn2.0.3 installed boost-timer.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core boost-wave.x86_64 1.53.0-27.amzn2.0.3 @amzn2-core geos39-devel.x86_64 3.9.0-1.rhel7 @pgdg-common //snip// [ 83%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/point.cpp.o [ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/line.cpp.o [ 84%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/shape.cpp.o [ 85%] Building CXX object CMakeFiles/mapserver.dir/mapscript/v8/v8_mapscript.cpp.o [ 86%] Linking CXX shared library libmapserver.so [ 86%] Built target mapserver Scanning dependencies of target shptreetst [ 86%] Building C object CMakeFiles/shptreetst.dir/shptreetst.c.o [ 87%] Linking C executable shptreetst //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_oarchive_impl::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::basic_binary_oprimitive >::save(std::string const&)' //usr/lib64/libSFCGAL.so.1: undefined reference to `boost::archive::text_iarchive_impl::load(std::string&)' collect2: error: ld returned 1 exit status make[2]: *** [shptreetst] Error 1 make[1]: *** [CMakeFiles/shptreetst.dir/all] Error 2 make: *** [all] Error 2 [root at mapserver-0290 build]# ldd /usr/lib64/libSFCGAL.so.1 linux-vdso.so.1 (0x00007ffcc8d82000) libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x00007fee26999000) libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x00007fee26760000) libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x00007fee26502000) libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x00007fee2628a000) libboost_date_time-mt.so.1.53.0 => /usr/lib64/libboost_date_time-mt.so.1.53.0 (0x00007fee26079000) libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 (0x00007fee25e57000) libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 (0x00007fee25c53000) libboost_serialization-mt.so.1.53.0 => /usr/lib64/libboost_serialization-mt.so.1.53.0 (0x00007fee259e5000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fee25663000) libm.so.6 => /usr/lib64/libm.so.6 (0x00007fee25323000) libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007fee2510d000) libc.so.6 => /usr/lib64/libc.so.6 (0x00007fee24d62000) /lib64/ld-linux-x86-64.so.2 (0x00007fee27684000) librt.so.1 => /usr/lib64/librt.so.1 (0x00007fee24b5a000) libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fee2493c000) [root at mapserver-0290 build]# From l.chen.18 at abdn.ac.uk Thu Jan 7 10:32:49 2021 From: l.chen.18 at abdn.ac.uk (CHEN, LIRON (PGT)) Date: Thu, 7 Jan 2021 18:32:49 +0000 Subject: [mapserver-users] mapserver-users Digest, Vol 156, Issue 3 In-Reply-To: References: Message-ID: Hi Travis, Thank you for your response! I can connect to different data types with OGR or XSLT for XML, however the problem is that the API only supplies in (non Geo-) JSON or an XML format mapserver doesnt like. Its the MetOffice datapoint; I am branching out to more sources but I will want to include them. Thats why Im looking for some way to convert them as an intermediate step. Ill dig deeper into OGR to see if it can connect to that API and maybe still get useable data from it. Regards, Liron ________________________________ From: mapserver-users on behalf of mapserver-users-request at lists.osgeo.org Sent: 04 January 2021 20:00 To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 156, Issue 3 CAUTION: External email. Ensure this message is from a trusted source before clicking links/attachments. If you are concerned forward this email to spam at abdn.ac.uk Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Question about importing xml/json data from api (Travis Kirstine) ---------------------------------------------------------------------- Message: 1 Date: Mon, 4 Jan 2021 14:55:24 -0500 From: Travis Kirstine To: "CHEN, LIRON (PGT)" Cc: "mapserver-users at lists.osgeo.org" Subject: Re: [mapserver-users] Question about importing xml/json data from api Message-ID: Content-Type: text/plain; charset="utf-8" Liron, Since MapServer is built with GDAL / OGR you connect to most common formats without parsing, see https://www.mapserver.org/input/vector/ogr.html. However this does not include hand rolled JSON / XML, if possible retrieve GeoJSON or some other GDAL / OGR supported format from the API. You may want to go through an extra step(s) of converting the data to a format that supports spatial indexing (like shapefile or geopackage) if working with large datasets. Most of this can be done using a shell / batch scripting and command line tools (ogr2ogr and shptree). BTW ogr does support direct connection to some API - like an ESRI feature server which can make the conversion "easy", however not all OGR supported formats work with MapServer https://gdal.org/drivers/vector/index.html Regards On Fri, 1 Jan 2021 at 18:35, CHEN, LIRON (PGT) wrote: > Hi and happy New Year! > > Im completely new to MapServer and not from a development background, but > I hope its ok to ask for help here. Im a GIS postgraduate with some > programming skill and Im trying to teach myself to set up a service that > generates maps or layers when called on; but I want the service to generate > them using the most recently published data from other web sources through > their respective APIs. They mostly provide XML or JSON formatted spatial > data. > > Ill inevitably need to read up and practice a lot and thats fine. But can > anyone point me towards the apps or functionalities that will eventually > allow me to do this? Just because Im comfortable with C++ I had a look if I > could import with libcurl and parse with that to something mapserver could > use but I think thats taking a very long way round.. any help appreciated. > > Kind regards, > Liron Chen > > > The University of Aberdeen is a charity registered in Scotland, No > SC013683. > Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. > SC013683. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Subject: Digest Footer _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ End of mapserver-users Digest, Vol 156, Issue 3 *********************************************** The University of Aberdeen is a charity registered in Scotland, No SC013683. Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. SC013683. -------------- next part -------------- An HTML attachment was scrubbed... URL: From spoissantca at gmail.com Thu Jan 7 11:39:53 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Thu, 7 Jan 2021 14:39:53 -0500 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: <2fec706401724540a77242b5e47e6038@sid.sachsen.de> References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> <2fec706401724540a77242b5e47e6038@sid.sachsen.de> Message-ID: <9E7517C1-7F60-445C-A5D8-714A92D48027@gmail.com> Good day Andreas, Your suggestion about replacing boost packages from AWS with CentOS ones worked. Good catch. I was able to finally compile and install all my requirements. Thumbs up! I had to download the whole list and install using rpm -ivh *.rpm. One more thing. I am able to render many tiles (images) but I have trouble with some others. I double checked for librairies to avoid having duplicates or many versions... But it does not seem to be the case. I am getting a bunch of the following in my apache logs: #### (Some data was replaced with xxxx on purpose for security reasons in the below log output) ### [cgi:error] [pid 2512] [client 10.2.10.155:60456] AH01215: GDAL: GDALOpen(PG:host=xxxxxxxx.com port=xxxx dbname=?xxxxxx' user=?xxxxx' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table=?xxxxxx' mode='2', this=0x125df80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://xxxxx.com/ [cgi:error] [pid 2509] [client 10.2.10.155:60451] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://xxxxx.com/ ?//snip//... AH01215: GDAL: In GDALDestroy - unloading GDAL shared library. ... What could cause that? Flags while doing cmake? (Python maybe) (I am using the below one): cmake -Wno-dev -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" -DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 -DWITH_FCGI=0 -DWITH_EXEMPI=0 -DWITH_GIF=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DCMAKE_BUILD_TYPE=Release .. ? St?phane -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu Jan 7 22:24:19 2021 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID) Date: Fri, 8 Jan 2021 06:24:19 +0000 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: <9E7517C1-7F60-445C-A5D8-714A92D48027@gmail.com> References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> <2fec706401724540a77242b5e47e6038@sid.sachsen.de> <9E7517C1-7F60-445C-A5D8-714A92D48027@gmail.com> Message-ID: Hallo St?phane, glad to hear it works. The problem with this is how to keep those packags up to date. As long as this list is relatively static you might be able to use a script to synchronize them to a local directory, create the metadata and use this local repository with yum-priorities to favour those packages. The messages in to Apache httpd-log don't log like errors. AFAIK those a just normal message. CGI doesn't define a way to categorize messages so debug, info, err are all going the to same stderr channel. The CGI-Module simply logs everything as class "error". It should be possible to redirect those MapServer messages to a separate file using mapfile-directives (see https://mapserver.org/optimization/debugging.html) Regards, Andreas -----Urspr?ngliche Nachricht----- Von: Stephane Poissant Gesendet: Donnerstag, 7. Januar 2021 20:40 An: mapServer-users Cc: Jeff McKenna ; Eichner, Andreas - SID Betreff: Re: Mapserver 7.6.2 Good day Andreas, Your suggestion about replacing boost packages from AWS with CentOS ones worked. Good catch. I was able to finally compile and install all my requirements. Thumbs up! I had to download the whole list and install using rpm -ivh *.rpm. One more thing. I am able to render many tiles (images) but I have trouble with some others. I double checked for librairies to avoid having duplicates or many versions... But it does not seem to be the case. I am getting a bunch of the following in my apache logs: #### (Some data was replaced with xxxx on purpose for security reasons in the below log output) ### [cgi:error] [pid 2512] [client 10.2.10.155:60456] AH01215: GDAL: GDALOpen(PG:host=xxxxxxxx.com port=xxxx dbname=?xxxxxx' user=?xxxxx' password=XXXXXXXXXXXXXXXXXXXXXX schema='public' table=?xxxxxx' mode='2', this=0x125df80) succeeds as PostGISRaster.: /var/www/html/map/mapserv.cgi, referer: http://xxxxx.com/ [cgi:error] [pid 2509] [client 10.2.10.155:60451] AH01215: GDAL: GDAL_CACHEMAX = 388 MB: /var/www/html/map/mapserv.cgi, referer: http://xxxxx.com/ ?//snip//... AH01215: GDAL: In GDALDestroy - unloading GDAL shared library. ... What could cause that? Flags while doing cmake? (Python maybe) (I am using the below one): cmake -Wno-dev -DCMAKE_PREFIX_PATH="/usr/proj72/;/usr/pgsql-12/;/usr/gdal32;/usr/geos39/" -DWITH_PYTHON=0 -DWITH_JAVA=1 -DWITH_THREAD_SAFETY=1 -DWITH_FRIBIDI=1 -DWITH_FCGI=0 -DWITH_EXEMPI=0 -DWITH_GIF=0 -DWITH_FCGI=0 -DWITH_PROTOBUFC=0 -DWITH_CLIENT_WMS=1 -DWITH_CLIENT_WFS=1 -DWITH_KML=1 -DWITH_SOS=1 -DCMAKE_BUILD_TYPE=Release .. ? St?phane From spoissantca at gmail.com Mon Jan 11 05:49:27 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Mon, 11 Jan 2021 08:49:27 -0500 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> <2fec706401724540a77242b5e47e6038@sid.sachsen.de> <9E7517C1-7F60-445C-A5D8-714A92D48027@gmail.com> Message-ID: <54E969BD-3352-4CF3-A26F-86B8BB24757B@gmail.com> Good morning to you guys! In an effort to complete this mapserver upgrade/install on Amazon Linux 2, I am still facing one thing That you guys may help me with. When I do make install, the script complains about python oath but I can?t Find exactly what it is looking for,. I did try a few unsuccessful thing yet. Any suggestions? The following link points to nowhere: https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations I?ve got the following path that do exist: /usr/lib/python2.7/site-packages /usr/lib/python3.7/site-packages /usr/lib64/python2.7/site-packages /usr/local/lib/python2.7/site-packages (empty) -- Installing: /usr/local/share/mapserver/cmake/mapserverTargets-release.cmake running install Checking .pth file support in /usr/local/lib/python2.7/site-packages/ /bin/python -E -c pass TEST FAILED: /usr/local/lib/python2.7/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATH You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /usr/local/lib/python2.7/site-packages/ and your PYTHONPATH environment variable currently contains: ':' Here are some of your options for correcting the problem: * You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files * You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.) * You can set up the installation directory to support ".pth" files by using one of the approaches described here: https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations Please make the appropriate changes for your system and try again. -- Installing: /usr/local/lib64/libjavamapscript.so ``` -------------- next part -------------- An HTML attachment was scrubbed... URL: From spoissantca at gmail.com Mon Jan 11 06:23:03 2021 From: spoissantca at gmail.com (Stephane Poissant) Date: Mon, 11 Jan 2021 09:23:03 -0500 Subject: [mapserver-users] Mapserver 7.6.2 In-Reply-To: References: <01927348eda645839f0287a4715508d5@sid.sachsen.de> <15F3C908-C3B0-4A22-B62A-C3CDA5E53F1B@gmail.com> <7e93851309a74acfb2bd5b7df6801baf@sid.sachsen.de> <59956C2D-CC1D-4FA3-8797-CD835CEB2419@gmail.com> <2fec706401724540a77242b5e47e6038@sid.sachsen.de> <9E7517C1-7F60-445C-A5D8-714A92D48027@gmail.com> Message-ID: <397435DA-776C-4D85-BC92-2F761AD9E588@gmail.com> Forgot to mention that if I symlink the python folder, it works? - name: Remove site-packages folder file: path: /usr/local/lib/python2.7/site-packages state: absent - name: Create a symbolic link to site-packages folder file: src: /usr/lib/python2.7/site-packages dest: /usr/local/lib/python2.7/site-packages owner: root group: root state: link -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjorn.ove at grotan.com Tue Jan 12 01:36:18 2021 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Tue, 12 Jan 2021 10:36:18 +0100 Subject: [mapserver-users] Possible override class-generated legend graphic? Message-ID: <20210112093616.GM12357@samfundet.no> Hello I am familiar with how I can override legend urls (1) in the GetCapabilities-document, but when calling GetLegendGraphic directly on the layer the layer metadata for legend graphic is not affected. The issue I'm having is some cartographies will not generate a representative legend e.g. piecharts and v-line-shift style node-cartography (2) Anyone have any input on how (if possible) to override the legend when calling GetLegendGraphic on individual layers? (1) wms_style__legendurl_href (https://mapserver.org/ogc/wms_server.html) (2) v-line-shift (https://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol) -- Kind regards Bj?rn Ove Gr?tan From joerg.thomsen at wheregroup.com Tue Jan 12 02:08:48 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 12 Jan 2021 11:08:48 +0100 Subject: [mapserver-users] Possible override class-generated legend graphic? In-Reply-To: <20210112093616.GM12357@samfundet.no> References: <20210112093616.GM12357@samfundet.no> Message-ID: <655eec6e-cfae-27e3-24fc-e1982781dc7e@wheregroup.com> Hello Bj?rn, would KEYIMAGE help? -> https://mapserver.org/mapfile/class.html Am 12.01.21 um 10:36 schrieb Bj?rn Ove Gr?tan: > Hello > > I am familiar with how I can override legend urls (1) in the GetCapabilities-document, > but when calling GetLegendGraphic directly on the layer the layer metadata for > legend graphic is not affected. > > The issue I'm having is some cartographies will not generate a representative legend > e.g. piecharts and v-line-shift style node-cartography (2) > > Anyone have any input on how (if possible) to override the legend when calling > GetLegendGraphic on individual layers? > > (1) wms_style__legendurl_href (https://mapserver.org/ogc/wms_server.html) > (2) v-line-shift (https://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol) > Viele Gr??e, J?rg Thomsen -- --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From bjorn.ove at grotan.com Tue Jan 12 02:42:47 2021 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Tue, 12 Jan 2021 11:42:47 +0100 Subject: [mapserver-users] Possible override class-generated legend graphic? In-Reply-To: <655eec6e-cfae-27e3-24fc-e1982781dc7e@wheregroup.com> References: <20210112093616.GM12357@samfundet.no> <655eec6e-cfae-27e3-24fc-e1982781dc7e@wheregroup.com> Message-ID: <20210112104247.GN12357@samfundet.no> That would possibly work if I had one or two classes for the given layers. Will check out, thanks. By the way, I'm also looking into using overriden legends for line symbology, for which I have a lot of classes for. Splitting up the current composite legend png in individual png is of course possible, but tedious work. -- Kind regards Bj?rn Ove Gr?tan J?rg Thomsen (WhereGroup): > Hello Bj?rn, > > would KEYIMAGE help? > > -> https://mapserver.org/mapfile/class.html > > Am 12.01.21 um 10:36 schrieb Bj?rn Ove Gr?tan: > > Hello > > > > I am familiar with how I can override legend urls (1) in the GetCapabilities-document, > > but when calling GetLegendGraphic directly on the layer the layer metadata for > > legend graphic is not affected. > > > > The issue I'm having is some cartographies will not generate a representative legend > > e.g. piecharts and v-line-shift style node-cartography (2) > > > > Anyone have any input on how (if possible) to override the legend when calling > > GetLegendGraphic on individual layers? > > > > (1) wms_style__legendurl_href (https://mapserver.org/ogc/wms_server.html) > > (2) v-line-shift (https://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol) > > > > > Viele Gr??e, > J?rg Thomsen > > -- > --------------------------------------------- > Aufwind durch Wissen! > Web-Seminare und Online-Schulungen > bei der www.foss-academy.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From joerg.thomsen at wheregroup.com Fri Jan 15 05:55:57 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Fri, 15 Jan 2021 14:55:57 +0100 Subject: [mapserver-users] WFS Filter and Validation-Block Message-ID: <6146121f-72b6-d287-3047-c1ad6a5d66ba@wheregroup.com> Hello, I wonder how to allow / deny FE-filter in my WFS (e.g. no spatial-filter). Is this possible in any way? I tried to use the validation-block, anything like VALIDATION "filter" "(?gm)^((?!).)*$" END but the validations only seem to be considered for values which are used within the mapfile, also a validation for "service" doesn't take any effect: VALIDATION "service" "uups" END Viele Gr??e, J?rg -- --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From jmckenna at gatewaygeomatics.com Fri Jan 15 15:23:51 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 15 Jan 2021 19:23:51 -0400 Subject: [mapserver-users] Please submit all Pull Requests to the new 'main' branch Message-ID: Hi all, (happy 2021 to everyone) The MapServer Project Steering Committee (PSC) has recently voted and changed the default 'master' Github repository to a less-insensitive name of 'main'. All projects under the Github "MapServer organization" umbrella have now been updated for this change (MapServer, MapServer-documentation, MapCache, TinyOWS, basemaps, etc...). Github seems to handle the change well (with redirects etc), but here are some specific steps/notes for your MapServer fork/clone adapting: https://github.com/MapServer/MapServer/wiki/Renamed-Default-Branch If you have an existing Pull Request, Github has already automatically updated it to point to the correct 'main' repository (no more changes from you are needed). If you have any questions please let us know. (if you find more tips please edit that wiki page with your additions) Wishing all a nice weekend, on behalf of the MapServer team, -jeff -- Jeff McKenna GatewayGeo: MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ From joerg.thomsen at wheregroup.com Tue Jan 19 01:35:56 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Tue, 19 Jan 2021 10:35:56 +0100 Subject: [mapserver-users] WFS Filter and Validation-Block In-Reply-To: <6146121f-72b6-d287-3047-c1ad6a5d66ba@wheregroup.com> References: <6146121f-72b6-d287-3047-c1ad6a5d66ba@wheregroup.com> Message-ID: no hints anyone? :) J?rg Am 15.01.21 um 14:55 schrieb J?rg Thomsen (WhereGroup): > Hello, > > I wonder how to allow / deny FE-filter in my WFS (e.g. no spatial-filter). > Is this possible in any way? > > I tried to use the validation-block, anything like > > VALIDATION > "filter" "(?gm)^((?!).)*$" > END > > but the validations only seem to be considered for values which are used > within the mapfile, also a validation for "service" doesn't take any > effect: > VALIDATION > "service" "uups" > END > > Viele Gr??e, > J?rg > Viele Gr??e, J?rg Thomsen -- --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From bjorn.ove at grotan.com Tue Jan 19 01:52:09 2021 From: bjorn.ove at grotan.com (=?utf-8?B?QmrDuHJuIE92ZSBHcsO4dGFu?=) Date: Tue, 19 Jan 2021 10:52:09 +0100 Subject: [mapserver-users] Possible override class-generated legend graphic? In-Reply-To: <20210112104247.GN12357@samfundet.no> References: <20210112093616.GM12357@samfundet.no> <655eec6e-cfae-27e3-24fc-e1982781dc7e@wheregroup.com> <20210112104247.GN12357@samfundet.no> Message-ID: <20210119095209.GU12357@samfundet.no> By the way, we ended up using regexps and in apache to fetch getlegendgraphic requests to the layers in question. It would be nice if GetLegendGraphic on a given layer returned the same image (or html) as overriden in Layer metadata (GetCapabilitites) though. Desktop GIS (QGIS, ESRI etc) all use the metadata from GetCapabilities to render the legend, but web-gis doing a GetLegendGraphic directly on the layer would not render the same image/html. -Bj?rn Ove Bj?rn Ove Gr?tan: > That would possibly work if I had one or two classes for the given layers. Will check out, thanks. > > By the way, I'm also looking into using overriden legends for line symbology, for which I have a lot of classes for. > Splitting up the current composite legend png in individual png is of course possible, but tedious work. > > -- > Kind regards > > Bj?rn Ove Gr?tan > > J?rg Thomsen (WhereGroup): > > Hello Bj?rn, > > > > would KEYIMAGE help? > > > > -> https://mapserver.org/mapfile/class.html > > > > Am 12.01.21 um 10:36 schrieb Bj?rn Ove Gr?tan: > > > Hello > > > > > > I am familiar with how I can override legend urls (1) in the GetCapabilities-document, > > > but when calling GetLegendGraphic directly on the layer the layer metadata for > > > legend graphic is not affected. > > > > > > The issue I'm having is some cartographies will not generate a representative legend > > > e.g. piecharts and v-line-shift style node-cartography (2) > > > > > > Anyone have any input on how (if possible) to override the legend when calling > > > GetLegendGraphic on individual layers? > > > > > > (1) wms_style__legendurl_href (https://mapserver.org/ogc/wms_server.html) > > > (2) v-line-shift (https://mapserver.org/mapfile/symbology/construction.html#changing-the-center-of-a-point-symbol) > > > > > > > > > Viele Gr??e, > > J?rg Thomsen > > > > -- > > --------------------------------------------- > > Aufwind durch Wissen! > > Web-Seminare und Online-Schulungen > > bei der www.foss-academy.com > > --------------------------------------------- > > > > J?rg Thomsen > > WhereGroup GmbH > > Bundesallee 23 > > 10717 Berlin > > Germany > > > > Fon: +49 (0)30 / 5130 278 74 > > Fax: +49 (0)30 / 5130 278 11 > > > > joerg.thomsen at wheregroup.com > > www.wheregroup.com > > > > Gesch?ftsf?hrer: > > Olaf Knopp, Peter Stamm > > Amtsgericht Bonn, HRB 9885 > > > > ------------------------------- > > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users From sdlime at gmail.com Tue Jan 19 16:35:28 2021 From: sdlime at gmail.com (Steve Lime) Date: Tue, 19 Jan 2021 18:35:28 -0600 Subject: [mapserver-users] WFS Filter and Validation-Block In-Reply-To: References: <6146121f-72b6-d287-3047-c1ad6a5d66ba@wheregroup.com> Message-ID: I don't believe any of the WxS non-vendor parameters use the validation blocks. Instead they have their own service-specific validation. Same goes for the CGI params - they are validated using explicit code (e.g. mapext must consist of 4 numeric elements). Exceptions (from the CGI perspective) are parameters like *qstring *where developer-defined validation is required because there is no set content model to follow. What you're describing for the WFS/WMS filter might be an interesting extension - I would think it would be easy to add (probably would need a different key, something like wfs.filter). I'm curious what others more familiar with the WFS/WMS filters think. Another idea would be to disable parts of the filter specification using wfs_enable_request metadata - or perhaps using a new bit of metadata wfs_enable_filter? --Steve On Tue, Jan 19, 2021 at 3:36 AM J?rg Thomsen (WhereGroup) < joerg.thomsen at wheregroup.com> wrote: > no hints anyone? :) > > J?rg > > Am 15.01.21 um 14:55 schrieb J?rg Thomsen (WhereGroup): > > Hello, > > > > I wonder how to allow / deny FE-filter in my WFS (e.g. no > spatial-filter). > > Is this possible in any way? > > > > I tried to use the validation-block, anything like > > > > VALIDATION > > "filter" "(?gm)^((?!).)*$" > > END > > > > but the validations only seem to be considered for values which are used > > within the mapfile, also a validation for "service" doesn't take any > > effect: > > VALIDATION > > "service" "uups" > > END > > > > Viele Gr??e, > > J?rg > > > > > Viele Gr??e, > J?rg Thomsen > > -- > --------------------------------------------- > Aufwind durch Wissen! > Web-Seminare und Online-Schulungen > bei der www.foss-academy.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11 > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joerg.thomsen at wheregroup.com Wed Jan 20 04:13:31 2021 From: joerg.thomsen at wheregroup.com (=?UTF-8?Q?J=c3=b6rg_Thomsen_=28WhereGroup=29?=) Date: Wed, 20 Jan 2021 13:13:31 +0100 Subject: [mapserver-users] WFS Filter and Validation-Block In-Reply-To: References: <6146121f-72b6-d287-3047-c1ad6a5d66ba@wheregroup.com> Message-ID: <2d11d9dc-ce71-6856-6009-4627bd144158@wheregroup.com> thanks Steve! It helps to know what is not (yet) possible. J?rg Am 20.01.21 um 01:35 schrieb Steve Lime: > I don't believe any of the WxS non-vendor parameters use the validation > blocks. Instead they have their own service-specific validation. Same > goes for the CGI params - they are validated using explicit code (e.g. > mapext must consist of 4 numeric elements). Exceptions (from the CGI > perspective) are parameters?like /qstring /where developer-defined > validation is required because there is no set content model to follow. > What you're describing for the WFS/WMS filter might be an interesting > extension - I would think it would be easy to add (probably would need a > different?key, something like wfs.filter). I'm curious what others more > familiar with the WFS/WMS filters think. > > Another idea would be to disable parts of the filter specification > using?wfs_enable_request metadata - or perhaps using a new bit of > metadata wfs_enable_filter? > > --Steve > > On Tue, Jan 19, 2021 at 3:36 AM J?rg Thomsen (WhereGroup) > > wrote: > > no hints anyone? :) > > J?rg > > Am 15.01.21 um 14:55 schrieb J?rg Thomsen (WhereGroup): > > Hello, > > > > I wonder how to allow / deny FE-filter in my WFS (e.g. no > spatial-filter). > > Is this possible in any way? > > > > I tried to use the validation-block, anything like > > > >? ? ? ? ? VALIDATION > >? ? ? ? ? ? ? "filter" "(?gm)^((?!).)*$" > >? ? ? ? ? END > > > > but the validations only seem to be considered for values which > are used > > within the mapfile, also a validation for "service" doesn't take any > > effect: > >? ? ? ? ? VALIDATION > >? ? ? ? ? ? ? "service" "uups" > >? ? ? ? ? END > > > > Viele Gr??e, > > J?rg > > > > > Viele Gr??e, > J?rg Thomsen > > -- > --------------------------------------------- > Aufwind durch Wissen! > Web-Seminare und Online-Schulungen > bei der www.foss-academy.com > --------------------------------------------- > > J?rg Thomsen > WhereGroup GmbH > Bundesallee 23 > 10717 Berlin > Germany > > Fon: +49 (0)30 / 5130 278 74 > Fax: +49 (0)30 / 5130 278 11? ? > > joerg.thomsen at wheregroup.com > www.wheregroup.com > > Gesch?ftsf?hrer: > Olaf Knopp, Peter Stamm > Amtsgericht Bonn, HRB 9885 > > ------------------------------- > Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > Viele Gr??e, J?rg Thomsen -- --------------------------------------------- Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei der www.foss-academy.com --------------------------------------------- J?rg Thomsen WhereGroup GmbH Bundesallee 23 10717 Berlin Germany Fon: +49 (0)30 / 5130 278 74 Fax: +49 (0)30 / 5130 278 11 joerg.thomsen at wheregroup.com www.wheregroup.com Gesch?ftsf?hrer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ------------------------------- Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com From robin.rullo at uha.fr Thu Jan 21 02:59:00 2021 From: robin.rullo at uha.fr (Robin Rullo) Date: Thu, 21 Jan 2021 11:59:00 +0100 (CET) Subject: [mapserver-users] WFS error request Message-ID: <572822154.2579920.1611226740602.JavaMail.zimbra@uha.fr> Hello, we are a french group of students working on a web cartography project based on Geomoose 3.6.1. We are trying to formulate a query to retrieve WFS data using mapserver 7.7.0-dev (from ms4w) The following query should return results but returns: missing And in error_log.txt, we have the first error: BQ_BEGIN msProjectRect(): Projection library error. All points failed to reproject.\r: C:/ms4w/Apache/cgi-bin/mapserv.exe BQ_END Which generate bad converted datas: BQ_BEGIN msProjectRect(): Warning: degenerate rect {0.000000,0.000000,0.000000,0.000000}\r: C:/ms4w/Apache/cgi-bin/mapserv.exe BQ_END This is the query: METHOD: POST URL: http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 BODY: geom 7.056981128517495 47.90393604783284 7.499180835548746 47.90393604783284 7.499180835548746 48.15190704833762 7.056981128517495 48.15190704833762 7.056981128517495 47.90393604783284 We have tryed BBOX insthead of Intersects and the request worked well and sent us the expected results. URL: http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 BODY : 47.420223,6.841024 48.311212,7.622170 Here is our Mapfile MAP SHAPEPATH "C:\geobase" WEB METADATA 'ows_title' 'N_COMMUNE_BDC_068' 'ows_enable_request' '*' 'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' 'wfs_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' 'wms_feature_info_mime_type' 'application/json' END END LAYER NAME 'N_COMMUNE_BDC_068' STATUS ON PROJECTION 'init=epsg:2154' END METADATA 'ows_title' 'N_COMMUNE_BDC_068' 'ows_include_items' 'all' 'gml_include_items' 'all' END TYPE LINE DATA 'REF_EXT\BDCARTO\ADMINISTRATIF\N_COMMUNE_BDC_068.shp' CLASS NAME 'communes du Haut-Rhin BDC' STYLE WIDTH 1 COLOR '#1f4961' END END TEMPLATE 'dummy' END END Can you help us understand why we have an error in our first request ? Thank you! Team Carine of UHA 4.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Jan 21 04:05:35 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 21 Jan 2021 08:05:35 -0400 Subject: [mapserver-users] WFS error request In-Reply-To: <572822154.2579920.1611226740602.JavaMail.zimbra@uha.fr> References: <572822154.2579920.1611226740602.JavaMail.zimbra@uha.fr> Message-ID: Hello Team Carine ! Thanks for this message, great to see that students are loving MapServer/GeoMoose/MS4W, you have put a smile on my face this morning here ha. I've taken a look at your mapfile, but I notice that your MAP object is missing some important parameters such as EXTENT, UNITS, and the source PROJECTION block. See an example WFS-server mapfile at: https://mapserver.org/ogc/wfs_server.html#example-wfs-server-mapfile Notice that the MAP-level requires a PROJECTION block (this is the output projection) and then each LAYER requires its own PROJECTION block (this is the source projection of each layer). It's also important to start first by reviewing what is returned by your GetCapabilities request, and removing any "WARNING" messages displayed there (example GetCapabilities request: https://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities ) I'm not sure why everything else worked for you though, but, I'd still verify that your mapfile is properly setup for projections (review the 'important notes' in the projections document at https://mapserver.org/mapfile/projection.html#important-notes ) Thank-you for using and sharing the passion for MapServer ! :) -jeff -- Jeff McKenna GatewayGeo: MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ On 2021-01-21 6:59 a.m., Robin Rullo wrote: > Hello, we are a french group of students working on a web cartography > project based on Geomoose 3.6.1. > We are trying to formulate a query to retrieve WFS data using mapserver > 7.7.0-dev (from ms4w) > The following query should return results but returns: > > > ??????? missing > > > And in error_log.txt, we have the first error: > > msProjectRect(): Projection library error. All points failed to > reproject.\r: C:/ms4w/Apache/cgi-bin/mapserv.exe > > Which generate bad converted datas: > > msProjectRect(): Warning: degenerate rect > {0.000000,0.000000,0.000000,0.000000}\r: > C:/ms4w/Apache/cgi-bin/mapserv.exe > > This is the query: > METHOD: POST > URL: > http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 > BODY: > outputFormat="text/xml; subtype=gml/2.1.2" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd > " > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > "> > > > > geom > > > > 7.056981128517495 47.90393604783284 > 7.499180835548746 47.90393604783284 7.499180835548746 48.15190704833762 > 7.056981128517495 48.15190704833762 7.056981128517495 > 47.90393604783284 > > > > > > > > > We have tryed BBOX insthead of Intersects and the request worked well > and sent us the expected results. > URL: > http://localhost:4000/mapserver?MAP=C:/ms4w/apps/gm3/htdocs/desktop/MAPFILE_/N_COMMUNE_BDC_068.map&typename=ms:N_COMMUNE_BDC_068 > > BODY : > outputFormat="text/xml; subtype=gml/2.1.2" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd > " > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > "> > > > > > 47.420223,6.841024 48.311212,7.622170 > > > > > > > Here is our Mapfile > MAP > ??? SHAPEPATH "C:\geobase" > > ?? WEB > ????? METADATA > ???????? 'ows_title' 'N_COMMUNE_BDC_068' > ??????????? 'ows_enable_request'? '*' > ??????????? 'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' > ??????????? 'wfs_srs' 'EPSG:26915 EPSG:4326 EPSG:3857 EPSG:900913' > ??????????? 'wms_feature_info_mime_type' 'application/json' > ????? END > ?? END > > ?? LAYER > ????? NAME 'N_COMMUNE_BDC_068' > > ????? STATUS ON > > ????? PROJECTION > ??????????? 'init=epsg:2154' > ??????? END > > ????? METADATA > ???????? 'ows_title' 'N_COMMUNE_BDC_068' > ???????? 'ows_include_items' 'all' > ???????? 'gml_include_items' 'all' > ????? END > > ????? TYPE LINE > > ????? DATA 'REF_EXT\BDCARTO\ADMINISTRATIF\N_COMMUNE_BDC_068.shp' > > ????? CLASS > ???????? NAME 'communes du Haut-Rhin BDC' > ???????? STYLE > ??????????? WIDTH 1 > ??????????? COLOR '#1f4961' > ???????? END > ????? END > > ????? TEMPLATE 'dummy' > ?? END > END > > Can you help us understand why we have an error in our first request ? > Thank you! Team Carine of UHA 4.0 > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Thu Jan 21 04:16:06 2021 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 21 Jan 2021 08:16:06 -0400 Subject: [mapserver-users] WFS error request In-Reply-To: References: <572822154.2579920.1611226740602.JavaMail.zimbra@uha.fr> Message-ID: On 2021-01-21 8:05 a.m., Jeff McKenna wrote: > your MAP object is missing some important parameters such as EXTENT, > UNITS, and the source PROJECTION block I meant to say "your MAP object is missing some important parameters such as EXTENT, UNITS, and the output PROJECTION block" -jeff -- Jeff McKenna GatewayGeo: MapServer Consulting and Training Services co-founder of FOSS4G http://gatewaygeo.com/ From robin.rullo at uha.fr Thu Jan 21 08:33:15 2021 From: robin.rullo at uha.fr (Robin Rullo) Date: Thu, 21 Jan 2021 17:33:15 +0100 (CET) Subject: [mapserver-users] WFS error request Message-ID: <2022622346.2771023.1611246795493.JavaMail.zimbra@uha.fr> Thank you so much Jeff, Indeed, we mess some parameters in the mapfile, especially the extent and projection. It's working now and you have put a smile on our face too :) Team Carine from UHA 4.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From KulawikR at eba.bund.de Thu Jan 28 08:01:12 2021 From: KulawikR at eba.bund.de (Kulawik, Robert) Date: Thu, 28 Jan 2021 16:01:12 +0000 Subject: [mapserver-users] restful GFI request from Mapproxy Message-ID: <3b0d58ce760142f6bfc806b1ea841962@eba.bund.de> Dear List, I have a issue between Mapproxy 1.12.0 and Mapserver 7.4.3 with GetFeatureInfo (GFI) restful requests I don?t know if this ist a Mapproxy or Mapserver problem, maybe has someone a solution for this issue. When I use the WMS(?) KVP Capabilities from Mapproxy (http://localhost/mapproxy/service?REQUEST=GetCapabilities) in e.g. QGIS, everything works fine. The GetFeatureInfo (GFI) is available and working for the WMTS Layer. The KVP GFI request is similar as in Mapserver WMS, http://localhost/mapproxy/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&CRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=verkehrsweg_wmts&STYLES=&FORMAT=image/png&QUERY_LAYERS=verkehrsweg_wmts&INFO_FORMAT=text/html&I=268&J=176&FEATURE_COUNT=10 http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&SRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=Verkehrsweg&STYLES=&FORMAT=image/png&QUERY_LAYERS=Verkehrsweg&INFO_FORMAT=text/html&X=266&Y=176&FEATURE_COUNT=10 When I use the restful Mapproxy Service ( from http://localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml or http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS ), no GFI works When I request the restful service, the restful tile request works http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324.png but the GFI request on the same tile not http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324/38/142.html restful_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.{Format}' restful_fi_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.{Format}' Mapserver says: msQueryByPoint(): Search returned no results. No matching record(s) found. Either the Request http://localhost/mapproxy/service?SERVICE=WMTS&REQUEST=GetFeatureInfo&VERSION=1.0.0&LAYER=verkehrsweg_wmts&STYLE=default&INFOFORMAT=text/html&FORMAT=image/png&TILEMATRIXSET=wmtsgrid&TILEMATRIX=10&TILEROW=511&TILECOL=171&I=168&J=214 earn the same Mapserver error. Unfortunally I can?t see the request from Mapproxy to Mapserver in my logs. Does Mapserver support this restful request format? Any ideas? My Mapproxy yaml configuration: services: wmts: restful: true # with or without both templates the same behavior restful_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.{Format}' restful_fi_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.{Format}' featureinfo_formats: - mimetype: application/gml+xml; version=3.1 suffix: gml - mimetype: text/html suffix: html kvp: true md: title: mytitle access_constraints: "GeoNutzV" fees: keine contact: organization: myorg position: owner wms: srs: ['EPSG:4258','EPSG:4326','EPSG:31466','EPSG:31467','EPSG:31468','EPSG:31469','EPSG:25831','EPSG:25832','EPSG:25833'] image_formats: ['image/png', 'image/jpeg'] max_output_pixels: [5000, 5000] md: title: mytitle fees: keine contact: organization: myorg position: owner sources: verkehrsweg_source: type: wms wms_opts: featureinfo: true version: 1.1.1 legendgraphic: true legendurl: 'http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Verkehrsweg&format=image/png&STYLE=default' supported_srs: ['EPSG:25832'] concurrent_requests: 4 ##seed_only: true coverage: bbox: [204485, 5204122, 1008600, 6134557] srs: 'EPSG:25832' req: url: http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map layers: Verkehrsweg format: image/png In Mapserver Layer Metadata ist anything enabled in my opinion "wms_enable_request" "*" "ows_enable_request" "*" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "WMS_FEATURE_INFO_MIME_TYPE" "application/gml+xml; version=3.1" "WMS_FEATURE_INFO_MIME_TYPE" "application/vnd.ogc.gml" #or "wms_getfeatureinfo_formatlist" "text/html,application/gml+xml; version=3.1,application/vnd.ogc.gml" "gml_include_items" "all" "ows_include_items" "all" "wms_include_items" "all" "WMS_EXTENT" "204485 5204122.33 1008600.36 6134557.66" "WMS_SRS" "EPSG:25832 EPSG:3857 EPSG:25831 EPSG:25833 EPSG:4326 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:31469 EPSG:4258 EPSG:3038 EPSG:3039 EPSG:3040 EPSG:3041 EPSG:3042 EPSG:3043 EPSG:3044 EPSG:3045 EPSG:3046 EPSG:3047 EPSG:3034 EPSG:3035" "wms_inspire_metadataurl_format" "application/vnd.ogc.csw.capabilities.response_xml" "wms_metadataurl_format" "text/xml" "wms_metadataurl_type" "TC211" (***) Thanks in advance, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: