<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Videresendt melding:</div><div><br></div><blockquote type="cite"><div><b>Fra:</b> Christoph Hormann &lt;<a href="mailto:chris_hormann@gmx.de">chris_hormann@gmx.de</a>&gt;<br><b>Dato:</b> 22. juni 2014 15:43:39 CEST<br><b>Til:</b> <a href="mailto:imports@openstreetmap.org">imports@openstreetmap.org</a><br><b>Emne:</b> <b>Re: [Imports] N50 imports from Kartverket (The Norwegian Mapping Authority)</b><br><br></div></blockquote><blockquote type="cite"><div><span>On Sunday 22 June 2014, Tor wrote:</span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>As far as I know, they are split that way in the SOSI files from</span><br></blockquote><blockquote type="cite"><span>Kartverket. I agree that it’s best to merge them. I have no idea</span><br></blockquote><blockquote type="cite"><span>about how to do that with OGR though.</span><br></blockquote><span></span><br><span>In principle dissolving all polygons in a file can be done through </span><br><span>something like</span><br><span></span><br><span>ogr2ogr -explodecollections -dialect SQLite -sql "SELECT </span><br><span>ST_Union(geometry) FROM input" output.shp input.shp</span><br><span></span><br><span>If you only want to merge elements with certain attributes you need some </span><br><span>more SQL magic with 'group by'.</span><br><span></span><br><blockquote type="cite"><span>Not in the N50 Arealdekke dataset as far as I know. The names are in</span><br></blockquote><blockquote type="cite"><span>a separate N50 dataset. It has been discussed on the Norwegian</span><br></blockquote><blockquote type="cite"><span>mailing list, and people agreed that it would be better to import</span><br></blockquote><blockquote type="cite"><span>names from the original source, the place name register (sentralt</span><br></blockquote><blockquote type="cite"><span>stadnamnregister, SSR).</span><br></blockquote><span></span><br><span>Well - it is of course up to you but if there are matching data sets it </span><br><span>is usually easier to attach names to certain features and then import </span><br><span>the whole thing than add name tags to existing OSM elements later when </span><br><span>they might have already been modified manually.</span><br><span></span><br><span>-- </span><br><span>Christoph Hormann</span><br><span><a href="http://www.imagico.de/">http://www.imagico.de/</a></span><br><span></span><br><span>_______________________________________________</span><br><span>Imports mailing list</span><br><span><a href="mailto:Imports@openstreetmap.org">Imports@openstreetmap.org</a></span><br><span><a href="https://lists.openstreetmap.org/listinfo/imports">https://lists.openstreetmap.org/listinfo/imports</a></span><br></div></blockquote></body></html>