CategoryScripting and programming

Scripts and snippets of python, php and other languages which you can use

Create KML file by extracting coordinates from DOCX file

It’s been a while since I am writing again. This is not a very interesting topic to create a post with. I use to receive coordinates and name of locations from field staffs of different part of the country. I use to plot these locations over maps and create some reports. Pretty boring stuff! Most of the time these locations are neatly stuffed inside Microsoft word file, commonly in DOCX or XLS files. But recently they sent me 10 similar DOCX file with 128 locations listed. And I am going to create KML file with each of them using Python. Continue reading

Python to change page size and layout for ArcMap

This is a small solution I have been looking for a long time. I can now programmatically change the size of a map layout without opening the mxd in ArcMap. Python lets you handle the programs and codes that runs behind the application without altering the map, symbols and labels in it. Continue reading

Making use of GDAL, RSGISLib and OTB with Python

Today getting a good raster processing environment is not so difficult. The computers are cheaper, storage components are bigger and prices are lower than any time before. Internet is full of tutorials and tips for people who want to start building their own remote sensing lab. This post will reintroduce three most common open-source raster and vector processing libraries which anyone can use – GDAL, RSGISLib Python library and Orfeo Toolbox. Continue reading

Pages: 1 2

Sharing map package (*.mpk) without sharing everything

Just tested this small python snippet to produce map package (*.mpk) from ArcGIS 10.3 Desktop . This package will not reveal full extent of layers in a MXD but only the extent you want. Continue reading

© 2017 ClubGIS

Theme by Anders NorénUp ↑

This work is licensed under Creative Commons.