[GRASS-user] FileGDB has 3 layers, only first imported

   The hydrography source is from the National Hydrographic Database and
contains three layers: Major_Streams, Major_Areas, Major_WaterBodies. Within
the v.in.ogr GUI dialog I checked all three layers for import. When grass
finished processing I checked g.list and found only the first layer present.
I assume the layer output names default to the layer input names.

   What might I have missed?

Rich

Rich Shepard wrote

The hydrography source is from the National Hydrographic Database and
contains three layers: Major_Streams, Major_Areas, Major_WaterBodies.
Within
the v.in.ogr GUI dialog I checked all three layers for import. When grass
finished processing I checked g.list and found only the first layer
present.
I assume the layer output names default to the layer input names.

   What might I have missed?

Rich
_______________________________________________
grass-user mailing list

grass-user@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-user

What does ogrinfo say?

What is your cmd ?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, 1 Nov 2017, Helmut Kudrnovsky wrote:

What does ogrinfo say?

Helmut,

Had to open data source read-only.
INFO: Open of `NHDMajor.gdb/'
       using driver `OpenFileGDB' successful.

Layer name: NHD_MajorStreams
Geometry: 3D Measured Multi Line String
Feature Count: 76935
Extent: (588224.643635, -40611.889317) - (2875451.289850, 1832652.018517)
Layer SRS WKT:
PROJCS["NAD83(HARN) / Washington South (ftUS)",
     GEOGCS["NAD83(HARN)",
         DATUM["NAD83_High_Accuracy_Reference_Network",
             SPHEROID["GRS 1980",6378137,298.257222101,
                 AUTHORITY["EPSG","7019"]],
             TOWGS84[0,0,0,0,0,0,0],
             AUTHORITY["EPSG","6152"]],
         PRIMEM["Greenwich",0,
             AUTHORITY["EPSG","8901"]],
         UNIT["degree",0.0174532925199433,
             AUTHORITY["EPSG","9122"]],
         AUTHORITY["EPSG","4152"]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",47.33333333333334],
     PARAMETER["standard_parallel_2",45.83333333333334],
     PARAMETER["latitude_of_origin",45.33333333333334],
     PARAMETER["central_meridian",-120.5],
     PARAMETER["false_easting",1640416.667],
     PARAMETER["false_northing",0],
     UNIT["US survey foot",0.3048006096012192,
         AUTHORITY["EPSG","9003"]],
     AXIS["X",EAST],
     AXIS["Y",NORTH],
     AUTHORITY["EPSG","2927"]]
FID Column = OBJECTID
Geometry Column = Shape
Permanent_Identifier: String (40.0) NOT NULL
FDate: DateTime (0.0) NOT NULL
Resolution: Integer (0.0) NOT NULL
GNIS_ID: String (10.0)
GNIS_Name: String (65.0)
LengthKM: Real (0.0)
ReachCode: String (14.0)
FlowDir: Integer (0.0) NOT NULL DEFAULT 0
WBArea_Permanent_Identifier: String (40.0)
FType: Integer (0.0) NOT NULL DEFAULT 460
FCode: Integer (0.0)
MainPath: Integer (0.0) NOT NULL DEFAULT 0
InNetwork: Integer (0.0) DEFAULT 1
VisibilityFilter: Integer (0.0) NOT NULL DEFAULT 0
Enabled: Integer(Int16) (0.0) DEFAULT 1
StreamOrder: Integer (0.0)
Shape_Length: Real (0.0)

Layer name: NHD_MajorAreas
Geometry: 3D Multi Polygon
Feature Count: 1485
Extent: (575544.125339, -221262.260342) - (2835065.755869, 1756831.324202)
Layer SRS WKT:
PROJCS["NAD83(HARN) / Washington South (ftUS)",
     GEOGCS["NAD83(HARN)",
         DATUM["NAD83_High_Accuracy_Reference_Network",
             SPHEROID["GRS 1980",6378137,298.257222101,
                 AUTHORITY["EPSG","7019"]],
             TOWGS84[0,0,0,0,0,0,0],
             AUTHORITY["EPSG","6152"]],
         PRIMEM["Greenwich",0,
             AUTHORITY["EPSG","8901"]],
         UNIT["degree",0.0174532925199433,
             AUTHORITY["EPSG","9122"]],
         AUTHORITY["EPSG","4152"]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",47.33333333333334],
     PARAMETER["standard_parallel_2",45.83333333333334],
     PARAMETER["latitude_of_origin",45.33333333333334],
     PARAMETER["central_meridian",-120.5],
     PARAMETER["false_easting",1640416.667],
     PARAMETER["false_northing",0],
     UNIT["US survey foot",0.3048006096012192,
         AUTHORITY["EPSG","9003"]],
     AXIS["X",EAST],
     AXIS["Y",NORTH],
     AUTHORITY["EPSG","2927"]]
FID Column = OBJECTID
Geometry Column = Shape
Permanent_Identifier: String (40.0) NOT NULL
FDate: DateTime (0.0) NOT NULL
Resolution: Integer (0.0) NOT NULL
GNIS_ID: String (10.0)
GNIS_Name: String (65.0)
AreaSqKm: Real (0.0)
Elevation: Real (0.0)
FType: Integer (0.0) NOT NULL DEFAULT 460
FCode: Integer (0.0)
VisibilityFilter: Integer (0.0) NOT NULL DEFAULT 0
Shape_Length: Real (0.0)
Shape_Area: Real (0.0)

Layer name: NHD_MajorWaterbodies
Geometry: 3D Multi Polygon
Feature Count: 253
Extent: (587974.003621, 43717.982427) - (2691814.264464, 1862037.945440)
Layer SRS WKT:
PROJCS["NAD83(HARN) / Washington South (ftUS)",
     GEOGCS["NAD83(HARN)",
         DATUM["NAD83_High_Accuracy_Reference_Network",
             SPHEROID["GRS 1980",6378137,298.257222101,
                 AUTHORITY["EPSG","7019"]],
             TOWGS84[0,0,0,0,0,0,0],
             AUTHORITY["EPSG","6152"]],
         PRIMEM["Greenwich",0,
             AUTHORITY["EPSG","8901"]],
         UNIT["degree",0.0174532925199433,
             AUTHORITY["EPSG","9122"]],
         AUTHORITY["EPSG","4152"]],
     PROJECTION["Lambert_Conformal_Conic_2SP"],
     PARAMETER["standard_parallel_1",47.33333333333334],
     PARAMETER["standard_parallel_2",45.83333333333334],
     PARAMETER["latitude_of_origin",45.33333333333334],
     PARAMETER["central_meridian",-120.5],
     PARAMETER["false_easting",1640416.667],
     PARAMETER["false_northing",0],
     UNIT["US survey foot",0.3048006096012192,
         AUTHORITY["EPSG","9003"]],
     AXIS["X",EAST],
     AXIS["Y",NORTH],
     AUTHORITY["EPSG","2927"]]
FID Column = OBJECTID
Geometry Column = Shape
Permanent_Identifier: String (40.0) NOT NULL
FDate: DateTime (0.0) NOT NULL
Resolution: Integer (0.0) NOT NULL
GNIS_ID: String (10.0)
GNIS_Name: String (65.0)
AreaSqKm: Real (0.0)
Elevation: Real (0.0)
ReachCode: String (14.0)
FType: Integer (0.0) NOT NULL DEFAULT 390
FCode: Integer (0.0)
VisibilityFilter: Integer (0.0) NOT NULL DEFAULT 0
Shape_Length: Real (0.0)
Shape_Area: Real (0.0)

What is your cmd ?

   ~/data/grassdata/WashingtonHARM/ (after re-projection) and
~/data/grassdata/hydrography/ for import.

Rich

What is your cmd ?

  ~/data/grassdata/WashingtonHARM/ (after re-projection) and
~/data/grassdata/hydrography/ for import.

how looks your v.in.ogr cmd?

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, Nov 1, 2017 at 6:22 PM, Rich Shepard <rshepard@appl-ecosys.com> wrote:

The hydrography source is from the National Hydrographic Database and
contains three layers: Major_Streams, Major_Areas, Major_WaterBodies. Within
the v.in.ogr GUI dialog I checked all three layers for import. When grass
finished processing I checked g.list and found only the first layer present.
I assume the layer output names default to the layer input names.

What might I have missed?

OGR layers correspond to GRASS layers. If you use v.in.ogr without specifying a layer, all layers present in the OGR datasource are imported into one single GRASS vector, but as separate layers. You can check with v.category op=report.

Markus M

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, 1 Nov 2017, Helmut Kudrnovsky wrote:

how looks your v.in.ogr cmd?

Helmut,

   Mis-read that.

   ~/data/grassdata/hydrography]$ v.in.ogr in=NHDMajor.gdb/ layer=NHD_MajorStreams.NHD_MajorAreas,NHD_MajorWaterbodies

all on one line.

Rich

On Wed, 1 Nov 2017, Markus Metz wrote:

OGR layers correspond to GRASS layers. If you use v.in.ogr without
specifying a layer, all layers present in the OGR datasource are imported
into one single GRASS vector, but as separate layers. You can check with
v.category op=report.

Markus,

   The manual page also states that if all layers are provided they will be
imported into a single grass vector as separate layers.

   If that is what happened, how do I load individual layers? When I use the
GUI to display a vector map I see only the first one. I've not before worked
with multiple laysers on a single vector map.

Rich

If that is what happened, how do I load individual layers? When I use the
GUI to display a vector map I see only the first one.

according to the manual:
https://grass.osgeo.org/grass73/manuals/d.vect.html

d.vect [-cirs] map=name [layer=string] [...]

layer=string
    Layer number or name ('-1' for all layers)
    A single vector map can be connected to multiple database tables. This
number determines which table to use. When used with direct OGR access this
is the layer name.
    Default: 1

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Users-f3884509.html

On Wed, 1 Nov 2017, Helmut Kudrnovsky wrote:

according to the manual:
https://grass.osgeo.org/grass73/manuals/d.vect.html

d.vect [-cirs] map=name [layer=string] [...]

layer=string
   Layer number or name ('-1' for all layers)
   A single vector map can be connected to multiple database tables. This
number determines which table to use. When used with direct OGR access this
is the layer name.
   Default: 1

Helmut,

   Thanks for pointing me to the currect manual page.

Regards,

Rich

On Wed, 1 Nov 2017, Helmut Kudrnovsky wrote:

d.vect [-cirs] map=name [layer=string] [...]

   I am missing something critical here and want to learn what that is. When
I look at the available maps I see only NHD_MajorStreams. To view the other
two layers I use the command line:

GRASS 7.3.svn (hydrography):~/data/grassdata > d.mon start=wx0
GRASS 7.3.svn (hydrography):~/data/grassdata > d.vect map=NHD_MajorStreams layer=-1
WARNING: The bounding box of the map is outside the current region, nothing
          drawn
d.vect complete.
GRASS 7.3.svn (hydrography):~/data/grassdata >

   The cwd is where the GDB was imported; that location has the projection
code shown in the ogrinfo summary. Wouldn't that make the current region
that of the imported map(s)?

   Is there a wx monitor for the existing GUI display window?

Rich