August Reading

Advertisements

How do I make Index Contours and Label.

Its learning by doing!!!

Get sample contour data [Shapefile format] from this link:

https://www.dropbox.com/s/d8fcih266ucibl9/contour.zip?dl=0

Open your arcmap, load this contour data in arcmap. Mine appear as:

contour_load

Open the attribute table of contour layer. The elevation value of each contour is stored in field “contour” as below:

field_contour

Now add field “index” in this table of type “short integer”. Just as shown below.

index_field

Right click on index column -> Field Calculatior -> choose python button  -> double click on contour ->add % sign

I am gonna make video tutorial.

Here is the link for video. Its in swf format so you need swf player installed in your browser.

Demo video on how to create index contour and label.

I ll be making youtube video later.

How To Add Custom Coordinate Systems in ArcGIS 10.1

Preface:

ArcGIS 10.1 is the commercial suite from GIS software giant ESRI. ArcGIS has several GCS (Geographic Coordinate Systems) and Projected Coordinate Systems addressing all local and global CRS (Coordinate Reference System). [Note: Can anyone tell exact numbers of Coordinate Systems within ArcGIS 10.1].

But

Nepal has adopted the GCS Everest 1830 and MUTM as its projected coordinate system. Please hack through GCS! Everest 1830! UTM! and MUTM!!!.

While following MUTM, Our country’s east-west geographic extent range 80deg East – 88deg East and whole country fits within 3 MUTM zone viz 81deg CM, 84deg CM, 87deg CM.

So there are three different projection systems for three different zones. In ArcGIS all parameters which define the particular projection system are stored in prj file with file extension .prj. (eg Everest_1830.prj).

I have following prj file for Geographic and Projected Coordinate System of Our Country.

coordinatesystems

Now the question is where do I put those files into ArcGIS. I have all those files inside FOLDER named CoordinateSystems.  Initially your Spatial Reference Properties window appears in ArcGIS as seen below:

GISGCS

Copy your CoordinateSystems folder TO this path:

C:\Users\Sankar\AppData\Roaming\ESRI\Desktop10.1\ArcMap\Coordinate Systems\CordinateSystems.

Then CoordinateSystems FOLDER appear as below.

GISGCS1

GISGCS2

 

Done.

Please inspire me to explain those unknown terms or Elaborate it.

How to install numpy on Python 2.7.x

Run your command prompt, and type pip install numpy. Mine look like:

cmd1

Oops!!! says pip is not recognizable command.

First go to C:Python27/Scripts and you can see there lots of .exe files. Mine looks like:

pip_loc

So there is pip.exe within your python folder. To execute this pip.exe from command prompt, You need to add path “C:/Python27/Scripts” to your system variable “path”.

Add “C:/Python27/Scripts” to “path” variable. It looks like:

path

Now your command from command prompt search for pip.exe inside “C:/Python27/Scripts” .

Run your command prompt. Type “pip install numpy” and wait for a while.

numpy

Ok. you are good to go.

Open IDLE(Python GUI). Type import numpy. Now you can use all the functionalities of numpy.

How to install GDAL on windows

Download & Install python 2.7.x from  python.org. You can directly get python 2.7.12 version for 64-bit architecture here.

To install GDAL Library:

Go to the this site from Christoph Gohlke. This site provides you with lots of unofficial windows binaries python extension packages. Packages are alphabetically ordered and since we need GDAL for python, scroll down to GDAL section. Which appears like below:capture

You can see the [GDAL version] [Python version] [architecture] piecewise

You first check your architecture version of your pc whether 64-bit or 32-bit version. Determine your python version and its already 2.7.x version and GDAL version you want.

Download .whl file and place it in a local drive folder as you want.

Run command prompt. Change directory to where you have put the .whl file. Mine is as shown:

adress

My command prompt look like:

cmd1

Then type: pip install GDAL-2.1.3-cp27-cp27m-win_amd64.whl on command prompt as below:

cmd2

In my case GDAL is already installed so it says requirement is already made. In your case try these, you ll get GDAL installed.