Sometimes brew updates break your computer or a piece of software. This is usually really unpleasant as it can take some time to diagnose which formula at which version did so. Even if you can diagnose, it's not very clear how to roll back homebrew softwares to previous versions.
- Make sure the latest version of java is installed.
- Download OsmAndMapCreator from here: http://download.osmand.net/latest-night-build/OsmAndMapCreator-main.zip
- Download a PBF file for your area of interest from Geofabrik (http://download.geofabrik.de/) or other source (e.g. activation wiki)
- Create an OBF folder on your desktop
- Unzip your OsmAndMapCreator folder to whatever location you want.
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
#!/bin/bash | |
# This will convert PDF atlases to .pngs and then convert them back to .PDF, now rasterized. | |
# Use this script to flatten PDF exports from QGIS so you can generate thumbnails for the Mapfolio | |
# This script uses imagemagick and ghostscript. | |
# Please note: Ghostscript does not automatically come installed with imagemagick. Run 'brew install gs' to install it. | |
## Atlas Conversion |
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
#!/bin/bash | |
# This will convert PDF atlases to .pngs and then convert them back to .PDF, now rasterized. | |
# Use this script to flatten PDF exports from QGIS so you can generate thumbnails for the Mapfolio | |
### DEPENDENCIES | |
# This script uses parallel, imagemagick and ghostscript. | |
# To install: brew install imagemagick && brew install parallel && brew install gs | |
# Please note: Ghostscript does not automatically come installed with imagemagick. |
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
Private Function CheckStringCHAR(InString) As String | |
' CheckStringCHAR(InString) | |
' Returns its passed agrument, but with exchanged European? characters | |
' Function created 7/08/2003 by Stanley D. Grom, Jr. | |
' | |
CheckStringCHAR = "" | |
StringLength = Len(InString) | |
For i = 1 To StringLength |
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
Someone foolishly used a file geodatabase? No problem. Get that data out at GDB Flee: https://gdbflee-mweisman.rhcloud.com/ |
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
QGIS Hillshades are not hard, but they're often a little screwy. That's because units of measurement for elevation and x/y are often different. So, for instance, your DEM may be projected in WGS84 and hence have decimal degree units. But the DEM elevation units are often in meters. You need to account for this in the "scale" setting of QGIS. | |
The basic rule of thumb is this: | |
If everything is in meters, use scale factor 1.0 (default). | |
If x/y is in degree and z in meters, use scale factor 111120. | |
If x/y degree and z is feet, use scale factor 370400. | |
So, in QGIS 2.6, go to Raster --> Analysis --> DEM (Terrain Modules) | |
Load up your data, name the new file, and leave all the settings the same EXCEPT for scale. In most cases (SRTM data) you'll then rename scale to 111120. |
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
I am on a seemingly eternal spirit quest to get Postgres working on my mac. These are some helpful links about troubleshooting some of the many, many things that can go wrong with your postgres install. | |
https://github.com/Homebrew/homebrew/issues/33406 | |
http://blog.55minutes.com/2013/09/postgresql-93-brew-upgrade/ | |
https://coderwall.com/p/rjioeg/fixing-postgres-homebrew-install-after-yosemite-upgrade | |
http://stackoverflow.com/questions/16192731/issues-while-connecting-psql |