Advertisement
Guest User

FGDB GDAL Geometry Error

a guest
Aug 4th, 2011
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. I am running Centos version 6 with yesterday's build of GDAL trunk. Below you'll find the errors I am getting from ogr2ogr when trying to create a FGDB.
  2.  
  3. [root@me filegdb]# vim run
  4. 1 #!/bin/bash
  5. 2
  6. 3 ogr2ogr -overwrite -skipfailures -f "FileGDB" country.gdb \
  7. 4 PG:"host=172.16.2.66 user=me dbname=gossip password=password" \
  8. 5 -sql "SELECT d.id as id, d.service as service, d.date_taken as date_taken,
  9. 6 d.date_inserted as date_inserted,d.url as url,d.translated as translated,d.geom as geom FROM
  10. 7 getdata d, world_boundaries b WHERE (b.cntry_name = 'country') AND d.geom && b.wkb_geometry
  11. 8 AND intersects(d.geom, b.wkb_geometry)" -nln "country" -nlt POINT
  12.  
  13. I've tried it with and without -nlt with each of the two geom types (GEOMETRY AND POINT).
  14.  
  15. POINT throws this error: "ERROR 1: FGDB driver does not support OGR type"
  16.  
  17. GEOMETRY type throws the following:
  18.  
  19. [root@me filegdb]# ./run
  20. ERROR 1: Error: Failed to open Geodatabase (The system cannot find the path specified.)
  21. ERROR 1: Error: Failed to open Geodatabase (The system cannot find the path specified.)
  22. ERROR 1: Cannot map OGRwkbGeometryType (0) to ESRI type
  23. ERROR 1: Error (-1): Unable to map OGR type to ESRI type
  24. ERROR 1: Terminating translation prematurely after failed
  25. translation from sql statement.
  26. [root@gossip filegdb]# ERROR 1: Error: Failed to open Geodatabase (The system cannot find the path specified.)
  27. ERROR 1: Cannot map OGRwkbGeometryType (0) to ESRI type
  28. ERROR 1: Error (-1): Unable to map OGR type to ESRI type
  29. ERROR 1: Terminating translation prematurely after failed
  30. translation from sql statement.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement