<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.168.30.40&amp;*</id>
		<title>MohidWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=192.168.30.40&amp;*"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=Special:Contributions/192.168.30.40"/>
		<updated>2026-04-05T08:59:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=749</id>
		<title>PROJ4</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=PROJ4&amp;diff=749"/>
				<updated>2008-05-02T12:56:17Z</updated>
		
		<summary type="html">&lt;p&gt;192.168.30.40: PROJ4 - Cartographic Projections library&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section explains how to use PROJ4 library from Fortran. &lt;br /&gt;
[http://proj.maptools.org/ PROJ4] is a Cartographic Projections library originally written by Gerald Evenden then of the USGS. This library has almost all projection types. &lt;br /&gt;
Fortran wrapper code was developed as part of the [http://www.cbcb.umd.edu/software/glimmer/ GLIMMER] project and can be found in [http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Compilation==&lt;br /&gt;
===UNIX===&lt;br /&gt;
Just follow the instructions.&lt;br /&gt;
===Windows===&lt;br /&gt;
*Download [[\\kepler\Software\PROJ4\libfproj4.lib]] for Compaq Visual Studio, or&lt;br /&gt;
*Compile W32 static lib:&lt;br /&gt;
*#Extract proj4 source code and configure it (bash configure).&lt;br /&gt;
*#New project W32 static lib&lt;br /&gt;
*#Add fort-proj.c (from libfproj4-1.0.tar.gz) and all *.c files (from proj4 source), except all that have main function : css2css, geod, nad2bin, nad2nad, proj.c.&lt;br /&gt;
*# Project Settings / C/C++ / General / Preprocessor definitions : VISUAL_CPLUSPLUS ou IFORT&lt;br /&gt;
*# Project Settings / C/C++ / Preprocessor / include : whatever\proj-4.6.0\src (the folder that has projects.h, because of directives #include &amp;lt;projects.h&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==Test Fortran API==&lt;br /&gt;
===UNIX===&lt;br /&gt;
*pgf95 -g  -o libfproj4_teste.exe  libfproj4_teste.f90 /home/jjdd/Downloads/libfproj4-1.0/libfproj4.a -lproj -lm&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
*Files needed: libfproj4.lib, proj4.inc, proj4.f90, test-proj.f90&lt;br /&gt;
#New Fortran console application&lt;br /&gt;
#add fortran files&lt;br /&gt;
#project settings:&lt;br /&gt;
## Link / Input / Obj/library modules : libfproj4.lib&lt;br /&gt;
## Link / Input / Additional include path : path to libfproj4.lib and proj4.inc)&lt;br /&gt;
&lt;br /&gt;
==Ellipsoids==&lt;br /&gt;
*List of ellipsoids in PROJ4: proj -le&lt;br /&gt;
*More popular:&lt;br /&gt;
**International 1909 (Hayford)  intl		a=6378388.0m	b=6356912m     rf=297.          &lt;br /&gt;
**New International 1967	new_intl 	a=6378157.5m	b=6356772m      &lt;br /&gt;
**WGS 84    			WGS84 		a=6378137.0m    b=6357002m     rf=298.257223563 &lt;br /&gt;
**Normal Sphere (r=6370997)	sphere 		a=6370997.0m    b=6370997m      &lt;br /&gt;
&lt;br /&gt;
b = a*(1-f) = a*(1-1/rf)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Portuguese Coordinate Systems in PROJ4==&lt;br /&gt;
&lt;br /&gt;
===Portuguese Military Coordinates (Hayford-Gauss Military System)===&lt;br /&gt;
&lt;br /&gt;
*Projection: Gauss-Kruger&lt;br /&gt;
*Ellipsoid: Hayford (internacional 1924): a=6378.388Km, b=6356.912 Km&lt;br /&gt;
*Datum : Lisbon (Castelo S.Jorge: 38º42’43.631’’N, 9º07’54.862’'W, 111.229m)&lt;br /&gt;
*Central Point: 39º40’N, 8º07’54.862’’W &lt;br /&gt;
*Origin: -200Km horizontally and -300 Km vertically&lt;br /&gt;
*Usage: &lt;br /&gt;
**'''+init=epsg:20790''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 &lt;br /&gt;
+x_0=200000 +y_0=300000 +ellps=intl +pm=lisbon +units=m +no_defs  no_defs &amp;lt;&amp;gt;&lt;br /&gt;
**'''+init=esri:102164''' &amp;lt;=&amp;gt; +proj=tmerc +lat_0=39.666666667 +lon_0=-8.131906111 +k=1.000000 &lt;br /&gt;
+x_0=200000.000 +y_0=300000.000 +ellps=intl +units=m (no reference to Lisbon Datum!!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Universal Transverse Mercator (zone 29N)===&lt;br /&gt;
&lt;br /&gt;
*Usage:&lt;br /&gt;
**ModuleHorizontalGrid: '''+init=esri:32629''' &amp;lt;=&amp;gt; +proj=utm +zone=29 +ellps=WGS84 +datum=WGS84 +units=m&lt;br /&gt;
&lt;br /&gt;
=External Links=&lt;br /&gt;
*[http://proj.maptools.org/ PROJ4]&lt;br /&gt;
*[http://forge.nesc.ac.uk/download.php/10/libfproj4-1.0.tar.gz libfproj4-1.0.tar.gz]. &lt;br /&gt;
*[http://www.isa.utl.pt/dm/sigdr/sigdr04-05/9_SistRefPortugueses.ppt Sistemas Referencia Portugueses]&lt;br /&gt;
*[http://dl.maptools.org/dl/omsug/osgis2004/PROJ4_HandlingCoordinateSystems.pdf PROJ4_HandlingCoordinateSystems.pdf]&lt;br /&gt;
*[http://www.posc.org/Epicentre.2_2/DataModel/ExamplesofUsage/eu_cs34.html Projections and Projected Coordinate System Formulas]&lt;/div&gt;</summary>
		<author><name>192.168.30.40</name></author>	</entry>

	</feed>