-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Shapefile custom data #5423
Shapefile custom data #5423
Conversation
Thanks @superDoss ! This is pretty great.. I do get asked about supporting shapefiles sometimes. A few other things I notice are that we will probably need to polyfill a few things for IE and maybe Safari support. (see https://github.com/mbostock/shapefile/blob/master/README.md)
Also, I don't know how common it is for shapefiles to be in a crs other than EPSG:4326. I'm not sure whether we would want to let people know that iD won't do any reprojection on these. We also don't support the |
Are the geometries just shown as a background layer or are they converted into OSM objects to be uploaded? If the latter is possible, mentioning the Import Guidelines might be a good idea to avoid unnecessary reverts of buggy imports (not converting attributes into proper tags etc.). |
Currently just shown
yep that's an important part of #4633 , which will be coming soon |
@bhousel i've fixed all of the things you have noted. I still don't know how to test this as i need to read a shape file, and didn't find a way to do this in phantomjs |
About that, because of shape file is build from several files (shp,dbf,prj..) didn't figure out the best way to enforce uploading multiple files that are associated, or how to let the user know he needs to upload several files. So for now there is no problem with dbf encoding as it is not supported and not being parsed. |
One potential workaround for this is to allow users to upload zip files containing the component files of the shapefile. An important drawback of this is the need to validate the contents and handle many potential errors. |
Add support in shape files for custom-data
…into shapefileCustomData
@bhousel i've just added a working test but for some unknown reason travis have failed to test on node 6, hope you can check it and merge if everything is ok |
Hey guys, for a long time now i am using ID editor, and would like to add a feature that in my opinion is missing.
Really not big of a deal, just added support for shp files.
one problem though didn't find a way to test it as i need to read .shp file, and didn't know how to read the files in the testing framework.