Skip to content

Commit

Permalink
1.0.3: add ellipsoids
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Nov 26, 2021
1 parent 7b52d75 commit 975d1b1
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 4 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SRCS=src
DOCS=/usr/share/doc/helmert3d
BINS=bin
EXAMPS=examples
ELLIPS=ellipsoids
MANS=man/man1

all: helmert3d helmparms3d helmdiff3d helmblhtoxyz
Expand Down Expand Up @@ -48,6 +49,7 @@ install:
$(INSTALL) -d $(PREFIX)/$(BINS)
$(INSTALL) -d $(PREFIX)/$(MANS)
$(INSTALL) -d $(DOCS)/$(EXAMPS)
$(INSTALL) -d $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0755 helmparms3d $(PREFIX)/$(BINS)
$(INSTALL) -m 0755 helmert3d $(PREFIX)/$(BINS)
$(INSTALL) -m 0755 helmdiff3d $(PREFIX)/$(BINS)
Expand All @@ -57,7 +59,12 @@ install:
$(INSTALL) -m 0644 $(EXAMPS)/testpoints_src.txt $(DOCS)/$(EXAMPS)
$(INSTALL) -m 0644 $(EXAMPS)/testpoints_dest.txt $(DOCS)/$(EXAMPS)
$(INSTALL) -m 0644 $(EXAMPS)/testpoints_blh.txt $(DOCS)/$(EXAMPS)
$(INSTALL) -m 0644 $(EXAMPS)/GRS80.txt $(DOCS)/$(EXAMPS)
$(INSTALL) -m 0644 $(ELLIPS)/BESSEL.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(ELLIPS)/GRS80.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(ELLIPS)/GSK2011.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(ELLIPS)/KRASOVSKIY.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(ELLIPS)/PZ90.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(ELLIPS)/WGS84.txt $(DOCS)/$(ELLIPS)
$(INSTALL) -m 0644 $(MANS)/helmparms3d.1 $(PREFIX)/$(MANS)
$(INSTALL) -m 0644 $(MANS)/helmert3d.1 $(PREFIX)/$(MANS)
$(INSTALL) -m 0644 $(MANS)/helmdiff3d.1 $(PREFIX)/$(MANS)
Expand Down
1 change: 1 addition & 0 deletions ellipsoids/BESSEL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BESSEL 6377397.155 6356078.962822
File renamed without changes.
1 change: 1 addition & 0 deletions ellipsoids/GSK2011.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GSK2011 6378136.5 6356751.758
1 change: 1 addition & 0 deletions ellipsoids/KRASOVSKIY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KRASOVSKIY 6378245.0 6356863.018773
1 change: 1 addition & 0 deletions ellipsoids/PZ90.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PZ90 6378136.0 6356752.3142
1 change: 1 addition & 0 deletions ellipsoids/WGS84.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WGS84 6378137.0 6356752.314245
5 changes: 3 additions & 2 deletions man/man1/helmblhtoxyz.1
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ xyz data file format:

.SH EXAMPLE
export EXAMP=/usr/share/doc/helmert3d/examples/
export ELLIPS=/usr/share/doc/helmert3d/ellipsoids/

helmblhtoxyz xyz $EXAMP/testpoints_blh.txt $EXAMP/GRS80.txt xyh.txt
helmblhtoxyz blh xyh.txt $EXAMP/GRS80.txt blh.txt
helmblhtoxyz xyz $EXAMP/testpoints_blh.txt $ELLIPS/GRS80.txt xyh.txt
helmblhtoxyz blh xyh.txt $ELLIPS/GRS80.txt blh.txt
helmdiff3d examples/testpoints_blh.txt blh.txt

.SH COPYRIGHT
Expand Down
2 changes: 1 addition & 1 deletion src/helmblhtoxyz.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int main(int argc, char* argv[])
}
else if (!strcmp(command,"blh"))
{
fprintf(stdout,"X-Y-Z -> B-H-L...\n");
fprintf(stdout,"X-Y-Z -> B-L-H...\n");
}
else
{
Expand Down

1 comment on commit 975d1b1

@zvezdochiot
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ See #7

Please sign in to comment.