Re: [mapserver-users] How set Ntv2 using Proj7

2021-01-05 Thread WhereGroup
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.00 +x_0=350 +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@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.thom...@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver 7.6.2

2021-01-05 Thread Eichner, Andreas - SID
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_643.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_647.2.0-3.rhel7@pgdg-common

[root@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
spoissan...@gmail.com  

 

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver 7.6.2

2021-01-05 Thread Stephane Poissant
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_643.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_647.2.0-3.rhel7@pgdg-common

[root@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
spoissan...@gmail.com 


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How set Ntv2 using Proj7

2021-01-05 Thread 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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver 7.6.2

2021-01-05 Thread Eichner, Andreas - SID
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@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

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver 7.6.2

2021-01-05 Thread Stephane Poissant
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@mapserver-0290 mapserver-7.6.2]# ldd /usr/lib64/libSFCGAL.so.1
linux-vdso.so.1 (0x7ffd9958b000)
libCGAL.so.11 => /usr/lib64/libCGAL.so.11 (0x7f00d4b15000)
libCGAL_Core.so.11 => /usr/lib64/libCGAL_Core.so.11 (0x7f00d48dc000)
libmpfr.so.4 => /usr/lib64/libmpfr.so.4 (0x7f00d467e000)
libgmp.so.10 => /usr/lib64/libgmp.so.10 (0x7f00d4406000)
libboost_date_time-mt.so.1.53.0 => 
/usr/lib64/libboost_date_time-mt.so.1.53.0 (0x7f00d41f5000)
libboost_thread-mt.so.1.53.0 => /usr/lib64/libboost_thread-mt.so.1.53.0 
(0x7f00d3fd3000)
libboost_system-mt.so.1.53.0 => /usr/lib64/libboost_system-mt.so.1.53.0 
(0x7f00d3dcf000)
libboost_serialization-mt.so.1.53.0 => 
/usr/lib64/libboost_serialization-mt.so.1.53.0 (0x7f00d3b61000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x7f00d37df000)
libm.so.6 => /usr/lib64/libm.so.6 (0x7f00d349f000)
libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x7f00d3289000)
libc.so.6 => /usr/lib64/libc.so.6 (0x7f00d2ede000)
/lib64/ld-linux-x86-64.so.2 (0x7f00d580)
librt.so.1 => /usr/lib64/librt.so.1 (0x7f00d2cd6000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x7f00d2ab8000)
 
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