-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column wkb_geometry appears when importing #2107
Comments
wkb_geometry is the column ogr2ogr uses by default, sounds like:
cc @rafatower |
After upgrading ogr2ogr2 from So, @rafatower , do you think we should file an issue or fix for ogr2ogr2? We could delete the column if it's empty, but it looks like a dirty patch to me, unless this is the (new) expected behaviour of ogr2ogr2. |
I'd file a ticket into gdal project with some easy steps to reproduce (i.e: the smallest geojson file and command line to create the table, without all the cartodb code surounding it) and notify Even Rouault cc/ @javisantana PS: if it is not documented then assume it is a regression bug rather than undocumented behavior. |
Update: it happens only using
I've opened an issue at GDAL. Importing of one of our fixtures, |
Already fixed in trunk, a new release of ogr2ogr binary should fix it. |
I just created a new version of ogr2ogr2 package, updated from gdal trunk following these instructions: The new package is being built in launchpad: https://launchpad.net/~cartodb/+archive/ubuntu/gis-testing/+packages After that, I'll install it in staging and we'll need to regression test imports related to
|
New version has a regression:
It can be easily reproduced by importing this file: https://github.com/CartoDB/cartodb/blob/master/services/importer/spec/fixtures/in_cell_line_breaks.csv |
It doesn't work in production. A trace from local setup:
|
Solved in |
These last days I've seen that the column "wkb_geometry" appears empty when uploading some files (exported previously from CartoDB).
AFAIK, this is caused by regular CSV imports and not by guessing -- or at least the files I'm using "cannot be guessed" as they contain already a geometry and type guessing does not apply. It also happens when the file is guessed, though.
Example of CSV that provokes this here. Importing it to CartoDB makes the column appear. You can get rid of the_geom to force the guessing, the column also appears in this scenario.
cc @juanignaciosl @javisantana @rafatower
The text was updated successfully, but these errors were encountered: