Skip to content
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

import error cartodb-staging #116

Closed
oriolbx opened this issue Aug 19, 2015 · 8 comments
Closed

import error cartodb-staging #116

oriolbx opened this issue Aug 19, 2015 · 8 comments
Assignees

Comments

@oriolbx
Copy link

oriolbx commented Aug 19, 2015

I've export the world_borders dataset from my account at user.cartodb.com in two formats (.csv and .geoJson) and I've tried to upload them in my account in user.cartodb-staging.com, but the import process fail.

In the logs it shows this error:

Exception: PG::Error: ERROR: CDB(_CDB_Rewrite_Table:XX000:transform: couldn't project point (180 -90 0): tolerance condition error (-20)): CREATE TABLE public.world_borders_1_b456b0650d11b0560adb1295e717646d AS SELECT cartodb_id,ST_Transform(the_geom,4326)

@rafatower
Copy link
Contributor

cc/ @pramsey this might be a blocker. I'll take a further look and try to provide more debugging info. Any help appreciated.

@pramsey
Copy link
Contributor

pramsey commented Aug 19, 2015

Presumably this isn't a new problem? How do we create the_geom_webmercator right now that avoids the problem of infinities at the edges of mercator?

postgis22=# select st_transform('SRID=4326;POINT(180 -90)'::geometry,3857);
ERROR:  transform: couldn't project point (180 -90 0): tolerance condition error (-20)

@javisantana
Copy link
Contributor

@pramsey
Copy link
Contributor

pramsey commented Aug 19, 2015

OK, so this is a relatively easy fix then.

@javisantana
Copy link
Contributor

@pramsey do you think that could be improved?

@rafatower
Copy link
Contributor

I'd just use that function directly and we can defer improvements to the next version. Opinions?

@pramsey
Copy link
Contributor

pramsey commented Aug 19, 2015

Mercator function looks fine to me, use that.

@javisantana
Copy link
Contributor

[censored]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants