[GRASS-user] problem: boundary lines double

mails-foren at gmx-topmail.de mails-foren at gmx-topmail.de
Sat Feb 26 07:46:21 EST 2011


Hello Markus,

thank you for your advice. Unfortunatly its not possible for me to get clean data. If I import an esri file (16 features) with the command v.in.ogr -o (the o flag is for the locations projection) I get a file with 58 features.
Below I attached the output:

Best regards



v.in.ogr -o dsn=/home/BL2009/Bundeslaender.shp output=test4

Over-riding projection check

Layer: Bundeslaender

Importing map 16 features...

Area size [1.8e-05], area not imported

Area size [8.4e-05], area not imported

Area size [6.3e-05], area not imported

Area size [1.6e-05], area not imported

Area size [2.1e-05], area not imported

Area size [6.7e-06], area not imported

Area size [6.1e-06], area not imported

Area size [2.4e-05], area not imported

Area size [7.2e-05], area not imported

Island size [8.3e-05], island not imported

Island size [5.5e-06], island not imported

Area size [5.5e-06], area not imported

Area size [8.3e-05], area not imported

Area size [5.6e-05], area not imported

Area size [5.5e-05], area not imported

Area size [5.1e-06], area not imported

Island size [5.6e-05], island not imported

Area size [1.1e-05], area not imported

Area size [1.6e-05], area not imported

Area size [8.8e-06], area not imported

Area size [5.5e-06], area not imported

Area size [1.4e-05], area not imported

Area size [5.5e-06], area not imported

Area size [8.5e-06], area not imported

Area size [1.0e-05], area not imported

Area size [3.5e-05], area not imported

Area size [1.3e-05], area not imported

Area size [9.0e-06], area not imported

Area size [3.8e-05], area not imported

Area size [1.5e-05], area not imported

Area size [6.9e-06], area not imported

Area size [5.5e-06], area not imported

Area size [3.1e-05], area not imported

Area size [6.4e-05], area not imported

Area size [6.5e-06], area not imported

Area size [1.3e-05], area not imported

Area size [2.2e-05], area not imported

Area size [7.0e-06], area not imported

Area size [9.3e-06], area not imported

Area size [7.1e-06], area not imported

Area size [1.2e-05], area not imported

Area size [1.4e-05], area not imported

Area size [6.0e-05], area not imported

Area size [6.2e-06], area not imported

Area size [1.9e-05], area not imported

Area size [6.4e-06], area not imported

Area size [3.5e-05], area not imported

Area size [5.9e-06], area not imported

Area size [2.5e-05], area not imported

Area size [1.2e-05], area not imported

Area size [7.8e-06], area not imported

Area size [1.0e-05], area not imported

Area size [1.4e-05], area not imported

Area size [8.2e-06], area not imported

Area size [2.2e-05], area not imported

Area size [6.2e-06], area not imported

Area size [2.2e-05], area not imported

Area size [3.0e-06], area not imported

Area size [6.7e-06], area not imported

Area size [6.2e-06], area not imported

Area size [8.7e-05], area not imported

Area size [5.7e-06], area not imported

Area size [6.1e-05], area not imported

Area size [2.2e-05], area not imported

Island size [1.6e-05], island not imported

Island size [1.1e-05], island not imported

Island size [8.8e-06], island not imported

Island size [2.2e-05], island not imported

-----------------------------------------------------

Building topology for vector map ...

Registering primitives...

61 primitives registered

197855 vertices registered

Building areas...


59 areas built

59 isles built

Attaching islands...


Attaching centroids...


Number of nodes: 60

Number of primitives: 61

Number of points: 0

Number of lines: 0

Number of boundaries: 61

Number of centroids: 0

Number of areas: 59

Number of isles: 59

Number of incorrect boundaries: 2

Number of areas without centroid: 59

-----------------------------------------------------

Cleaning polygons, result is not guaranteed!


Building topology for vector map ...

Number of nodes: 60

Number of primitives: 61

Number of points: 0

Number of lines: 0

Number of boundaries: 61

Number of centroids: 0

Number of areas: -

Number of isles: -

-----------------------------------------------------

Break polygons:

-----------------------------------------------------

