Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
otb
otb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 273
    • Issues 273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Main Repositories
  • otbotb
  • Issues
  • #2055

Closed
Open
Opened May 20, 2020 by lecrabe@lecrabe

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

Assignee
Assign to
7.2.0
Milestone
7.2.0
Assign milestone
Time tracking
None
Due date
None
Reference: orfeotoolbox/otb#2055