Posts

Showing posts from May, 2015

[SOLVED] Vagrant & Virtualbox - The guest machine entered an invalid state while waiting for it to boot....

Last couple of days I was running a Virtualbox issue "The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again." I had not clue how to fixed that and I have tried several versions and several installation. Then, then installation of Virtualbox 4.3.12 is working fine so far. If you are running into similar issue get  rid of all new Virtualbox versions and try with version 4.3.12,  VirtualBox-4.3.12-93733-Win.exe , that might helps you solve the problem. This version can be downloaded from:                                                http://dlc-cdn.sun.com/virtualbox/4.3.12/ Similarly, if you are using vagrant I recommend to use Vagrant 1.7.2. Please note that not all versions of vagrant and virtua...

Tiler tools, an alternative scripts to Gdal2tiles.py for creating raster tiles from digital maps

Image
Other day I was working to generate the Google Map based raster tiles using Gdal2tiles for a large raster file, 30GB in size. Gdal2tiels complains about the following error, which I had no clue. Then fiddling with others tilers available I played with the Tilers-tools , python Scripts for raster tile sets from digital maps with GDAL dependency. After spending few days hit and trial, finally I am able to generate raster tiles compatible with Google Maps. Here I am sharing the steps that I follow to produce tiles using the Tiler tool. Hope it will help some of the OSGeo users. I have divided tile generation steps into two groups, dependency installation and data preparation with a presumption that you are already familiar with GDAL . A] DEPENDENCY INSTALLATION STEP 1. Install Python geospatial packages Install the dependencies as described- https://github.com/GitHubRGI/geopackage-python/wiki/Installing-dependencies-on-Windows For my project, I used 32 bit inst...

Easy 5 steps to get thumbnails out of Pdf using Python

1) Install Ghost script before python dependencies installation from: http://www.a-pdf.com/convert-to-pdf/gs.exe 2) Make yourself familier with Wand , a  ctypes -based simple  ImageMagick  binding for Python. 3) Install Wand - pip install wand 4) Use the following script.. #Install Ghost script before python package's installation #from: http://www.a-pdf.com/convert-to-pdf/gs.exe   from wand.image import Image from wand.display import display fileDirectory = "D:/files/" inFileName="myInputfile.pdf" outFileName="myOutputfile.png" imageFromPdf = Image(filename=fileDirectory+inFileName) pages = len(imageFromPdf.sequence) print(pages) image = Image( width=imageFromPdf.width, height=imageFromPdf.height * pages ) for i in range(pages): image.composite( imageFromPdf.sequence[i], top=imageFromPdf.height * i, left=0 ) image.format="png" image.save(filename=f...