Skip to content

Leaflet Shapefile won't load #96

Description

@OGrigorios

I have exported some Shapefile with the help from pgsql2shp from my Postgres database containing geometry data (line strings).
As an output, I receive files in *.cpg *.dbf *.prj *.shp *.shx format. When I upload the shp file, a map is rendered, but it is loading infinitely.
image

I have read the README and also tried to create a zip archive file out of the dbf, prj, shp and shx file and tried to upload that, however this results in no preview being available for the zip file. Maybe the instructions weren't clear enough for me.

I am also receiving the following console error output, in case if that is relevant.

Uncaught Error: Corrupted zip : can't find end of central directory
    readEndOfCentral http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    load http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    c http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    exports http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    c http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    loadshp http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:118
    onreadystatechange http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:590
[a70ab06c_shp.js:578:25495](http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js)
    readEndOfCentral http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    load http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    c http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    exports http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    c http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:578
    loadshp http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:118
    onreadystatechange http://localhost:5000/webassets/ckanext-geoview/a70ab06c_shp.js:590

Is anybody willing to provide me with some debugging help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions