Revision 256
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/Makefilemac | ||
---|---|---|
1 |
############################################################################### |
|
2 |
# Makefile automatically generated by Code::Blocks IDE # |
|
3 |
############################################################################### |
|
4 |
|
|
5 |
# Project: CrsJniProj |
|
6 |
# Project filename: /home/dguerrero/Desarrollo-gvSIG/crs/workspace/libjni-proj4/CrsJniProj.cbp |
|
7 |
# Compiler used: GNU GCC Compiler |
|
8 |
|
|
9 |
### Variables used in this Makefile |
|
10 |
default_CC=gcc |
|
11 |
default_CPP=g++ |
|
12 |
default_LD=g++ |
|
13 |
default_LIB=ar |
|
14 |
default_RESCOMP= |
|
15 |
default_ARCH=ppc |
|
16 |
|
|
17 |
### Compiler/linker options |
|
18 |
default_GLOBAL_CFLAGS= |
|
19 |
default_PROJECT_CFLAGS= -DBUILDING_DLL=1 -arch $(default_ARCH) |
|
20 |
default_GLOBAL_LDFLAGS= -Wl,-headerpad_max_install_names -arch $(default_ARCH) |
|
21 |
default_PROJECT_LDFLAGS= |
|
22 |
default_GLOBAL_INCS= -I/usr/include -framework JavaVM -I/System/Library/Frameworks/JavaVM.framework/Headers -fno-common |
|
23 |
default_PROJECT_INCS= -Iinclude |
|
24 |
default_GLOBAL_LIBDIRS= -L/usr/lib -framework JavaVM |
|
25 |
default_PROJECT_LIBDIRS= -L../binaries/mac/crs/ |
|
26 |
default_GLOBAL_LIBS= |
|
27 |
default_PROJECT_LIBS= -lproj |
|
28 |
|
|
29 |
### Targets compiler flags |
|
30 |
default_CFLAGS= $(default_PROJECT_CFLAGS) $(default_GLOBAL_CFLAGS) |
|
31 |
|
|
32 |
### Targets linker flags |
|
33 |
default_LDFLAGS= $(default_PROJECT_LDFLAGS) $(default_GLOBAL_LDFLAGS) |
|
34 |
|
|
35 |
### Targets include directories |
|
36 |
default_INCS= $(default_PROJECT_INCS) $(default_GLOBAL_INCS) |
|
37 |
|
|
38 |
### Targets library directories |
|
39 |
default_LIBDIRS= $(default_PROJECT_LIBDIRS) $(default_GLOBAL_LIBDIRS) |
|
40 |
|
|
41 |
### Targets libraries |
|
42 |
default_LIBS= $(default_PROJECT_LIBS) $(default_GLOBAL_LIBS) |
|
43 |
|
|
44 |
############################################################################### |
|
45 |
# You shouldn't need to modify anything beyond this point # |
|
46 |
############################################################################### |
|
47 |
|
|
48 |
### Objects used in this Makefile |
|
49 |
default_OBJS=dist/src/crsJniProj.o |
|
50 |
default_LINKOBJS=$(default_OBJS) |
|
51 |
default_DEPS=.deps/src/crsJniProj.d |
|
52 |
|
|
53 |
### The targets of this project |
|
54 |
default_BIN=dist/libcrsjniproj.jnilib |
|
55 |
default_STATIC_LIB=dist/libcrsjniproj.a |
|
56 |
default_LIB_DEF=dist/libcrsjniproj.def |
|
57 |
|
|
58 |
.PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom depend_default default-before default-after |
|
59 |
|
|
60 |
all: all-before default all-after |
|
61 |
|
|
62 |
|
|
63 |
dist: |
|
64 |
@zip CrsJniProj.cbp.zip CrsJniProj.cbp Makefile src/crsJniProj.c |
|
65 |
|
|
66 |
clean_default: |
|
67 |
@echo Cleaning target "default"... |
|
68 |
@$(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE) $(default_STATIC_LIB) $(default_LIB_DEF) |
|
69 |
|
|
70 |
distclean_default: |
|
71 |
@echo Dist-cleaning target "default"... |
|
72 |
@$(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE) $(default_STATIC_LIB) $(default_LIB_DEF) |
|
73 |
|
|
74 |
clean: clean_default |
|
75 |
|
|
76 |
distclean: distclean_default |
|
77 |
|
|
78 |
depend_default_DIRS: |
|
79 |
-@if ! test -d .deps; then mkdir .deps; fi |
|
80 |
-@if ! test -d .deps/src; then mkdir .deps/src; fi |
|
81 |
|
|
82 |
depend_default: depend_default_DIRS $(default_DEPS) |
|
83 |
|
|
84 |
depend: depend_default |
|
85 |
|
|
86 |
default_DIRS: |
|
87 |
-@if ! test -d dist; then mkdir dist; fi |
|
88 |
-@if ! test -d dist/src; then mkdir dist/src; fi |
|
89 |
-@if ! test -d dist; then mkdir dist; fi |
|
90 |
|
|
91 |
default: depend_default default_DIRS default-before $(default_BIN) default-after |
|
92 |
|
|
93 |
$(default_BIN): $(default_LINKOBJS) $(default_RESOURCE) |
|
94 |
@echo Linking shared library "dist/libcrsjniproj.jnilib"... |
|
95 |
@$(default_LD) -dynamiclib $(default_LIBDIRS) $(default_LINKOBJS) $(default_RESOURCE) -o $(default_BIN) $(default_LDFLAGS) $(default_LIBS) |
|
96 |
|
|
97 |
.deps/src/crsJniProj.d: src/crsJniProj.c |
|
98 |
@echo Calculating dependencies for "src/crsJniProj.c"... |
|
99 |
@$(default_CC) -MM $(default_CFLAGS) -MF .deps/src/crsJniProj.d -MT dist/src/crsJniProj.o $(default_INCS) src/crsJniProj.c |
|
100 |
|
|
101 |
dist/src/crsJniProj.o: .deps/src/crsJniProj.d |
|
102 |
@echo Compiling "src/crsJniProj.c"... |
|
103 |
@$(default_CC) $(default_CFLAGS) $(default_INCS) -c src/crsJniProj.c -o dist/src/crsJniProj.o |
|
104 |
|
|
105 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/CrsJniProj.layout | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!DOCTYPE CodeBlocks_layout_file> |
|
3 |
<CodeBlocks_layout_file> |
|
4 |
<File name="src\crsJniProj.c" open="1" top="1"> |
|
5 |
<Cursor position="8341" topLine="21"/> |
|
6 |
</File> |
|
7 |
</CodeBlocks_layout_file> |
|
8 |
[Editors] |
|
9 |
Focused=-1 |
|
10 |
Order=-1 |
|
11 |
[Editor_0] |
|
12 |
Open=1 |
|
13 |
Top=1 |
|
14 |
CursorCol=68 |
|
15 |
CursorRow=26 |
|
16 |
TopLine=75 |
|
17 |
LeftChar=1 |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/.classpath | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<classpath> |
|
3 |
<classpathentry kind="src" path=""/> |
|
4 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> |
|
5 |
<classpathentry kind="output" path=""/> |
|
6 |
</classpath> |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/CrsJniProj.dev | ||
---|---|---|
1 |
[Project] |
|
2 |
FileName=CrsJniProj.dev |
|
3 |
Name=CrsJniProj |
|
4 |
UnitCount=1 |
|
5 |
Type=3 |
|
6 |
Ver=1 |
|
7 |
ObjFiles= |
|
8 |
Includes=C:\j2sdk1.4.2_11\include;C:\j2sdk1.4.2_11\include\win32;C:\desarrollo\crs\workspace\libjni-proj4\include |
|
9 |
Libs= |
|
10 |
PrivateResource= |
|
11 |
ResourceIncludes= |
|
12 |
MakeIncludes= |
|
13 |
Compiler=-DBUILDING_DLL=1_@@_ |
|
14 |
CppCompiler=-DBUILDING_DLL=1_@@_ |
|
15 |
Linker=--no-export-all-symbols --add-stdcall-alias_@@_proj.dll_@@_ |
|
16 |
IsCpp=0 |
|
17 |
Icon= |
|
18 |
ExeOutput=dist |
|
19 |
ObjectOutput=dist |
|
20 |
OverrideOutput=0 |
|
21 |
OverrideOutputName=CrsJniProj.dll |
|
22 |
HostApplication= |
|
23 |
Folders= |
|
24 |
CommandLine= |
|
25 |
UseCustomMakefile=0 |
|
26 |
CustomMakefile= |
|
27 |
IncludeVersionInfo=0 |
|
28 |
SupportXPThemes=0 |
|
29 |
CompilerSet=0 |
|
30 |
CompilerSettings=0000000000000000000000 |
|
31 |
|
|
32 |
[VersionInfo] |
|
33 |
Major=0 |
|
34 |
Minor=1 |
|
35 |
Release=1 |
|
36 |
Build=1 |
|
37 |
LanguageID=1033 |
|
38 |
CharsetID=1252 |
|
39 |
CompanyName= |
|
40 |
FileVersion= |
|
41 |
FileDescription=Developed using the Dev-C++ IDE |
|
42 |
InternalName= |
|
43 |
LegalCopyright= |
|
44 |
LegalTrademarks= |
|
45 |
OriginalFilename= |
|
46 |
ProductName= |
|
47 |
ProductVersion= |
|
48 |
AutoIncBuildNr=0 |
|
49 |
|
|
50 |
[Unit1] |
|
51 |
FileName=src\crsJniProj.c |
|
52 |
CompileCpp=0 |
|
53 |
Folder=CrsJniProj |
|
54 |
Compile=1 |
|
55 |
Link=1 |
|
56 |
Priority=1000 |
|
57 |
OverrideBuildCmd=0 |
|
58 |
BuildCmd= |
|
59 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/dist/libCrsJniProj.def | ||
---|---|---|
1 |
; dlltool --base-file C:\DOCUME~1\Diego\CONFIG~1\Temp/cca03300.base --output-exp CrsJniProj.exp --dllname CrsJniProj.dll --output-def dist/libCrsJniProj.def --no-export-all-symbols --add-stdcall-alias --exclude-symbol=DllMainCRTStartup@12 --def C:\DOCUME~1\Diego\CONFIG~1\Temp/cca03300.def --output-lib dist/libCrsJniProj.a |
|
2 |
EXPORTS |
|
3 |
Java_org_gvsig_crs_proj_JNIBaseCrs_freeCrs = Java_org_gvsig_crs_proj_JNIBaseCrs_freeCrs@16 @ 1 |
|
4 |
Java_org_gvsig_crs_proj_JNIBaseCrs_freeCrs@16 @ 2 |
|
5 |
Java_org_gvsig_crs_proj_JNIBaseCrs_getErrno = Java_org_gvsig_crs_proj_JNIBaseCrs_getErrno@8 @ 3 |
|
6 |
Java_org_gvsig_crs_proj_JNIBaseCrs_getErrno@8 @ 4 |
|
7 |
Java_org_gvsig_crs_proj_JNIBaseCrs_isLatlong = Java_org_gvsig_crs_proj_JNIBaseCrs_isLatlong@16 @ 5 |
|
8 |
Java_org_gvsig_crs_proj_JNIBaseCrs_isLatlong@16 @ 6 |
|
9 |
Java_org_gvsig_crs_proj_JNIBaseCrs_loadCrs = Java_org_gvsig_crs_proj_JNIBaseCrs_loadCrs@12 @ 7 |
|
10 |
Java_org_gvsig_crs_proj_JNIBaseCrs_loadCrs@12 @ 8 |
|
11 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operation = Java_org_gvsig_crs_proj_JNIBaseCrs_operation@36 @ 9 |
|
12 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operation@36 @ 10 |
|
13 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operationArraySimple = Java_org_gvsig_crs_proj_JNIBaseCrs_operationArraySimple@28 @ 11 |
|
14 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operationArraySimple@28 @ 12 |
|
15 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operationSimple = Java_org_gvsig_crs_proj_JNIBaseCrs_operationSimple@48 @ 13 |
|
16 |
Java_org_gvsig_crs_proj_JNIBaseCrs_operationSimple@48 @ 14 |
|
17 |
Java_org_gvsig_crs_proj_JNIBaseCrs_strErrno = Java_org_gvsig_crs_proj_JNIBaseCrs_strErrno@12 @ 15 |
|
18 |
Java_org_gvsig_crs_proj_JNIBaseCrs_strErrno@12 @ 16 |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/.deps/src/crsJniProj.d | ||
---|---|---|
1 |
dist/src/crsJniProj.o: src/crsJniProj.c include/projects.h \ |
|
2 |
include/proj_api.h include/proj_api.h |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/CMakeModules/FindPROJ.cmake | ||
---|---|---|
1 |
# Locate proj |
|
2 |
# This module defines |
|
3 |
# PROJ_LIBRARY |
|
4 |
# PROJ_FOUND, if false, do not try to link to proj |
|
5 |
# PROJ_INCLUDE_DIR, where to find the headers |
|
6 |
# |
|
7 |
# $PROJDIR is an environment variable that would |
|
8 |
# correspond to the ./configure --prefix=$PROJ_DIR |
|
9 |
# used in building proj. |
|
10 |
# |
|
11 |
# Created by Eric Wing. I'm not a proj user, but OpenSceneGraph uses it |
|
12 |
# for osgTerrain so I whipped this module together for completeness. |
|
13 |
# I actually don't know the conventions or where files are typically |
|
14 |
# placed in distros. |
|
15 |
# Any real proj users are encouraged to correct this (but please don't |
|
16 |
# break the OS X framework stuff when doing so which is what usually seems |
|
17 |
# to happen). |
|
18 |
|
|
19 |
# This makes the presumption that you are include proj.h like |
|
20 |
# #include "proj.h" |
|
21 |
|
|
22 |
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h |
|
23 |
PATHS |
|
24 |
$ENV{PROJ_DIR} |
|
25 |
NO_DEFAULT_PATH |
|
26 |
PATH_SUFFIXES include |
|
27 |
) |
|
28 |
|
|
29 |
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h |
|
30 |
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this. |
|
31 |
NO_DEFAULT_PATH |
|
32 |
PATH_SUFFIXES include |
|
33 |
) |
|
34 |
|
|
35 |
FIND_PATH(PROJ_INCLUDE_DIR proj_api.h |
|
36 |
PATHS |
|
37 |
~/Library/Frameworks/proj.framework/Headers |
|
38 |
/Library/Frameworks/proj.framework/Headers |
|
39 |
/usr/local/include/proj |
|
40 |
/usr/local/include/PROJ |
|
41 |
/usr/local/include |
|
42 |
/usr/include/proj |
|
43 |
/usr/include/PROJ |
|
44 |
/usr/include |
|
45 |
/sw/include/proj |
|
46 |
/sw/include/PROJ |
|
47 |
/sw/include # Fink |
|
48 |
/opt/local/include/proj |
|
49 |
/opt/local/include/PROJ |
|
50 |
/opt/local/include # DarwinPorts |
|
51 |
/opt/csw/include/proj |
|
52 |
/opt/csw/include/PROJ |
|
53 |
/opt/csw/include # Blastwave |
|
54 |
/opt/include/proj |
|
55 |
/opt/include/PROJ |
|
56 |
/opt/include |
|
57 |
) |
|
58 |
|
|
59 |
MARK_AS_ADVANCED(PROJ_INCLUDE_DIR) |
|
60 |
|
|
61 |
FIND_LIBRARY(PROJ_LIBRARY |
|
62 |
NAMES proj PROJ |
|
63 |
PATHS |
|
64 |
$ENV{PROJ_DIR} |
|
65 |
NO_DEFAULT_PATH |
|
66 |
PATH_SUFFIXES lib64 lib |
|
67 |
) |
|
68 |
FIND_LIBRARY(PROJ_LIBRARY |
|
69 |
NAMES proj PROJ |
|
70 |
PATHS ${CMAKE_PREFIX_PATH} # Unofficial: We are proposing this. |
|
71 |
NO_DEFAULT_PATH |
|
72 |
PATH_SUFFIXES lib64 lib |
|
73 |
) |
|
74 |
FIND_LIBRARY(PROJ_LIBRARY |
|
75 |
NAMES proj PROJ |
|
76 |
PATHS |
|
77 |
~/Library/Frameworks |
|
78 |
/Library/Frameworks |
|
79 |
/usr/local |
|
80 |
/usr |
|
81 |
/sw |
|
82 |
/opt/local |
|
83 |
/opt/csw |
|
84 |
/opt |
|
85 |
/usr/freeware |
|
86 |
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\ Manager\\Environment;PROJ_ROOT]/lib |
|
87 |
PATH_SUFFIXES lib64 lib |
|
88 |
) |
|
89 |
|
|
90 |
MARK_AS_ADVANCED(PROJ_LIBRARY) |
|
91 |
|
|
92 |
SET(PROJ_FOUND "NO") |
|
93 |
IF(PROJ_LIBRARY AND PROJ_INCLUDE_DIR) |
|
94 |
SET(PROJ_FOUND "YES") |
|
95 |
SET(PROJ_LIBRARY_DEBUG ${PROJ_LIBRARY}) |
|
96 |
ENDIF(PROJ_LIBRARY AND PROJ_INCLUDE_DIR) |
|
97 |
|
|
98 |
|
|
99 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/Makefile.win | ||
---|---|---|
1 |
# Project: CrsJniProj |
|
2 |
# Makefile created by Dev-C++ 4.9.9.2 |
|
3 |
|
|
4 |
CPP = g++.exe |
|
5 |
CC = gcc.exe |
|
6 |
WINDRES = windres.exe |
|
7 |
RES = |
|
8 |
OBJ = dist/crsJniProj.o $(RES) |
|
9 |
LINKOBJ = dist/crsJniProj.o $(RES) |
|
10 |
LIBS = -L"C:/Dev-Cpp/lib" --no-export-all-symbols --add-stdcall-alias proj.dll |
|
11 |
INCS = -I"C:/Dev-Cpp/include" -I"C:/j2sdk1.4.2_13/include" -I"C:/j2sdk1.4.2_13/include/win32" -I"E:/desarrollo/crs/workspace/libjni-proj4/include" |
|
12 |
CXXINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/j2sdk1.4.2_13/include" -I"C:/j2sdk1.4.2_13/include/win32" -I"E:/desarrollo/crs/workspace/libjni-proj4/include" |
|
13 |
BIN = dist/CrsJniProj.dll |
|
14 |
CXXFLAGS = $(CXXINCS) -DBUILDING_DLL=1 |
|
15 |
CFLAGS = $(INCS) -DBUILDING_DLL=1 |
|
16 |
RM = rm -f |
|
17 |
|
|
18 |
.PHONY: all all-before all-after clean clean-custom |
|
19 |
|
|
20 |
all: all-before dist/CrsJniProj.dll all-after |
|
21 |
|
|
22 |
|
|
23 |
clean: clean-custom |
|
24 |
${RM} $(OBJ) $(BIN) |
|
25 |
|
|
26 |
DLLWRAP=dllwrap.exe |
|
27 |
DEFFILE=dist/libCrsJniProj.def |
|
28 |
STATICLIB=dist/libCrsJniProj.a |
|
29 |
|
|
30 |
$(BIN): $(LINKOBJ) |
|
31 |
$(DLLWRAP) --output-def $(DEFFILE) --implib $(STATICLIB) $(LINKOBJ) $(LIBS) -o $(BIN) |
|
32 |
|
|
33 |
dist/crsJniProj.o: src/crsJniProj.c |
|
34 |
$(CC) -c src/crsJniProj.c -o dist/crsJniProj.o $(CFLAGS) |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/Readme.txt | ||
---|---|---|
1 |
|
|
2 |
La libreria esta compilada dentro del proyecto CrsJniProj.dev con el programa Dev-cpp. |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/CMakeLists.txt | ||
---|---|---|
1 |
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) |
|
2 |
|
|
3 |
IF(WIN32) |
|
4 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6 FATAL_ERROR) |
|
5 |
ELSE(WIN32) |
|
6 |
IF(APPLE) |
|
7 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) |
|
8 |
ELSE(APPLE) |
|
9 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR) |
|
10 |
ENDIF(APPLE) |
|
11 |
ENDIF(WIN32) |
|
12 |
|
|
13 |
if(COMMAND cmake_policy) |
|
14 |
# Works around warnings libraries linked against that don't |
|
15 |
# have absolute paths (e.g. -lpthreads) |
|
16 |
cmake_policy(SET CMP0003 NEW) |
|
17 |
|
|
18 |
# Works around warnings about escaped quotes in ADD_DEFINITIONS |
|
19 |
# statements. |
|
20 |
cmake_policy(SET CMP0005 NEW) |
|
21 |
|
|
22 |
# cmake-2.6.1 introduces policy cmp0008 decide how to treat full path libraries that do not appear to be valid library file names |
|
23 |
# quote from cvslog "Such libraries worked by accident in the VS IDE and Xcode generators in CMake 2.4 and below." |
|
24 |
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4 AND ${CMAKE_PATCH_VERSION} GREATER 0) |
|
25 |
cmake_policy(SET CMP0008 OLD) |
|
26 |
endif() |
|
27 |
endif() |
|
28 |
|
|
29 |
PROJECT(jproj) |
|
30 |
|
|
31 |
SET(JGDAL_VERSION_MAJOR "1") |
|
32 |
SET(JGDAL_VERSION_MINOR "9") |
|
33 |
SET(JGDAL_VERSION_PATCH "0") |
|
34 |
SET(VERSION "") # ${JGDAL_VERSION_MAJOR}.${JGDAL_VERSION_MINOR}.${JGDAL_VERSION_PATCH}") |
|
35 |
|
|
36 |
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../build/CMakeModules;${CMAKE_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}") |
|
37 |
|
|
38 |
FIND_PACKAGE(DepMan REQUIRED) |
|
39 |
INCLUDE(GeneralMacros) |
|
40 |
|
|
41 |
CONFIGURE_DEFAULTS() |
|
42 |
|
|
43 |
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
|
44 |
SET(CMAKE_INSTALL_PREFIX |
|
45 |
${DEPMAN_PATH} CACHE PATH "depman path install prefix" FORCE |
|
46 |
) |
|
47 |
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
|
48 |
|
|
49 |
FIND_PACKAGE(JNI REQUIRED) |
|
50 |
#FIND_PACKAGE(PROJ REQUIRED) |
|
51 |
|
|
52 |
ADD_SUBDIRECTORY(src) |
|
53 |
|
|
54 |
CONFIGURE_END() |
|
55 |
|
|
56 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/Makefile | ||
---|---|---|
1 |
############################################################################### |
|
2 |
# Makefile automatically generated by Code::Blocks IDE # |
|
3 |
############################################################################### |
|
4 |
|
|
5 |
# Project: CrsJniProj |
|
6 |
# Project filename: /home/dguerrero/Desarrollo-gvSIG/crs/workspace/libjni-proj4/CrsJniProj.cbp |
|
7 |
# Compiler used: GNU GCC Compiler |
|
8 |
|
|
9 |
### Variables used in this Makefile |
|
10 |
default_CC=gcc |
|
11 |
default_CPP=g++ |
|
12 |
default_LD=g++ |
|
13 |
default_LIB=ar |
|
14 |
default_RESCOMP= |
|
15 |
|
|
16 |
### Compiler/linker options |
|
17 |
default_GLOBAL_CFLAGS= |
|
18 |
default_PROJECT_CFLAGS= -DBUILDING_DLL=1 |
|
19 |
default_GLOBAL_LDFLAGS= |
|
20 |
default_PROJECT_LDFLAGS= |
|
21 |
default_GLOBAL_INCS= -I/usr/include |
|
22 |
default_PROJECT_INCS= -Iinclude -I/usr/local/j2sdk1.4.2_13/include -I/usr/local/j2sdk1.4.2_13/include/linux |
|
23 |
default_GLOBAL_LIBDIRS= -L/usr/lib |
|
24 |
default_PROJECT_LIBDIRS= |
|
25 |
default_GLOBAL_LIBS= |
|
26 |
default_PROJECT_LIBS= -lproj |
|
27 |
|
|
28 |
### Targets compiler flags |
|
29 |
default_CFLAGS= $(default_PROJECT_CFLAGS) $(default_GLOBAL_CFLAGS) |
|
30 |
|
|
31 |
### Targets linker flags |
|
32 |
default_LDFLAGS= $(default_PROJECT_LDFLAGS) $(default_GLOBAL_LDFLAGS) |
|
33 |
|
|
34 |
### Targets include directories |
|
35 |
default_INCS= $(default_PROJECT_INCS) $(default_GLOBAL_INCS) |
|
36 |
|
|
37 |
### Targets library directories |
|
38 |
default_LIBDIRS= $(default_PROJECT_LIBDIRS) $(default_GLOBAL_LIBDIRS) |
|
39 |
|
|
40 |
### Targets libraries |
|
41 |
default_LIBS= $(default_PROJECT_LIBS) $(default_GLOBAL_LIBS) |
|
42 |
|
|
43 |
############################################################################### |
|
44 |
# You shouldn't need to modify anything beyond this point # |
|
45 |
############################################################################### |
|
46 |
|
|
47 |
### Objects used in this Makefile |
|
48 |
default_OBJS=dist/src/crsJniProj.o |
|
49 |
default_LINKOBJS=$(default_OBJS) |
|
50 |
default_DEPS=.deps/src/crsJniProj.d |
|
51 |
|
|
52 |
### The targets of this project |
|
53 |
default_BIN=dist/libcrsjniproj.so.0.1.1 |
|
54 |
default_STATIC_LIB=dist/libcrsjniproj.a |
|
55 |
default_LIB_DEF=dist/libcrsjniproj.def |
|
56 |
|
|
57 |
.PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom depend_default default-before default-after |
|
58 |
|
|
59 |
all: all-before default all-after |
|
60 |
|
|
61 |
|
|
62 |
dist: |
|
63 |
@zip CrsJniProj.cbp.zip CrsJniProj.cbp Makefile src/crsJniProj.c |
|
64 |
|
|
65 |
clean_default: |
|
66 |
@echo Cleaning target "default"... |
|
67 |
@$(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE) $(default_STATIC_LIB) $(default_LIB_DEF) |
|
68 |
|
|
69 |
distclean_default: |
|
70 |
@echo Dist-cleaning target "default"... |
|
71 |
@$(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE) $(default_STATIC_LIB) $(default_LIB_DEF) |
|
72 |
|
|
73 |
clean: clean_default |
|
74 |
|
|
75 |
distclean: distclean_default |
|
76 |
|
|
77 |
depend_default_DIRS: |
|
78 |
-@if ! test -d .deps; then mkdir .deps; fi |
|
79 |
-@if ! test -d .deps/src; then mkdir .deps/src; fi |
|
80 |
|
|
81 |
depend_default: depend_default_DIRS $(default_DEPS) |
|
82 |
|
|
83 |
depend: depend_default |
|
84 |
|
|
85 |
default_DIRS: |
|
86 |
-@if ! test -d dist; then mkdir dist; fi |
|
87 |
-@if ! test -d dist/src; then mkdir dist/src; fi |
|
88 |
-@if ! test -d dist; then mkdir dist; fi |
|
89 |
|
|
90 |
default: depend_default default_DIRS default-before $(default_BIN) default-after |
|
91 |
|
|
92 |
$(default_BIN): $(default_LINKOBJS) $(default_RESOURCE) |
|
93 |
@echo Linking shared library "dist/libcrsjniproj.so.0.1.1"... |
|
94 |
@$(default_LD) -shared $(default_LIBDIRS) $(default_LINKOBJS) $(default_RESOURCE) -o $(default_BIN) $(default_LDFLAGS) $(default_LIBS) |
|
95 |
|
|
96 |
|
|
97 |
.deps/src/crsJniProj.d: src/crsJniProj.c |
|
98 |
@echo Calculating dependencies for "src/crsJniProj.c"... |
|
99 |
@$(default_CC) -MM $(default_CFLAGS) -MF .deps/src/crsJniProj.d -MT dist/src/crsJniProj.o $(default_INCS) src/crsJniProj.c |
|
100 |
|
|
101 |
dist/src/crsJniProj.o: .deps/src/crsJniProj.d |
|
102 |
@echo Compiling "src/crsJniProj.c"... |
|
103 |
@$(default_CC) $(default_CFLAGS) $(default_INCS) -c src/crsJniProj.c -o dist/src/crsJniProj.o |
|
104 |
|
|
105 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/CrsJniProj.depend | ||
---|---|---|
1 |
# depslib dependency file v1.0 |
|
2 |
1159456430 /home/dguerrero/Desarrollo-gvSIG/crs/workspace/libjni-proj4/src/crsJniProj.c |
|
3 |
"projects.h" |
|
4 |
<jni.h> |
|
5 |
<proj_api.h> |
|
6 |
|
|
7 |
1157631091 /home/dguerrero/Desarrollo-gvSIG/crs/workspace/libjni-proj4/include/projects.h |
|
8 |
<math.h> |
|
9 |
<stdio.h> |
|
10 |
<stdlib.h> |
|
11 |
"proj_api.h" |
|
12 |
|
|
13 |
1157631091 /home/dguerrero/Desarrollo-gvSIG/crs/workspace/libjni-proj4/include/proj_api.h |
|
14 |
<math.h> |
|
15 |
<stdlib.h> |
|
16 |
|
|
17 |
1159466398 c:\desarrollo\crs\workspace\libjni-proj4\src\crsjniproj.c |
|
18 |
"projects.h" |
|
19 |
<jni.h> |
|
20 |
<proj_api.h> |
|
21 |
|
|
22 |
1157631091 c:\desarrollo\crs\workspace\libjni-proj4\include\projects.h |
|
23 |
<math.h> |
|
24 |
<stdio.h> |
|
25 |
<stdlib.h> |
|
26 |
"proj_api.h" |
|
27 |
|
|
28 |
1157631091 c:\desarrollo\crs\workspace\libjni-proj4\include\proj_api.h |
|
29 |
<math.h> |
|
30 |
<stdlib.h> |
|
31 |
|
|
32 |
1153214430 c:\j2sdk1.4.2_11\include\jni.h |
|
33 |
<stdio.h> |
|
34 |
<stdarg.h> |
|
35 |
"jni_md.h" |
|
36 |
|
|
37 |
1153214430 c:\j2sdk1.4.2_11\include\win32\jni_md.h |
|
38 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/projects.h | ||
---|---|---|
1 |
/****************************************************************************** |
|
2 |
* $Id: projects.h,v 1.21 2004/10/28 16:08:13 fwarmerdam Exp $ |
|
3 |
* |
|
4 |
* Project: PROJ.4 |
|
5 |
* Purpose: Primary (private) include file for PROJ.4 library. |
|
6 |
* Author: Gerald Evenden |
|
7 |
* |
|
8 |
****************************************************************************** |
|
9 |
* Copyright (c) 2000, Frank Warmerdam |
|
10 |
* |
|
11 |
* Permission is hereby granted, free of charge, to any person obtaining a |
|
12 |
* copy of this software and associated documentation files (the "Software"), |
|
13 |
* to deal in the Software without restriction, including without limitation |
|
14 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
15 |
* and/or sell copies of the Software, and to permit persons to whom the |
|
16 |
* Software is furnished to do so, subject to the following conditions: |
|
17 |
* |
|
18 |
* The above copyright notice and this permission notice shall be included |
|
19 |
* in all copies or substantial portions of the Software. |
|
20 |
* |
|
21 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
22 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
24 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
26 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
27 |
* DEALINGS IN THE SOFTWARE. |
|
28 |
****************************************************************************** |
|
29 |
* |
|
30 |
* $Log: projects.h,v $ |
|
31 |
* Revision 1.21 2004/10/28 16:08:13 fwarmerdam |
|
32 |
* added pj_get_*_ref() accessors |
|
33 |
* |
|
34 |
* Revision 1.20 2004/10/20 17:04:29 fwarmerdam |
|
35 |
* added geos, sterea and supporting gauss code from libproj4 |
|
36 |
* |
|
37 |
* Revision 1.19 2004/08/31 22:57:11 warmerda |
|
38 |
* Don't re-declare hypot() on win32 as it will conflict with math.h as per |
|
39 |
* http://bugzilla.remotesensing.org/show_bug.cgi?id=495 |
|
40 |
* |
|
41 |
* Revision 1.18 2004/04/15 13:56:45 warmerda |
|
42 |
* changed PJD_ERR_GEOCENTRIC to -45 |
|
43 |
* |
|
44 |
* Revision 1.17 2003/03/17 18:56:34 warmerda |
|
45 |
* implement heirarchical NTv2 gridinfos |
|
46 |
* |
|
47 |
* Revision 1.16 2003/03/15 06:02:02 warmerda |
|
48 |
* preliminary NTv2 support, major restructure of datum shifting |
|
49 |
* |
|
50 |
* Revision 1.15 2002/12/14 20:35:15 warmerda |
|
51 |
* fix C_NAMESPACE warning issue with C_NAMESPACE_VAR for variables |
|
52 |
* |
|
53 |
* Revision 1.14 2002/12/14 20:16:21 warmerda |
|
54 |
* added geocentric support, and PJ_CVSID |
|
55 |
* |
|
56 |
* Revision 1.13 2002/12/09 16:01:02 warmerda |
|
57 |
* added prime meridian support |
|
58 |
* |
|
59 |
* Revision 1.12 2002/07/08 02:32:05 warmerda |
|
60 |
* ensure clean C++ builds |
|
61 |
* |
|
62 |
* Revision 1.11 2002/06/20 16:09:31 warmerda |
|
63 |
* removed strtod, reimplement non-GPL strtod cover within dmstor.c |
|
64 |
* |
|
65 |
* Revision 1.10 2002/06/13 14:06:49 warmerda |
|
66 |
* Removed incorrect labelling of 3PARAM and 7PARAM as Molodensky. |
|
67 |
* |
|
68 |
* Revision 1.9 2001/04/06 01:24:13 warmerda |
|
69 |
* Introduced proj_api.h as a public interface for PROJ.4 |
|
70 |
* |
|
71 |
* Revision 1.8 2001/04/05 04:24:10 warmerda |
|
72 |
* added prototypes for new functions, and PJ_VERSION |
|
73 |
* |
|
74 |
* Revision 1.7 2001/02/07 17:55:05 warmerda |
|
75 |
* Cleaned up various warnings when compiled with -Wall. |
|
76 |
* |
|
77 |
* Revision 1.6 2000/11/30 03:37:22 warmerda |
|
78 |
* use proj_strtod() in dmstor() |
|
79 |
* |
|
80 |
* Revision 1.5 2000/07/06 23:36:47 warmerda |
|
81 |
* added lots of datum related stuff |
|
82 |
* |
|
83 |
*/ |
|
84 |
|
|
85 |
/* General projections header file */ |
|
86 |
#ifndef PROJECTS_H |
|
87 |
#define PROJECTS_H |
|
88 |
|
|
89 |
/* standard inclusions */ |
|
90 |
#include <math.h> |
|
91 |
#include <stdio.h> |
|
92 |
#include <stdlib.h> |
|
93 |
|
|
94 |
#ifdef __cplusplus |
|
95 |
#define C_NAMESPACE extern "C" |
|
96 |
#define C_NAMESPACE_VAR extern "C" |
|
97 |
extern "C" { |
|
98 |
#else |
|
99 |
#define C_NAMESPACE extern |
|
100 |
#define C_NAMESPACE_VAR |
|
101 |
#endif |
|
102 |
|
|
103 |
#ifndef NULL |
|
104 |
# define NULL 0 |
|
105 |
#endif |
|
106 |
|
|
107 |
#ifndef FALSE |
|
108 |
# define FALSE 0 |
|
109 |
#endif |
|
110 |
|
|
111 |
#ifndef TRUE |
|
112 |
# define TRUE 1 |
|
113 |
#endif |
|
114 |
|
|
115 |
#ifndef MAX |
|
116 |
# define MIN(a,b) ((a<b) ? a : b) |
|
117 |
# define MAX(a,b) ((a>b) ? a : b) |
|
118 |
#endif |
|
119 |
|
|
120 |
#ifndef ABS |
|
121 |
# define ABS(x) ((x<0) ? (-1*(x)) : x) |
|
122 |
#endif |
|
123 |
|
|
124 |
/* maximum path/filename */ |
|
125 |
#ifndef MAX_PATH_FILENAME |
|
126 |
#define MAX_PATH_FILENAME 1024 |
|
127 |
#endif |
|
128 |
/* prototype hypot for systems where absent */ |
|
129 |
#ifndef _WIN32 |
|
130 |
extern double hypot(double, double); |
|
131 |
#endif |
|
132 |
|
|
133 |
/* some useful constants */ |
|
134 |
#define HALFPI 1.5707963267948966 |
|
135 |
#define FORTPI 0.78539816339744833 |
|
136 |
#define PI 3.14159265358979323846 |
|
137 |
#define TWOPI 6.2831853071795864769 |
|
138 |
|
|
139 |
/* environment parameter name */ |
|
140 |
#ifndef PROJ_LIB |
|
141 |
#define PROJ_LIB "PROJ_LIB" |
|
142 |
#endif |
|
143 |
/* maximum tag id length for +init and default files */ |
|
144 |
#ifndef ID_TAG_MAX |
|
145 |
#define ID_TAG_MAX 50 |
|
146 |
#endif |
|
147 |
|
|
148 |
/* directory delimiter for DOS support */ |
|
149 |
#ifdef DOS |
|
150 |
#define DIR_CHAR '\\' |
|
151 |
#else |
|
152 |
#define DIR_CHAR '/' |
|
153 |
#endif |
|
154 |
|
|
155 |
/* datum_type values */ |
|
156 |
#define PJD_UNKNOWN 0 |
|
157 |
#define PJD_3PARAM 1 |
|
158 |
#define PJD_7PARAM 2 |
|
159 |
#define PJD_GRIDSHIFT 3 |
|
160 |
#define PJD_WGS84 4 /* WGS84 (or anything considered equivelent) */ |
|
161 |
|
|
162 |
/* datum system errors */ |
|
163 |
#define PJD_ERR_GEOCENTRIC -45 |
|
164 |
|
|
165 |
#define USE_PROJUV |
|
166 |
|
|
167 |
typedef struct { double u, v; } projUV; |
|
168 |
typedef struct { double r, i; } COMPLEX; |
|
169 |
|
|
170 |
#ifndef PJ_LIB__ |
|
171 |
#define XY projUV |
|
172 |
#define LP projUV |
|
173 |
#else |
|
174 |
typedef struct { double x, y; } XY; |
|
175 |
typedef struct { double lam, phi; } LP; |
|
176 |
#endif |
|
177 |
|
|
178 |
typedef union { double f; int i; char *s; } PVALUE; |
|
179 |
struct PJconsts; |
|
180 |
|
|
181 |
struct PJ_LIST { |
|
182 |
char *id; /* projection keyword */ |
|
183 |
struct PJconsts *(*proj)(struct PJconsts*);/* projection entry point */ |
|
184 |
char * const *descr; /* description text */ |
|
185 |
}; |
|
186 |
struct PJ_ELLPS { |
|
187 |
char *id; /* ellipse keyword name */ |
|
188 |
char *major; /* a= value */ |
|
189 |
char *ell; /* elliptical parameter */ |
|
190 |
char *name; /* comments */ |
|
191 |
}; |
|
192 |
struct PJ_UNITS { |
|
193 |
char *id; /* units keyword */ |
|
194 |
char *to_meter; /* multiply by value to get meters */ |
|
195 |
char *name; /* comments */ |
|
196 |
}; |
|
197 |
|
|
198 |
struct PJ_DATUMS { |
|
199 |
char *id; /* datum keyword */ |
|
200 |
char *defn; /* ie. "to_wgs84=..." */ |
|
201 |
char *ellipse_id; /* ie from ellipse table */ |
|
202 |
char *comments; /* EPSG code, etc */ |
|
203 |
}; |
|
204 |
|
|
205 |
struct PJ_PRIME_MERIDIANS { |
|
206 |
char *id; /* prime meridian keyword */ |
|
207 |
char *defn; /* offset from greenwich in DMS format. */ |
|
208 |
}; |
|
209 |
|
|
210 |
struct DERIVS { |
|
211 |
double x_l, x_p; /* derivatives of x for lambda-phi */ |
|
212 |
double y_l, y_p; /* derivatives of y for lambda-phi */ |
|
213 |
}; |
|
214 |
|
|
215 |
struct FACTORS { |
|
216 |
struct DERIVS der; |
|
217 |
double h, k; /* meridinal, parallel scales */ |
|
218 |
double omega, thetap; /* angular distortion, theta prime */ |
|
219 |
double conv; /* convergence */ |
|
220 |
double s; /* areal scale factor */ |
|
221 |
double a, b; /* max-min scale error */ |
|
222 |
int code; /* info as to analytics, see following */ |
|
223 |
}; |
|
224 |
#define IS_ANAL_XL_YL 01 /* derivatives of lon analytic */ |
|
225 |
#define IS_ANAL_XP_YP 02 /* derivatives of lat analytic */ |
|
226 |
#define IS_ANAL_HK 04 /* h and k analytic */ |
|
227 |
#define IS_ANAL_CONV 010 /* convergence analytic */ |
|
228 |
/* parameter list struct */ |
|
229 |
typedef struct ARG_list { |
|
230 |
struct ARG_list *next; |
|
231 |
char used; |
|
232 |
char param[1]; } paralist; |
|
233 |
/* base projection data structure */ |
|
234 |
|
|
235 |
|
|
236 |
typedef struct PJconsts { |
|
237 |
XY (*fwd)(LP, struct PJconsts *); |
|
238 |
LP (*inv)(XY, struct PJconsts *); |
|
239 |
void (*spc)(LP, struct PJconsts *, struct FACTORS *); |
|
240 |
void (*pfree)(struct PJconsts *); |
|
241 |
const char *descr; |
|
242 |
paralist *params; /* parameter list */ |
|
243 |
int over; /* over-range flag */ |
|
244 |
int geoc; /* geocentric latitude flag */ |
|
245 |
int is_latlong; /* proj=latlong ... not really a projection at all */ |
|
246 |
int is_geocent; /* proj=geocent ... not really a projection at all */ |
|
247 |
double |
|
248 |
a, /* major axis or radius if es==0 */ |
|
249 |
e, /* eccentricity */ |
|
250 |
es, /* e ^ 2 */ |
|
251 |
ra, /* 1/A */ |
|
252 |
one_es, /* 1 - e^2 */ |
|
253 |
rone_es, /* 1/one_es */ |
|
254 |
lam0, phi0, /* central longitude, latitude */ |
|
255 |
x0, y0, /* easting and northing */ |
|
256 |
k0, /* general scaling factor */ |
|
257 |
to_meter, fr_meter; /* cartesian scaling */ |
|
258 |
|
|
259 |
int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */ |
|
260 |
double datum_params[7]; |
|
261 |
double from_greenwich; /* prime meridian offset (in radians) */ |
|
262 |
|
|
263 |
#ifdef PROJ_PARMS__ |
|
264 |
PROJ_PARMS__ |
|
265 |
#endif /* end of optional extensions */ |
|
266 |
} PJ; |
|
267 |
|
|
268 |
/* public API */ |
|
269 |
#include "proj_api.h" |
|
270 |
|
|
271 |
/* Generate pj_list external or make list from include file */ |
|
272 |
#ifndef PJ_LIST_H |
|
273 |
extern struct PJ_LIST pj_list[]; |
|
274 |
#else |
|
275 |
#define PROJ_HEAD(id, name) \ |
|
276 |
struct PJconsts *pj_##id(struct PJconsts*); extern char * const pj_s_##id; |
|
277 |
|
|
278 |
#ifndef lint |
|
279 |
#define DO_PJ_LIST_ID |
|
280 |
#endif |
|
281 |
#include PJ_LIST_H |
|
282 |
#ifndef lint |
|
283 |
#undef DO_PJ_LIST_ID |
|
284 |
#endif |
|
285 |
#undef PROJ_HEAD |
|
286 |
#define PROJ_HEAD(id, name) {#id, pj_##id, &pj_s_##id}, |
|
287 |
struct PJ_LIST |
|
288 |
pj_list[] = { |
|
289 |
#include PJ_LIST_H |
|
290 |
{0, 0, 0}, |
|
291 |
}; |
|
292 |
#undef PROJ_HEAD |
|
293 |
#endif |
|
294 |
|
|
295 |
#ifndef PJ_ELLPS__ |
|
296 |
extern struct PJ_ELLPS pj_ellps[]; |
|
297 |
#endif |
|
298 |
|
|
299 |
#ifndef PJ_UNITS__ |
|
300 |
extern struct PJ_UNITS pj_units[]; |
|
301 |
#endif |
|
302 |
|
|
303 |
#ifndef PJ_DATUMS__ |
|
304 |
extern struct PJ_DATUMS pj_datums[]; |
|
305 |
extern struct PJ_PRIME_MERIDIANS pj_prime_meridians[]; |
|
306 |
#endif |
|
307 |
|
|
308 |
#ifdef PJ_LIB__ |
|
309 |
/* repeatative projection code */ |
|
310 |
#define PROJ_HEAD(id, name) static const char des_##id [] = name |
|
311 |
#define ENTRYA(name) \ |
|
312 |
C_NAMESPACE_VAR const char * const pj_s_##name = des_##name; \ |
|
313 |
C_NAMESPACE PJ *pj_##name(PJ *P) { if (!P) { \ |
|
314 |
if( (P = (PJ*) pj_malloc(sizeof(PJ))) != NULL) { \ |
|
315 |
P->pfree = freeup; P->fwd = 0; P->inv = 0; \ |
|
316 |
P->spc = 0; P->descr = des_##name; |
|
317 |
#define ENTRYX } return P; } else { |
|
318 |
#define ENTRY0(name) ENTRYA(name) ENTRYX |
|
319 |
#define ENTRY1(name, a) ENTRYA(name) P->a = 0; ENTRYX |
|
320 |
#define ENTRY2(name, a, b) ENTRYA(name) P->a = 0; P->b = 0; ENTRYX |
|
321 |
#define ENDENTRY(p) } return (p); } |
|
322 |
#define E_ERROR(err) { pj_errno = err; freeup(P); return(0); } |
|
323 |
#define E_ERROR_0 { freeup(P); return(0); } |
|
324 |
#define F_ERROR { pj_errno = -20; return(xy); } |
|
325 |
#define I_ERROR { pj_errno = -20; return(lp); } |
|
326 |
#define FORWARD(name) static XY name(LP lp, PJ *P) { XY xy = {0.0,0.0} |
|
327 |
#define INVERSE(name) static LP name(XY xy, PJ *P) { LP lp = {0.0,0.0} |
|
328 |
#define FREEUP static void freeup(PJ *P) { |
|
329 |
#define SPECIAL(name) static void name(LP lp, PJ *P, struct FACTORS *fac) |
|
330 |
#endif |
|
331 |
#define MAX_TAB_ID 80 |
|
332 |
typedef struct { float lam, phi; } FLP; |
|
333 |
typedef struct { int lam, phi; } ILP; |
|
334 |
|
|
335 |
struct CTABLE { |
|
336 |
char id[MAX_TAB_ID]; /* ascii info */ |
|
337 |
LP ll; /* lower left corner coordinates */ |
|
338 |
LP del; /* size of cells */ |
|
339 |
ILP lim; /* limits of conversion matrix */ |
|
340 |
FLP *cvs; /* conversion matrix */ |
|
341 |
}; |
|
342 |
|
|
343 |
typedef struct _pj_gi { |
|
344 |
char *gridname; /* identifying name of grid, eg "conus" or ntv2_0.gsb */ |
|
345 |
char *filename; /* full path to filename */ |
|
346 |
|
|
347 |
const char *format; /* format of this grid, ie "ctable", "ntv1", |
|
348 |
"ntv2" or "missing". */ |
|
349 |
|
|
350 |
int grid_offset; /* offset in file, for delayed loading */ |
|
351 |
|
|
352 |
struct CTABLE *ct; |
|
353 |
|
|
354 |
struct _pj_gi *next; |
|
355 |
struct _pj_gi *child; |
|
356 |
} PJ_GRIDINFO; |
|
357 |
|
|
358 |
/* procedure prototypes */ |
|
359 |
double dmstor(const char *, char **); |
|
360 |
void set_rtodms(int, int); |
|
361 |
char *rtodms(char *, double, int, int); |
|
362 |
double adjlon(double); |
|
363 |
double aacos(double), aasin(double), asqrt(double), aatan2(double, double); |
|
364 |
PVALUE pj_param(paralist *, char *); |
|
365 |
paralist *pj_mkparam(char *); |
|
366 |
int pj_ell_set(paralist *, double *, double *); |
|
367 |
int pj_datum_set(paralist *, PJ *); |
|
368 |
int pj_prime_meridian_set(paralist *, PJ *); |
|
369 |
int pj_angular_units_set(paralist *, PJ *); |
|
370 |
double *pj_enfn(double); |
|
371 |
double pj_mlfn(double, double, double, double *); |
|
372 |
double pj_inv_mlfn(double, double, double *); |
|
373 |
double pj_qsfn(double, double, double); |
|
374 |
double pj_tsfn(double, double, double); |
|
375 |
double pj_msfn(double, double, double); |
|
376 |
double pj_phi2(double, double); |
|
377 |
double pj_qsfn_(double, PJ *); |
|
378 |
double *pj_authset(double); |
|
379 |
double pj_authlat(double, double *); |
|
380 |
COMPLEX pj_zpoly1(COMPLEX, COMPLEX *, int); |
|
381 |
COMPLEX pj_zpolyd1(COMPLEX, COMPLEX *, int, COMPLEX *); |
|
382 |
FILE *pj_open_lib(char *, char *); |
|
383 |
|
|
384 |
int pj_deriv(LP, double, PJ *, struct DERIVS *); |
|
385 |
int pj_factors(LP, PJ *, double, struct FACTORS *); |
|
386 |
|
|
387 |
struct PW_COEF {/* row coefficient structure */ |
|
388 |
int m; /* number of c coefficients (=0 for none) */ |
|
389 |
double *c; /* power coefficients */ |
|
390 |
}; |
|
391 |
|
|
392 |
/* Approximation structures and procedures */ |
|
393 |
typedef struct { /* Chebyshev or Power series structure */ |
|
394 |
projUV a, b; /* power series range for evaluation */ |
|
395 |
/* or Chebyshev argument shift/scaling */ |
|
396 |
struct PW_COEF *cu, *cv; |
|
397 |
int mu, mv; /* maximum cu and cv index (+1 for count) */ |
|
398 |
int power; /* != 0 if power series, else Chebyshev */ |
|
399 |
} Tseries; |
|
400 |
Tseries *mk_cheby(projUV, projUV, double, projUV *, projUV (*)(projUV), int, int, int); |
|
401 |
projUV bpseval(projUV, Tseries *); |
|
402 |
projUV bcheval(projUV, Tseries *); |
|
403 |
projUV biveval(projUV, Tseries *); |
|
404 |
void *vector1(int, int); |
|
405 |
void **vector2(int, int, int); |
|
406 |
void freev2(void **v, int nrows); |
|
407 |
int bchgen(projUV, projUV, int, int, projUV **, projUV(*)(projUV)); |
|
408 |
int bch2bps(projUV, projUV, projUV **, int, int); |
|
409 |
/* nadcon related protos */ |
|
410 |
LP nad_intr(LP, struct CTABLE *); |
|
411 |
LP nad_cvt(LP, int, struct CTABLE *); |
|
412 |
struct CTABLE *nad_init(char *); |
|
413 |
struct CTABLE *nad_ctable_init( FILE * fid ); |
|
414 |
int nad_ctable_load( struct CTABLE *, FILE * fid ); |
|
415 |
void nad_free(struct CTABLE *); |
|
416 |
|
|
417 |
/* higher level handling of datum grid shift files */ |
|
418 |
|
|
419 |
PJ_GRIDINFO **pj_gridlist_from_nadgrids( const char *, int * ); |
|
420 |
void pj_deallocate_grids(); |
|
421 |
|
|
422 |
PJ_GRIDINFO *pj_gridinfo_init( const char * ); |
|
423 |
int pj_gridinfo_load( PJ_GRIDINFO * ); |
|
424 |
void pj_gridinfo_free( PJ_GRIDINFO * ); |
|
425 |
|
|
426 |
void *pj_gauss_ini(double, double, double *,double *); |
|
427 |
LP pj_gauss(LP, const void *); |
|
428 |
LP pj_inv_gauss(LP, const void *); |
|
429 |
|
|
430 |
extern char const pj_release[]; |
|
431 |
|
|
432 |
struct PJ_ELLPS *pj_get_ellps_ref( void ); |
|
433 |
struct PJ_DATUMS *pj_get_datums_ref( void ); |
|
434 |
struct PJ_UNITS *pj_get_units_ref( void ); |
|
435 |
struct PJ_LIST *pj_get_list_ref( void ); |
|
436 |
struct PJ_PRIME_MERIDIANS *pj_get_prime_meridians_ref( void ); |
|
437 |
|
|
438 |
#ifndef DISABLE_CVSID |
|
439 |
# define PJ_CVSID(string) static char pj_cvsid[] = string; \ |
|
440 |
static char *cvsid_aw() { return( cvsid_aw() ? ((char *) NULL) : pj_cvsid ); } |
|
441 |
#else |
|
442 |
# define PJ_CVSID(string) |
|
443 |
#endif |
|
444 |
|
|
445 |
#ifdef __cplusplus |
|
446 |
} |
|
447 |
#endif |
|
448 |
|
|
449 |
#endif /* end of basic projections header */ |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/emess.h | ||
---|---|---|
1 |
/* Error message processing header file */ |
|
2 |
#ifndef EMESS_H |
|
3 |
#define EMESS_H |
|
4 |
|
|
5 |
#ifndef lint |
|
6 |
static char EMESS_H_ID[] = "@(#)emess.h 4.1 93/03/08 GIE REL"; |
|
7 |
#endif |
|
8 |
|
|
9 |
struct EMESS { |
|
10 |
char *File_name, /* input file name */ |
|
11 |
*Prog_name; /* name of program */ |
|
12 |
int File_line; /* approximate line read |
|
13 |
where error occured */ |
|
14 |
}; |
|
15 |
|
|
16 |
#ifdef EMESS_ROUTINE /* use type */ |
|
17 |
/* for emess procedure */ |
|
18 |
struct EMESS emess_dat = { (char *)0, (char *)0, 0 }; |
|
19 |
|
|
20 |
#ifdef sun /* Archaic SunOs 4.1.1, etc. */ |
|
21 |
extern char *sys_errlist[]; |
|
22 |
#define strerror(n) (sys_errlist[n]) |
|
23 |
#endif |
|
24 |
|
|
25 |
#else /* for for calling procedures */ |
|
26 |
|
|
27 |
extern struct EMESS emess_dat; |
|
28 |
void emess(int, char *, ...); |
|
29 |
|
|
30 |
#endif /* use type */ |
|
31 |
|
|
32 |
#endif /* end EMESS_H */ |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/nad_list.h | ||
---|---|---|
1 |
/* projection list for program nad2nad */ |
|
2 |
PROJ_HEAD(lcc, "Lambert Conformal Conic") |
|
3 |
PROJ_HEAD(omerc, "Oblique Mercator") |
|
4 |
PROJ_HEAD(poly, "Polyconic (American)") |
|
5 |
PROJ_HEAD(tmerc, "Transverse Mercator") |
|
6 |
PROJ_HEAD(utm, "Universal Transverse Mercator (UTM)") |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/proj_config.h | ||
---|---|---|
1 |
/* src/proj_config.h.in. Generated from configure.in by autoheader. */ |
|
2 |
|
|
3 |
/* Define to 1 if you have the <dlfcn.h> header file. */ |
|
4 |
#undef HAVE_DLFCN_H |
|
5 |
|
|
6 |
/* Define to 1 if you have the <inttypes.h> header file. */ |
|
7 |
#undef HAVE_INTTYPES_H |
|
8 |
|
|
9 |
/* Define to 1 if you have the `m' library (-lm). */ |
|
10 |
#undef HAVE_LIBM |
|
11 |
|
|
12 |
/* Define to 1 if you have the <memory.h> header file. */ |
|
13 |
#undef HAVE_MEMORY_H |
|
14 |
|
|
15 |
/* Define to 1 if you have the <stdint.h> header file. */ |
|
16 |
#undef HAVE_STDINT_H |
|
17 |
|
|
18 |
/* Define to 1 if you have the <stdlib.h> header file. */ |
|
19 |
#undef HAVE_STDLIB_H |
|
20 |
|
|
21 |
/* Define to 1 if you have the <strings.h> header file. */ |
|
22 |
#undef HAVE_STRINGS_H |
|
23 |
|
|
24 |
/* Define to 1 if you have the <string.h> header file. */ |
|
25 |
#undef HAVE_STRING_H |
|
26 |
|
|
27 |
/* Define to 1 if you have the <sys/stat.h> header file. */ |
|
28 |
#undef HAVE_SYS_STAT_H |
|
29 |
|
|
30 |
/* Define to 1 if you have the <sys/types.h> header file. */ |
|
31 |
#undef HAVE_SYS_TYPES_H |
|
32 |
|
|
33 |
/* Define to 1 if you have the <unistd.h> header file. */ |
|
34 |
#undef HAVE_UNISTD_H |
|
35 |
|
|
36 |
/* Enabled for Java/JNI Support */ |
|
37 |
#undef JNI_ENABLED |
|
38 |
|
|
39 |
/* Name of package */ |
|
40 |
#undef PACKAGE |
|
41 |
|
|
42 |
/* Define to the address where bug reports for this package should be sent. */ |
|
43 |
#undef PACKAGE_BUGREPORT |
|
44 |
|
|
45 |
/* Define to the full name of this package. */ |
|
46 |
#undef PACKAGE_NAME |
|
47 |
|
|
48 |
/* Define to the full name and version of this package. */ |
|
49 |
#undef PACKAGE_STRING |
|
50 |
|
|
51 |
/* Define to the one symbol short name of this package. */ |
|
52 |
#undef PACKAGE_TARNAME |
|
53 |
|
|
54 |
/* Define to the version of this package. */ |
|
55 |
#undef PACKAGE_VERSION |
|
56 |
|
|
57 |
/* Define to 1 if you have the ANSI C header files. */ |
|
58 |
#undef STDC_HEADERS |
|
59 |
|
|
60 |
/* Version number of package */ |
|
61 |
#undef VERSION |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/geodesic.h | ||
---|---|---|
1 |
#ifndef lint |
|
2 |
static char GEODESIC_H_ID[] = "@(#)geodesic.h 4.3 95/08/19 GIE REL"; |
|
3 |
#endif |
|
4 |
|
|
5 |
#ifdef __cplusplus |
|
6 |
extern "C" { |
|
7 |
#endif |
|
8 |
|
|
9 |
#ifndef _IN_GEOD_SET |
|
10 |
# define GEOD_EXTERN extern |
|
11 |
#else |
|
12 |
# define GEOD_EXTERN |
|
13 |
#endif |
|
14 |
|
|
15 |
GEOD_EXTERN struct geodesic { |
|
16 |
double A; |
|
17 |
double LAM1, PHI1, ALPHA12; |
|
18 |
double LAM2, PHI2, ALPHA21; |
|
19 |
double DIST; |
|
20 |
double ONEF, FLAT, FLAT2, FLAT4, FLAT64; |
|
21 |
int ELLIPSE; |
|
22 |
} GEODESIC; |
|
23 |
|
|
24 |
# define geod_a GEODESIC.A |
|
25 |
# define lam1 GEODESIC.LAM1 |
|
26 |
# define phi1 GEODESIC.PHI1 |
|
27 |
# define al12 GEODESIC.ALPHA12 |
|
28 |
# define lam2 GEODESIC.LAM2 |
|
29 |
# define phi2 GEODESIC.PHI2 |
|
30 |
# define al21 GEODESIC.ALPHA21 |
|
31 |
# define geod_S GEODESIC.DIST |
|
32 |
# define geod_f GEODESIC.FLAT |
|
33 |
# define onef GEODESIC.ONEF |
|
34 |
# define f2 GEODESIC.FLAT2 |
|
35 |
# define f4 GEODESIC.FLAT4 |
|
36 |
# define ff2 GEODESIC.FLAT4 |
|
37 |
# define f64 GEODESIC.FLAT64 |
|
38 |
# define ellipse GEODESIC.ELLIPSE |
|
39 |
|
|
40 |
|
|
41 |
GEOD_EXTERN int n_alpha, n_S; |
|
42 |
GEOD_EXTERN double to_meter, fr_meter, del_alpha; |
|
43 |
|
|
44 |
void geod_set(int, char **); |
|
45 |
void geod_for(void); |
|
46 |
void geod_pre(void); |
|
47 |
void geod_inv(void); |
|
48 |
|
|
49 |
#ifdef __cplusplus |
|
50 |
} |
|
51 |
#endif |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/proj_api.h | ||
---|---|---|
1 |
/****************************************************************************** |
|
2 |
* $Id: proj_api.h,v 1.13 2004/10/30 02:33:47 fwarmerdam Exp $ |
|
3 |
* |
|
4 |
* Project: PROJ.4 |
|
5 |
* Purpose: Public (application) include file for PROJ.4 API, and constants. |
|
6 |
* Author: Frank Warmerdam, <warmerdam@pobox.com> |
|
7 |
* |
|
8 |
****************************************************************************** |
|
9 |
* Copyright (c) 2001, Frank Warmerdam <warmerdam@pobox.com> |
|
10 |
* |
|
11 |
* Permission is hereby granted, free of charge, to any person obtaining a |
|
12 |
* copy of this software and associated documentation files (the "Software"), |
|
13 |
* to deal in the Software without restriction, including without limitation |
|
14 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
|
15 |
* and/or sell copies of the Software, and to permit persons to whom the |
|
16 |
* Software is furnished to do so, subject to the following conditions: |
|
17 |
* |
|
18 |
* The above copyright notice and this permission notice shall be included |
|
19 |
* in all copies or substantial portions of the Software. |
|
20 |
* |
|
21 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
22 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
23 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
|
24 |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
25 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
|
26 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
|
27 |
* DEALINGS IN THE SOFTWARE. |
|
28 |
****************************************************************************** |
|
29 |
* |
|
30 |
* $Log: proj_api.h,v $ |
|
31 |
* Revision 1.13 2004/10/30 02:33:47 fwarmerdam |
|
32 |
* Updated release version. |
|
33 |
* |
|
34 |
* Revision 1.12 2004/09/16 15:14:01 fwarmerdam |
|
35 |
* * src/pj_open_lib.c: added pj_set_searchpath() provided by Eric Miller. |
|
36 |
* |
|
37 |
* Revision 1.11 2004/07/28 23:23:49 warmerda |
|
38 |
* Changed ra to es in declarations for pj_geocentric_to_geodetic() |
|
39 |
* and pj_geodetic_to_geocentric() as suggested by Britton Kerin. |
|
40 |
* |
|
41 |
* Revision 1.10 2004/05/04 03:28:01 warmerda |
|
42 |
* Updated version. |
|
43 |
* |
|
44 |
* Revision 1.9 2004/04/15 13:56:24 warmerda |
|
45 |
* added pj_get_release |
|
46 |
* |
|
47 |
* Revision 1.8 2003/03/31 14:52:38 warmerda |
|
48 |
* updated to 4.4.7 |
|
49 |
* |
|
50 |
* Revision 1.7 2002/12/14 20:14:35 warmerda |
|
51 |
* added geocentric support |
|
52 |
* |
|
53 |
* Revision 1.6 2002/06/11 18:08:25 warmerda |
|
54 |
* Added the pj_get_def() function |
|
55 |
* |
|
56 |
* Revision 1.5 2002/01/09 14:36:22 warmerda |
|
57 |
* updated to 4.4.5 |
|
58 |
* |
|
59 |
* Revision 1.4 2001/09/15 22:55:28 warmerda |
|
60 |
* final prep for 4.4.4 release |
|
61 |
* |
|
62 |
* Revision 1.3 2001/08/23 20:25:55 warmerda |
|
63 |
* added pj_set_finder function |
|
64 |
* |
|
65 |
* Revision 1.2 2001/06/02 03:35:36 warmerda |
|
66 |
* added pj_get_errno_ref() |
|
67 |
* |
|
68 |
* Revision 1.1 2001/04/06 01:24:22 warmerda |
|
69 |
* New |
|
70 |
* |
|
71 |
*/ |
|
72 |
|
|
73 |
/* General projections header file */ |
|
74 |
#ifndef PROJ_API_H |
|
75 |
#define PROJ_API_H |
|
76 |
|
|
77 |
/* standard inclusions */ |
|
78 |
#include <math.h> |
|
79 |
#include <stdlib.h> |
|
80 |
|
|
81 |
#ifdef __cplusplus |
|
82 |
extern "C" { |
|
83 |
#endif |
|
84 |
|
|
85 |
/* Try to update this every version! */ |
|
86 |
#define PJ_VERSION 449 |
|
87 |
|
|
88 |
extern char const pj_release[]; /* global release id string */ |
|
89 |
|
|
90 |
#define RAD_TO_DEG 57.29577951308232 |
|
91 |
#define DEG_TO_RAD .0174532925199432958 |
|
92 |
|
|
93 |
|
|
94 |
extern int pj_errno; /* global error return code */ |
|
95 |
|
|
96 |
#if !defined(PROJECTS_H) |
|
97 |
typedef struct { double u, v; } projUV; |
|
98 |
typedef void *projPJ; |
|
99 |
#define projXY projUV |
|
100 |
#define projLP projUV |
|
101 |
#else |
|
102 |
typedef PJ *projPJ; |
|
103 |
# define projXY XY |
|
104 |
# define projLP LP |
|
105 |
#endif |
|
106 |
|
|
107 |
/* procedure prototypes */ |
|
108 |
|
|
109 |
projXY pj_fwd(projLP, projPJ); |
|
110 |
projLP pj_inv(projXY, projPJ); |
|
111 |
|
|
112 |
int pj_transform( projPJ src, projPJ dst, long point_count, int point_offset, |
|
113 |
double *x, double *y, double *z ); |
|
114 |
int pj_datum_transform( projPJ src, projPJ dst, long point_count, int point_offset, |
|
115 |
double *x, double *y, double *z ); |
|
116 |
int pj_geocentric_to_geodetic( double a, double es, |
|
117 |
long point_count, int point_offset, |
|
118 |
double *x, double *y, double *z ); |
|
119 |
int pj_geodetic_to_geocentric( double a, double es, |
|
120 |
long point_count, int point_offset, |
|
121 |
double *x, double *y, double *z ); |
|
122 |
int pj_compare_datums( projPJ srcdefn, projPJ dstdefn ); |
|
123 |
int pj_apply_gridshift( const char *, int, |
|
124 |
long point_count, int point_offset, |
|
125 |
double *x, double *y, double *z ); |
|
126 |
void pj_deallocate_grids(); |
|
127 |
int pj_is_latlong(projPJ); |
|
128 |
int pj_is_geocent(projPJ); |
|
129 |
void pj_pr_list(projPJ); |
|
130 |
void pj_free(projPJ); |
|
131 |
void pj_set_finder( const char *(*)(const char *) ); |
|
132 |
void pj_set_searchpath ( int count, const char **path ); |
|
133 |
projPJ pj_init(int, char **); |
|
134 |
projPJ pj_init_plus(const char *); |
|
135 |
char *pj_get_def(projPJ, int); |
|
136 |
projPJ pj_latlong_from_proj( projPJ ); |
|
137 |
void *pj_malloc(size_t); |
|
138 |
void pj_dalloc(void *); |
|
139 |
char *pj_strerrno(int); |
|
140 |
int *pj_get_errno_ref(); |
|
141 |
const char *pj_get_release(); |
|
142 |
|
|
143 |
#ifdef __cplusplus |
|
144 |
} |
|
145 |
#endif |
|
146 |
|
|
147 |
#endif /* ndef PROJ_API_H */ |
|
148 |
|
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/CrsJniProj_head.h | ||
---|---|---|
1 |
#include "projects.h" |
|
2 |
#include <jni.h> |
|
3 |
|
|
4 |
#ifdef __cplusplus |
|
5 |
extern "C" { |
|
6 |
#endif |
|
7 |
|
|
8 |
JNIEXPORT int JNICALL Java_org_gvsig_crs_epsg_JNIBaseOperation_operationSimple |
|
9 |
(JNIEnv *, jobject, jdouble, jdouble, jdouble, jlong, jlong); |
|
10 |
|
|
11 |
JNIEXPORT int JNICALL Java_org_gvsig_crs_epsg_JNIBaseOperation_operation |
|
12 |
(JNIEnv *, jobject, jdoubleArray, jdoubleArray, jdoubleArray, jlong, jlong); |
|
13 |
|
|
14 |
JNIEXPORT int JNICALL Java_org_gvsig_crs_epsg_JNIBaseOperation_operationArraySimple |
|
15 |
(JNIEnv *, jobject, jdoubleArray, jlong, jlong); |
|
16 |
|
|
17 |
JNIEXPORT projPJ JNICALL Java_org_gvsig_crs_epsg_JNIBaseCrs_loadCrs |
|
18 |
(JNIEnv * env, jobject parent, jstring); |
|
19 |
|
|
20 |
JNIEXPORT void JNICALL Java_org_gvsig_crs_epsg_JNIBaseCrs_freeCrs |
|
21 |
(JNIEnv * env, jobject parent, jlong); |
|
22 |
|
|
23 |
JNIEXPORT int JNICALL Java_org_gvsig_crs_epsg_JNIBaseCrs_isLatlong |
|
24 |
(JNIEnv * env, jobject parent, jlong); |
|
25 |
|
|
26 |
|
|
27 |
#ifdef __cplusplus |
|
28 |
} |
|
29 |
#endif |
1.10/tags/gvSIG_3D_Animation_1_10_build_21_FINAL/libraries/libjni-proj4/include/geocent.h | ||
---|---|---|
1 |
#ifndef GEOCENT_H |
|
2 |
#define GEOCENT_H |
|
3 |
|
|
4 |
/***************************************************************************/ |
|
5 |
/* RSC IDENTIFIER: GEOCENTRIC |
|
6 |
* |
|
7 |
* ABSTRACT |
|
8 |
* |
|
9 |
* This component provides conversions between Geodetic coordinates (latitude, |
|
10 |
* longitude in radians and height in meters) and Geocentric coordinates |
|
11 |
* (X, Y, Z) in meters. |
|
12 |
* |
|
13 |
* ERROR HANDLING |
|
14 |
* |
|
15 |
* This component checks parameters for valid values. If an invalid value |
|
16 |
* is found, the error code is combined with the current error code using |
|
17 |
* the bitwise or. This combining allows multiple error codes to be |
|
18 |
* returned. The possible error codes are: |
|
19 |
* |
|
20 |
* GEOCENT_NO_ERROR : No errors occurred in function |
|
21 |
* GEOCENT_LAT_ERROR : Latitude out of valid range |
|
22 |
* (-90 to 90 degrees) |
|
23 |
* GEOCENT_LON_ERROR : Longitude out of valid range |
|
24 |
* (-180 to 360 degrees) |
|
25 |
* GEOCENT_A_ERROR : Semi-major axis less than or equal to zero |
|
26 |
* GEOCENT_B_ERROR : Semi-minor axis less than or equal to zero |
|
27 |
* GEOCENT_A_LESS_B_ERROR : Semi-major axis less than semi-minor axis |
|
28 |
* |
|
29 |
* |
|
30 |
* REUSE NOTES |
|
31 |
* |
|
32 |
* GEOCENTRIC is intended for reuse by any application that performs |
|
33 |
* coordinate conversions between geodetic coordinates and geocentric |
|
34 |
* coordinates. |
|
35 |
* |
|
36 |
* |
|
37 |
* REFERENCES |
|
38 |
* |
|
39 |
* An Improved Algorithm for Geocentric to Geodetic Coordinate Conversion, |
|
40 |
* Ralph Toms, February 1996 UCRL-JC-123138. |
|
41 |
* |
|
42 |
* Further information on GEOCENTRIC can be found in the Reuse Manual. |
|
43 |
* |
|
44 |
* GEOCENTRIC originated from : U.S. Army Topographic Engineering Center |
|
45 |
* Geospatial Information Division |
|
46 |
* 7701 Telegraph Road |
|
47 |
* Alexandria, VA 22310-3864 |
|
48 |
* |
|
49 |
* LICENSES |
|
50 |
* |
|
51 |
* None apply to this component. |
|
52 |
* |
|
53 |
* RESTRICTIONS |
|
54 |
* |
|
55 |
* GEOCENTRIC has no restrictions. |
|
56 |
* |
|
57 |
* ENVIRONMENT |
|
58 |
* |
|
59 |
* GEOCENTRIC was tested and certified in the following environments: |
|
60 |
* |
|
61 |
* 1. Solaris 2.5 with GCC version 2.8.1 |
|
62 |
* 2. Windows 95 with MS Visual C++ version 6 |
|
63 |
* |
|
64 |
* MODIFICATIONS |
|
65 |
* |
|
66 |
* Date Description |
|
67 |
* ---- ----------- |
|
68 |
* |
|
69 |
* |
|
70 |
*/ |
|
71 |
|
|
72 |
|
|
73 |
/***************************************************************************/ |
Also available in: Unified diff