- WARNING: make sure everything is approved by the appropriate OSM authorities like the imports mailing list before importing to the main OSM API, if you aren't sure, ask somebody
- prep the source
- remove conflicting duplicates
- reproject to EPSG:4326 (WGS 84)
- remove useless attributes (like official internal ids)
- OSMLY can do this for you, see
usePropertyAsTagsetting in settings_documentation.md it takes a whitelist of properties you want to use, everything else is ignored
- OSMLY can do this for you, see
- rename attributes to their osm equivalents
- OSMLY can do this for you, see
renamePropertysetting in settings_documentation.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.select = function(query) { | |
| var d = document; | |
| if (query.split(' ').length > 1 || | |
| query.split(',').length > 1 || | |
| query.split('[').length > 1 || | |
| query.split(':').lenght > 1) return d.querySelectorAll(query); | |
| if (query.charAt(0) === '#') return d.getElementById(query.substring(1)); | |
| if (query.charAt(0) === '.') return d.getElementsByClassName(query.substring(1)); | |
| return d.getElementsByTagName(query); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var places = [ | |
| [-21.815289, 114.164930, 15], | |
| [-22.7667, 113.680, 17], | |
| [-26.6922, 113.6009, 17], | |
| [-31.61751, 131.5492, 17], | |
| [29.17023, -118.32509, 16], | |
| [48.38595, -124.72506, 17], | |
| [29.99712, 48.1951332, 14], | |
| [5.283854, 100.310164, 17], | |
| [37.27266, -112.945032, 16], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| title: 'Outline the park', | |
| instructions: '\ | |
| <ul>\ | |
| <li>Outline the nearby park.</li>\ | |
| <li>Pay blahblahblah to the tags, especially the \'name\' tag.</li>\ | |
| <li>It\'s possible the data is out of date or just wrong; report problems accordingly.</li>\ | |
| <li>Yellow features are other OSM features there to help you. You can\'t edit them here but clicking them provides more information. If you know they\'re wrong, go to osm.org and fix them.</li>\ | |
| </ul>', | |
| db: 'http://127.0.0.1:5000/?db=dedupeLAparks', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vi /etc/ssh/sshd_config | |
| Add: Port 443 | |
| /etc/init.d/ssh restart |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>OSM & GeoJSON by Aaron Lidman</title> | |
| <script type="text/javascript" src="http://rawgithub.com/aaronlidman/osm-and-geojson/gh-pages/osm_geojson.js"></script> | |
| <script type="text/javascript" src="http://rawgithub.com/tyrasd/osmtogeojson/master/osmtogeojson.js"></script> | |
| <script type="text/javascript"> | |
| function toGeo() { | |
| var xml = document.getElementById('osmxml').value; | |
| var start = new Date().getTime(), | |
| geojson = osm_geojson.osm2geojson(xml), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>OSM & GeoJSON by Aaron Lidman</title> | |
| <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.1.0/lodash.js"></script> | |
| <script type="text/javascript" src="http://rawgithub.com/aaronlidman/osm-and-geojson/gh-pages/osm_geojson.js"></script> | |
| <script type="text/javascript" src="http://rawgithub.com/tyrasd/osmtogeojson/master/osmtogeojson.js"></script> | |
| <script type="text/javascript"> | |
| function toGeo() { | |
| var xml = document.getElementById('osmxml').value; | |
| var start = new Date().getTime(), |