Skip to content

InitSpatialMetaData() #6

@diplonics

Description

@diplonics

Hi,
While I'm not new to spatial data and using PostGIS etc. I am new to node and this package.
I'm trying to run this query:
var query = "SELECT AsGeoJSON(ST_Transform(GeomFromText('LINESTRING(" + lineString + ")',4326), 3857), 6, 3) AS tbbox;";

but the ST_Transform is failing with the message:
{ [Error: SQLITE_ERROR: no such table: spatial_ref_sys] errno: 1, code: 'SQLITE_
ERROR' }

How to I enable/create the spatial_ref_table, is there something I missed during the installation?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions