I have access to un-copyrighted shape files for the National Parks in Alaska and want to add them to OSM. I have read of problems with the plugin for JOSM and wonder if any of you know of a good freeware conversion program that will generate a GPX file that I can then import into JOSM. I'm about to set up a program called DNRGarmin, which will reportedly do the conversion, but will wait for some input here before I proceed. There are many National Parks in what we Alaskans call "the lower 48" already in the OSM database. I'm curious to know how these got there. Thanks Dave asked 25 Mar '14, 04:53 AlaskaDave iii |
I don't know much about shape files, but in looking into adding land cover found some US Gov. (okay copyright for OSM) shape files and found that you can load them directly in JOSM. Might need a open data or some such plug-in. You can then copy the boundary/area polygon from the shape layer and paste it into the OSM data layer, change the tags to be those used by OSM, and you are ready to upload. Well, not quite ready: You should do all the recommended QA checks, etc. before uploading. With respect to landcover, the data set I found was okay for a "broad brush" but I sure had to go into the area looking at satellite imagery and photos from when I hiked the area to get the detail better. You shouldn't have that issue with boundary information but you may have overlaps with older polygons that attempted to show the boundaries, etc. answered 03 Feb '19, 22:07 n76 |
(I know that you've not suggested doing it, but for the benefit of anyone else reading this question in the future): What I wouldn't do is to upload any resulting GPX to OSM. That would be problematic for a couple of reasons - one is that GPS traces in OSM are a bit like a "roach motel" - once traces are uploaded and other services (like iD's background GPS layer) read them, there's sometimes no way of removing those traces. The other is that, in places where GPS traces representing roads and tracks are few and far between, uploaded traces that don't represent actual paths get horribly confusing. Someone uploaded some low-level administrative boundaries in central England, and when trying to average out a position based on GPS traces you need (if not filtering manually with JOSM) to continually mentally remove the ones that aren't. answered 26 Mar '14, 12:30 SomeoneElse ♦ But aren't all boundaries merely sets of points on a line, i.e., a set of points that is functionally identical to a GPX file? I have uploaded boundaries for a couple of designated Wilderness Areas in Alaska using a GPX file I converted from KML that I obtained from Wilderness.net. See the Kenai Wilderness and the Togiak Wilderness for example. They appear perfectly fine. Way: Kenai Wilderness (264567744) 994 nodes part of Kenai National Wildlife Refuge relation (not yet entirely added) How else can one do this if not to use a GPX file?
(26 Mar '14, 13:53)
AlaskaDave
A boundary is a set of points, but it's not a set of points that corresponds to anything in the real world. By all means use a GPX file locally (in JOSM or iD you can definitely do this), but uploading that GPX to OSM would make other people think that it corresponds to a road or track.
(26 Mar '14, 13:57)
SomeoneElse ♦
I added those areas without consulting anybody else because a) I didn't think it was any big deal, and b) they were relatively simple. I was, and am, excited to be able to add some important information to the map of Alaska.
(26 Mar '14, 13:58)
AlaskaDave
Of course I tagged the boundary with appropriate tags — leisure=nature_reserve, etc. I uploaded it as a relation, not as a GPX track.
(26 Mar '14, 14:03)
AlaskaDave
1
... which is not a problem at all, of course.
(26 Mar '14, 14:26)
SomeoneElse ♦
|
Well they say that JOSM with OpenData plugin can handle shapefiles without any external help: There are also a lot of conversion scripts at the website. I guess it's worth a try as you get real OSM shapes in high quality and you don't need to manually trace the shape. Of course you should always pay attention when you do imports. Good luck! answered 25 Mar '14, 07:54 iii The data file I have is quite large (9 MB) and contains the boundary data for ALL Alaska national parks. There are many precautions and warnings about imports and I will not simply import all of that data and upload it to OSM. What would be ideal is to deal with one park at a time, convert it to GPX and look it over carefully before adding it to OSM. My hope is that there is a program out there that will convert that big shapefile into pieces for each park that are in either GPX, KML or some other more user friendly format, so they can be massaged before attempting to open them with JOSM.
(25 Mar '14, 08:30)
AlaskaDave
As the wiki link say, you might want to use QGIS to do this filtering and splitup/export. But I highly recommend to get in touch with the local community to coordinate the final data import. IMHO thats in the spirit of a crowd :)
(25 Mar '14, 09:04)
iii
Well, there simply aren't many mappers working in Alaska. Who do you recommend I coordinate with?
(25 Mar '14, 09:19)
AlaskaDave
2
I'm not familar with the Alaska community but we have multiple ways to get in touch with people: http://wiki.openstreetmap.org/wiki/Contact
(25 Mar '14, 09:23)
iii
1
Josm can handle shape files of 9Mb or larger. For larger shapes (hundreds of MB) I use Qgis to select smaller shapes and edit that in Josm. This also depends on your computer power. In Josm you can also copy the shape that you are interested in (a park boundary for instance) to a new data layer, edit it and upload it from there, no need to upload the whole dataset at once.
(25 Mar '14, 09:25)
ligfietser
1
I was able to import the 9 MB file into JOSM with the OpenData plugin but it took about 30 minutes to do it. This on a pretty fast i7 laptop with 8 GB of RAM. I stopped waiting after a while and watched a movie — eventually it finished. The data looks good but it's complex. Some parks have several pieces and they're all too big to get into a single JOSM window. So, how to proceed? I plan to talk to the Imports mailing list before doing anything else.
(26 Mar '14, 06:06)
AlaskaDave
showing 5 of 6
show 1 more comments
|
There is a great need for these additions in Alaska as many are missing. I added this state park a few days ago but there are National Wildlife Refuges, Nat'l Parks, Wilderness Areas, and National Forests aplenty in Alaska. Way: Denali State Park (268206171)
Alaska Dave, I have a similar project - adding shape files (.shp) for 48 election precincts to the Bell County, Texas, area of "the map". Actually, I'd like to add the shape files for all 254 counties of Texas - I have the zip file from the Texas Legislative Council GIS team. . . . I just searched for and studied GPX format. Apparently, I do not need to convert to that. . . . I just want to import the shp files as a layer of OpenStreetMap. I'll just contact the Texas Legislative ofc and ask them for help. No reply necessary.