Capitalize each word after forward slash in Java Script : Code snippet

 function getFormattedText() {  
   var formattedString= capitalizedTextAfterBackslash("Red spruce / balsam fir/tamarack");    
 function capitalizedTextAfterBackslash(str){  
    var temp= str.split("\/");       
    for(var i=0; i<temp.length; i++) {  
     temp[i] = temp[i].trim();  
     temp[i] = temp[i].substr(0,1).toUpperCase() + temp[i].substr(1,temp[i].length-1);  
    return temp.join(' / ');   

Building ArcMap’s Add-in using command line

Couple of days I have been spending on creating a build automation for ArcMap’s Add-in using Jenkins . In order to accomplish that I need to able to build my visual studio add-in solution using MSBuild.exe.

When I try to build the solution using via command line –
msbuild.exe MyArcMapAddin.sln /t:Clean,Build

The console throws the following error- 
(PrePackageArcGISAddIn target) -> 
  C:\Program Files (x86)\MSBuild\ESRI\ESRI.ArcGIS.AddIns.targets(37,5): error MSB4062: The "ValidateAddInXMLTask" task could not be loaded from the assembly ESRI.ArcGIS.AddIns.SDK, Version=, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86. Could not load file or assembly 'Microsoft.VisualStudio.Shell.9.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [SOLVED]

[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:

Similarly, if you are using vagrant I recommend to use Vagrant 1.7.2. Please note that not all versions of vagrant and virtual box are compatible with each other.

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

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.


STEP 1. Install Python geospatial packages

Install the dependencies as described-

For my project, I used 32 bit installers and Python 2.7. Strictly follow the python Geospatial package dependency installation orders and do not mix the 64 bit and 32 bit dependencies

STEP 2. Install the Tiler tools

Download and unzip the Tiler tool from:

STEP 3. Set Python and Gdal path in Tiler’s bat file

Open : tilers-tools.bat from unzipped Tiler tool
         set PYTHON=C:\Python27 ( As you assigned the path in Step 1)
         set GDAL=C:\Program Files (x86)\GDAL ( As you assigned the path in Step 1)

STEP 4. Environmental variable setting on your machine

Set GDAL_DATA & path in your environmental variable setting.

                   Variable          Value

       GDAL_DATA = C:\Program Files (x86)\GDAL\gdal-data

        path = C:\Program Files (x86)\GDAL

Easy 5 steps to get thumbnails out of Pdf using Python

1) Install Ghost script before python dependencies installation from:

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 wand.image import Image  
 from wand.display import display  
 fileDirectory = "D:/files/"  
 imageFromPdf = Image(filename=fileDirectory+inFileName)  
 pages = len(imageFromPdf.sequence)  
 image = Image(  
   height=imageFromPdf.height * pages  
 for i in range(pages):  
     top=imageFromPdf.height * i,  

5) Let me know if you have any trouble.

Plan for Future Landsat Program: NASA, USGS Begin Work on Landsat 9 to Continue Land Imaging Legacy

NASA and the U.S. Geological Survey (USGS) have started work on Landsat 9, planned to launch in 2023, which will extend the Earth-observing program’s record of land images to half a century. The year 2023 seems like a long way off, however.  
The Landsat program has provided accurate measurements of Earth’s land cover since 1972. With data from Landsat satellites, ecologists have tracked deforestation in South America, water managers have monitored irrigation of farmland in the American West, and researchers have watched the growth of cities worldwide. With the help of the program’s open archive, firefighters have assessed the severity of wildfires and scientists have mapped the retreat of mountain glaciers.
The President’s fiscal year 2016 budget calls for initiation of a Landsat 9 spacecraft as an upgraded rebuild of Landsat 8, as well as development of a low-cost thermal infrared (TIR) free-flying satellite for launch in 2019 to reduce the risk of a data gap in this important measurement. The TIR free flyer will ensure data continuity by flying in formation with Landsat 8. The budget also calls for the exploration of technology and systems innovations to provide more cost effective and advanced capabilities in future land-imaging missions beyond Landsat 9, such as finding ways to miniaturize instruments to be launched on smaller, less expensive satellites.
“Moving out on Landsat 9 is a high priority for NASA and USGS as part of a sustainable land imaging program that will serve the nation into the future as the current Landsat program has done for decades,” said John Grunsfeld, associate administrator for science at NASA Headquarters, Washington. “Continuing the critical observations made by the Landsat satellites is important now and their value will only grow in the future, given the long term environmental changes we are seeing on planet Earth.”
Because an important part of the land imaging program is to provide consistent long-term observations, this mission will largely replicate its predecessor Landsat 8. The mission will carry two instruments, one that captures views of the planet in visible, near infrared and shortwave-infrared light, and another that measures the thermal infrared radiation, or heat, of Earth’s surfaces. These instruments have sensors with moderate resolution and the ability to detect more variation in intensity than the first seven satellites in the Landsat program. Source

How to remove twitter headers and footer from twitter widget?

There are two ways to remove twitter headers and footer from the widget:

Method 1: Add data-chrome attribute to anchor tag

<a class="twitter-timeline" href="" data-widget-id="YOUR_WIDGET_ID" data-chrome="nofooter noborders transparent">Tweets by @TWITTER_ID </a>

Method 2: Using CSS

.timeline-header, .timeline-footer
          display:none ;

More customization on Embedded timelines : Customization Options

Conference: FOSS4G Seoul 2015, FOSS4G First Time in Asia

The annual FOSS4G conference is the largest global gathering focused on open source geospatial solution. FOSS4G brings together developers, users, decision-makers and businessmen from a broad spectrum of organizations and fields of operation. Through six days of workshops, presentations, discussions and code sprint, FOSS4G participants create effective and relevant geospatial products, standards, human networks and business opportunities.

FOSS4G Seoul team is very pleased to announce that FOSS4G Seoul conference is now open for registration.  This year’s International FOSS4G will be held in The-K Hotel, Seoul, 14-19 September, for the first time in Asia.  

Recent Posts

Powered by Blogger.

Follow by Email

Total Pageviews