Remove duplicates:

-----------------------------------------------------

Break boundaries:

-----------------------------------------------------

Remove duplicates:

-----------------------------------------------------

Clean boundaries at nodes:

-----------------------------------------------------

Change dangles to lines:

-----------------------------------------------------

Remove bridges:

-----------------------------------------------------

Building topology for vector map ...

Building areas...


60 areas built

45 isles built

Attaching islands...


Number of nodes: 88

Number of primitives: 163

Number of points: 0

Number of lines: 0

Number of boundaries: 163

Number of centroids: 0

Number of areas: 60

Number of isles: 45

Number of areas without centroid: 60

Layer: Bundeslaender

-----------------------------------------------------

-----------------------------------------------------

Building topology for vector map ...

Registering primitives...

161 primitives registered

155800 vertices registered

Building areas...


60 areas built

45 isles built

Attaching islands...


Attaching centroids...


Number of nodes: 146

Number of primitives: 161

Number of points: 0

Number of lines: 0

Number of boundaries: 103

Number of centroids: 58

Number of areas: 60

Number of isles: 45

Number of areas without centroid: 2

-----------------------------------------------------

119 input polygons

Total area: 4.596540e+01 (60 areas)

Overlapping area: 0.000000e+00 (0 areas)

Area without category: 4.309415e-03 (2 areas)
Successfully finished




-------- Original-Nachricht --------
> Datum: Wed, 2 Feb 2011 15:42:15 +0100
> Von: Markus Metz <markus.metz.giswork at googlemail.com>
> An: mails-foren at gmx-topmail.de
> CC: grass-user at lists.osgeo.org
> Betreff: Re: [GRASS-user] problem: boundary lines double

> On Tue, Feb 1, 2011 at 4:43 PM,  <mails-foren at gmx-topmail.de> wrote:
> >
> > Hello Maris,
> >
> > thanks a lot for replying.
> > Yes, I imported an esri shapefile. I'd tried to clean data with v.clean
> and with many different grass clean modules, without any success.
> > Any other idea how to solve this issue? Maybe there is a method to
> import esri shapefiles without saving double the boundary?
> >
> The imported shapefile should be clean if v.in.ogr was not used with
> the -c flag, i.e. v.in.ogr did topological cleaning. Duplicate
> boundaries should not exist when using v.in.ogr with default settings.
> 
> Markus M
> 
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 27 Jan 2011 21:35:17 +0200
> >> Von: Maris Nartiss <maris.gis at gmail.com>
> >> An: mails-foren at gmx-topmail.de
> >> CC: grass-user at lists.osgeo.org
> >> Betreff: Re: [GRASS-user] problem: boundary lines double
> >
> >> Hello,
> >> looks like Your data are coming from non-topological vector storage
> >> (Shapefile?). Cleanness of data stored in non-topological formats
> >> (i.e. Shapefile) depend on data creation software abilities to produce
> >> cliean-look data and not are enforced by data storage, as it is in
> >> GRASS.
> >>
> >> Without seeing more information, my guess would be - You imported
> >> shapefile with areas into GRASS, still they had slivers and thus
> >> feature count has increased. Only way out is to clean data with
> >> v.clean and friends or by hand.
> >>
> >>
> >> Maris.
> >>
> >> http://grass.osgeo.org/grass64/manuals/html64_user/v.clean.html
> >>
> >>
> >> 2011/1/27, mails-foren at gmx-topmail.de <mails-foren at gmx-topmail.de>:
> >> > Hello,
> >> >
> >> > if I import a shape (414 features) with v.in.ogr.qgis I get output
> with
> >> 594
> >> > features. I had read the problem is, that a boundary line between two
> >> > polygons get saved double. How can I manage to save as one boundary
> line
> >> > between two polygons?
> >> >
> >> > Thanks a lot in advance!
> >> >
> >> > Steffen
> >> > --
> >> > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit
> >> > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
> >> > _______________________________________________
> >> > grass-user mailing list
> >> > grass-user at lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >> >
> >
> > --
> > NEU: FreePhone - kostenlos mobil telefonieren und surfen!
> > Jetzt informieren: http://www.gmx.net/de/go/freephone
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the grass-user mailing list