[GRASS-user] Importing data in .atx/.gdb format [RESOLVED ... REALLY!]
Even Rouault
even.rouault at spatialys.com
Thu Sep 15 00:55:47 PDT 2016
Le mercredi 14 septembre 2016 23:47:57, Rich Shepard a écrit :
> On Wed, 14 Sep 2016, Helmut Kudrnovsky wrote:
> > "." is this really your directory which holds the filegdb data?
>
> Helmut,
>
> Bash recognizes this as cwd (current working directory). However, ...
I've just added support in the OGR FileGDB & OpenFileGDB drivers for '.' as a
valid dataset name (the resolved directory of '.' must still end up with .gdb)
>
> Here's a summary of what I did so that others can gain from my learning
> and import a OFGDB data file on the first try.
>
> 0. Run ogrinfo -al on the source directory and direct output to a text
> file. In my case it produced a 2.4G output file. Read from the top (less
> output.txt | less) the projection information, including the EPSG
> projection code.
You can use ogrinfo -al -so (-so means Summary Only) to avoid listing the
features and get only projection info, feature count and field definitions. Will
save you a few gigabytes.
>
> 1. With the data source in a temporary directory I started grass73 and
> created a new location: ODOT2014.gdb using the proper EPSG projection code
> (and sub-variety number) and a new mapset, data_source.gdb. Exited grass
>
> 2. Copied (could have moved) all data files from their temporary
> directory to ~/data/grassdata/ODOT2014.gdb/data_source.gdb. Restarted
> grass.
>
> 3. Using the GUI: File -> Import vector (v.in.ogr). Select source as
> Directory, format as OpenFileGDB, point to
> ~/data/grassdata/ODOT2014.gdb/data_source.gdb, and click the "Import"
> button.
>
> 4. Make a pot of coffee. Return to computer and see all the roads
> (highways, roads, streets) in the state displayed in the Map Display
> window.
>
> Many thanks again to everyone for your patience and helpful responses,
>
> Rich
>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the grass-user
mailing list