digital-guard / preserv-BR

Digital Preservation of Brazilian metadata of donated maps.
http://git.digital-guard.org/preserv-BR
3 stars 1 forks source link

BR-PR-Londrina/_pk0106.01vias não fechadas #145

Closed 0e1 closed 1 year ago

0e1 commented 1 year ago

Ingestão do layer via de BR-PR-Londrina/_pk0106.01 descartando maior parte das geometrias por não serem fechadas.

Executando shp2pgsql ...
cd /tmp/sandbox/_pk7600010601_001; shp2pgsql -D   -s 31982 "Export_Output.shp" pk7600010601101_p1_via | psql -q postgres://postgres@localhost/ingest42 2> /dev/null
Field objectid is an FTDouble with width 10 and precision 0
Field shape_len is an FTDouble with width 19 and precision 11
Shapefile type: ArcM
Postgis type: MULTILINESTRINGM[3]
                              addgeometrycolumn                              
-----------------------------------------------------------------------------
 public.pk7600010601101_p1_via.geom SRID:31982 TYPE:MULTILINESTRINGM DIMS:3 
(1 row)

psql postgres://postgres@localhost/ingest42 -c "SELECT ingest.any_load('shp2sql','/tmp/sandbox/_pk7600010601_001/Export_Output.shp','via_full','pk7600010601101_p1_via','7600010601101','b1cc16e9070aa2c624d1eeebde8a00e4b9bea471fb76a79c4f8ec5902c250c3e.rar',array['NOME as via'],5,1)"
                                             any_load                                              
---------------------------------------------------------------------------------------------------
 Statistics from file_id=378 (via_full of 7600010601101 of BR-PR-Londrina) in ingest.feature_asis.+
                                                                                                  +
             Originals: 6096 items.                                                               +
                                                                                                  +
             Not Intersecs: 0 items.                                                              +
                                                                                                  +
             Invalid: 0 items.                                                                    +
                                                                                                  +
             Not simple: 0 items.                                                                 +
                                                                                                  +
             Empty: 0 items.                                                                      +
                                                                                                  +
             Small: 0 items.                                                                      +
                                                                                                  +
             Null: 0 items.                                                                       +
                                                                                                  +
             Invalid geometry type: 0 items.                                                      +
                                                                                                  +
             Not closed: 6015 items.                                                              +
                                                                                                  +
             Large: 0 items.                                                                      +
                                                                                                  +
             Deduplication: 0 items.                                                              +
                                                                                                  +
             Resulting in feature_asis: 78.                                                       +
                                                                                                  +
             Resulting in feature_asis_discarded: 6015.                                           +

(1 row)

Confira os resultados nas tabelas ingest.donated_packcomponent e ingest.feature_asis.
psql postgres://postgres@localhost/ingest42 -c "DROP  TABLE IF EXISTS pk7600010601101_p1_via CASCADE"
DROP TABLE
FIM.

Problema provavelmente relacionado à dimensões: TYPE:MULTILINESTRINGM DIMS:3.

0e1 commented 1 year ago

Issue já existente, ver https://github.com/digital-guard/preserv-BR/issues/139.