Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 194
    • Issues 194
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #2101
Closed
Open
Created Sep 17, 2020 by aloboa@aloboa

Output vector layers of LargeScaleMeanShift have not a correct geometry according to GEOS

Description

Output vector layers of LargeScaleMeanShift have not a correct geometry according to GEOS, as implemented in rgeos. The layer can be fixed using geos tools. Same problem is found if -mode raster is used, followed by gdal_polygonize

Steps to reproduce

otbcli_LargeScaleMeanShift.bat -in QB_1_ortho.tif -spatialr 4 -ranger 80 -minsize 16 -tilesizex 256 -tilesizey 256 -cleanup 1 -mode.vector.out regions.shp

in R:

> require(rgeos)
> require(rgdal)
> v1 <- readOGR(dsn="D:/FLUXPYRetal/Navarra/SegNavarra", layer="regions")
> gIsValid(v2)
[1] FALSE
Warning message:
In RGEOSUnaryPredFunc(spgeom, byid, "rgeos_isvalid") :
  Ring Self-intersection at or near point 370624.65625896002 4831278.72278025
> v1f <- gSimplify(v1, tol = 0.00001)
> gIsValid(v1f)
[1] TRUE

Configuration information

OS, OTB version or tag, information related to build (binaries, superbuild, system libs ...)

Assignee
Assign to
Time tracking