forked from pduchesne/ckanext-geoview
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Leaflet Shapefile won't load #96
Comments
Looks like you have to upload a zip file and set the format to shp. But I still get the spinner: with this file: https://cambmagisdata.blob.core.windows.net/camb3d/Camb3D_Bldg_Active_MP_20220810.zip This line from proj4.js var c = JSON.parse((',' + a).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g, ',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g, ',"$1"]')), Throws the error:
a is:
|
Thank you for the reply. I have tried both a zip archive containing all files and just the .shp file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.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.
Is anybody willing to provide me with some debugging help?
The text was updated successfully, but these errors were encountered: