GPX to Shapefile: DBF File missing

View: New views
2 Messages — Rating Filter:   Alert me  

GPX to Shapefile: DBF File missing

by Gregor Horvath-3 :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

if I do:

$ gpsbabel -tw -i gpx -f test.gpx  -o shape -F testbabel

the testbabel.dbf is not created:

$ ls testbabel.*
testbabel.shp  testbabel.shx

I want to import into a PostGis DB, but does not work because of this:

$ shp2pgsql testbabel
testbabel: dbf file (.dbf) can not be opened.

The tool gpx2shp creates all files with the same test.gpx, but lacks
other import formats that gpsbabel supports.

Any Hints?

Is there a better way to import GPX (or other formats) to a PostGIS DB?

--
Greg
                                     

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc

Re: GPX to Shapefile: DBF File missing

by Robert Lipe-4 :: Rate this Message:

| View Threaded | Show Only this Message



On Fri, Jan 13, 2012 at 5:46 AM, Gregor Horvath <greglist@...> wrote:
Hello,

if I do:

$ gpsbabel -tw -i gpx -f test.gpx  -o shape -F testbabel

the testbabel.dbf is not created:

We don't write the optional dbf  because in most cases we don't know enough about the meta data to generate a sensible one.

We could perhaps write a skeleton one just listing the types of fields we write, but we don't.   If you have some reader that absolutely requires it, perhaps pulling into a GIS-oriented tool like the Pro/EC editions of Earth or ArcGIS or GDAL and writing it back out will add it.

If you can quantify what you want and you know it's data we can derive from a general purpose format like GPX and you want a contract quote for adding it, drop me a line privately.

RJL

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
Gpsbabel-misc@...
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc