otbcli_Segmentation VECTOR mode projection issue
Description
The otbcli_Segmentation in VECTOR mode crashes because of a mismatch between how projection systems are read.
Steps to reproduce
The input image is a Sentinel-2 mosaic, with 8000 by 9000 pixels so it is above the size that can be processed in RASTER mode. When using the VECTOR mode, here is the error message
xxxxxxx@1dac02b57fab:~/downloads/kilua_mosaics$ otbcli_Segmentation -in input.tif -mode vector -mode.vector.out SegmentationRaster.shp -filter meanshift
2020-05-20 09:02:31 (INFO) Segmentation: Default RAM limit for OTB is 256 MB
2020-05-20 09:02:31 (INFO) Segmentation: GDAL maximum cache size is 783 MB
2020-05-20 09:02:31 (INFO) Segmentation: OTB will use at most 4 threads
2020-05-20 09:02:31 (INFO) Segmentation: Use threaded Mean-shift segmentation.
2020-05-20 09:02:31 (INFO) Segmentation: Large scale segmentation mode which output vector data
2020-05-20 09:02:31 (FATAL) Segmentation: itk::ERROR: PersistentImageToOGRLayerSegmentationFilter(0x1bf9660): Spatial reference of input image and target layer do not match!
Input image : GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AXIS["Latitude",NORTH],
AXIS["Longitude",EAST],
AUTHORITY["EPSG","4326"]]
Target layer : GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]
Configuration information
Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic
OTB version 7.1.0