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

Switch from geom to geometry #104

Merged
merged 2 commits into from
Dec 22, 2016
Merged

Switch from geom to geometry #104

merged 2 commits into from
Dec 22, 2016

Conversation

stirringhalo
Copy link
Collaborator

It imports just fine but I am still getting an error on export:

/usr/local/lib/node_modules/tilelive/bin/tilelive-copy:100
        if (err) throw err;
                 ^
Error: Postgis Plugin: ERROR:  column "geom" does not exist
LINE 1: SELECT ST_GeometryType("geom") AS geom FROM (SELECT geometry...
                               ^
in executeQuery Full sql was: 'SELECT ST_GeometryType("geom") AS geom FROM (SELECT geometry, class FROM layer_water(ST_SetSRID('BOX3D(-3.402823466385289e+38 -3.402823466385289e+38,3.402823466385289e+38 3.402823466385289e+38)'::box3d, 900913), z(3.40282e+38))) AS t LIMIT 5'

    at Error (native)
    at /usr/local/lib/node_modules/tilelive-tmsource/index.js:111:46
    at Array.map (native)
    at normalize (/usr/local/lib/node_modules/tilelive-tmsource/index.js:100:35)
    at /usr/local/lib/node_modules/tilelive-tmsource/index.js:185:19
    at tryToString (fs.js:414:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)

Bit confused by this, is it somehow hard-coded in tilelive-copy?

Also see the PR on import-natural-earth.

@lukasmartinelli
Copy link
Contributor

Bit confused by this, is it somehow hard-coded in tilelive-copy?

I gues this is the geometry_column specified in the layer YAML file.

@stirringhalo
Copy link
Collaborator Author

stirringhalo commented Dec 22, 2016

Ah, found the geometry_field and how it was defaulted to 'geom'. See openmaptiles/openmaptiles-tools#9 for that PR.

This one is ready to go, I will merge now.

@stirringhalo stirringhalo merged commit 8299aca into master Dec 22, 2016
@stirringhalo stirringhalo deleted the switch_to_geometry branch December 22, 2016 03:17
stirringhalo added a commit that referenced this pull request Dec 22, 2016
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

Successfully merging this pull request may close these issues.

2 participants