Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Oct 2014, 04:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Place-n-Time map viewer
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Author Message
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 29 Aug 2013, 11:42    Post subject:  Place-n-Time map viewer
Subject description: now available in an .sfs package.
 

Puppy users in the USA who have an interest in maps may want to take Place-n-Time for a spin.

This application displays maps using data from the U. S. Geological Survey (USGS).

The data available doesn't provide for a general-purpose atlas with street names and such, like, for instance, Open Street Map data, but will be of interest for those who would like to examine an area as digitized by the Geological Survey in these early digital line graphs "DLGs".

The package includes sample files for learning how to use the application, and you may then download files covering your area of interest directly from the USGS. Also included is an illustrated user guide, which is recommended reading (and also available online: Place-n-Time User Guide).

Previous versions of Place-n-Time were only available in a .tar.gz package which included an installation script. It is still available in that form, but I thought I would add an .sfs package so that it could be easily loaded only when needed, and not take up space in a Puppy save file.

This is a beta version. Questions and comments are most welcome.

Download placentime_view-0.03-1.sfs from here: Place-n-Time Beta Download

In my next post I'll try to give a brief tutorial about getting around in the application.
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 29 Aug 2013, 11:51    Post subject: Subject: Place-n-Time
Subject description: Tutorial: Getting around
 

Place-n-Time will open and display a sample large scale map: Hanover, New Hampshire, U.S.A.

When you move your pointer into the Work Window, you will note that the Coordinate Box at the lower left will display two forms of coordinates: Northings & Eastings and Latitude & Longitude.

As you move your pointer over the map surface you will also note that the state, county, and town are shown in the Location Box at the lower right.

Pointing at objects will highlight them. If you point at a line, the length of the line will be displayed in the Status Box at the bottom. (Lengths won't be displayed for maps with a non-linear coordinate system.)

To zoom in, point to a northern corner of your area of interest, then hold the left pointer button as you move the pointer across and down to the opposite corner before releasing the button. To zoom out, do the same thing, but start from a southern corner.

To move the map surface, grab it with the middle pointer button.

To load an intermediate scale map for the same area, place the pointer anywhere on the surface of the current map and press or click the right button, then choose "Load Intermediate Scale" from the popup menu.

You can, of course, load small, intermediate, or large scale maps by choosing the appropriate item from the right-button menu.

Once you download a collection of maps, you may also use this method to load maps for areas surrounding the original map surface.

Don't be confused by the Open entry in the File menu. That is for loading .shp and .gchar files created by another application, not the USGS files. The USGS files are always loaded with the right-button menu.

For more details see Getting Around in the user guide.

In my next post I'll try to explain how to download map data.
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 29 Aug 2013, 11:59    Post subject: Place-n-Time map viewer
Subject description: Getting map data
 

To obtain map data from the USGS, go to http://earthexplorer.usgs.gov/.

There you will find a four-step process:

1. Enter Search Criteria
2. Select Your Data Set(s)
3. Additional Criteria (Optional)
4. Search Results

In step 1 you may enter an address/placename or set of coordinates, or you may simply zoom in and click on the map displayed. (If you choose to enter an address/placename, be sure to then click on Show and select an entry from the list that appears.) Then click Data Sets to go to step 2.

In step 2 you should click on Digital Line Graphs, then click on the check box for DLG 1:100k if you want intermediate scale or click on the check box for DLG Large Scale if that is what you want. Then click Additional Criteria to go to step 3.

In step 3 you should choose one or more items from the Overlay ID or Product Group list. (Which list appears depends upon your selection in step 2.) (To select more than one item, hold your Ctrl key while clicking.) Place-N-Time currently supports the following items:

Overlay ID
Boundaries
Hydrography
Transportation

Product Group
7.5-MIN DLG Bound
7.5-MIN DLG Hydro
7.5-MIN DLG Trans

Then click Results to go to step 4.

In step 4 you will see a list of files that matched your criteria. There are buttons below each file in the list which let you see the map footprint, examine its metadata, or download it. (It does ask you to log in to download.)

(Note that some maps have been split into pieces, but the footprint displayed is for the entire map. In such cases you will need to download multiple files to cover the entire footprint.)

For additional information on how to get DLG map data and GNIS placename data, look here: DLG and here: GNIS.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 29 Aug 2013, 16:06    Post subject:  

dl http://www.dappermapper.com/products/placentime/beta/placentime_view-0.03-1.sfs
while running full installation of Puppy 4series glibc-2.6.1
and wanted to copy it into sandbox /opt/placeandtime :
PATH to /usr/local seems to be hardcoded into it , but no complaints about glibc too low Very Happy
Will report next days on it !
Back to top
View user's profile Send private message Visit poster's website 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 29 Aug 2013, 17:55    Post subject:  

Hi Karl,

Thanks for trying this out. Very Happy

Karl Godt wrote:
. . . but no complaints about glibc too low Very Happy

Yes, Place-n-Time is not very demanding when it comes to dependencies. I'm a believer in using the minimum libraries necessary to do the job, rather than require the installation of a lot of new libraries. Official Puppies from 4.3.1 and newer should already have the necessary dependencies. I think this build of Place-n-Time will run with any glibc version 2.3 or higher. (The other package (the .tar.gz) has a build that will actually run with glibc 2.1.1 and gtk 1.2 with a 2.0.36 kernel. We're talking backward compatibility to 1999!)

Happy testing! I'll look forward to hearing how it works (or doesn't) for you.

Norm
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 29 Aug 2013, 19:22    Post subject:  

Hmmm... First start heavy on the cpu . xosview showed a lot of RAM , SWAP and PAGE movement .
The terminal showed a never ending loop of
Quote:
Error allocating memory for <nad_file_list>.

Question
Back to top
View user's profile Send private message Visit poster's website 
Jasper


Joined: 25 Apr 2010
Posts: 1135
Location: England

PostPosted: Thu 29 Aug 2013, 19:58    Post subject:  

Hi npierce,

I will try using Precise 5.6 with 597 MB available RAM (without a swap facility) and will report back tomorrow by editing here.

My regards

Results:

I followed the instructions and all my tests went impressively fast and well (except for a change of location - perhaps because I did not Log on).

After closing my browser/above help, RAM used was about 50 MB and CPU % ranged from frequent single figures to a rare 73%.

Last edited by Jasper on Fri 30 Aug 2013, 06:34; edited 2 times in total
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2252

PostPosted: Fri 30 Aug 2013, 05:49    Post subject:  

Are the sources for that not available?
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 30 Aug 2013, 07:21    Post subject:  

Have installed it correctly by
Code:
cp -a --remove-destination /mnt/placentime_view-0.03-1.sfs.26748/* /

which made it necessary to remove the links from /usr/local/share/* into my /opt/placeandtime folder manually , because --remove-destination did not work as expected .

No dice .

Xorg driver is i810 btw .
Since I thought it would be kind of similar to googeearth, which needs Mesa/GL driver activated by Xorg , I ldd 'ed it , but no reference to mesa or any libGLUT* or whatsoever .

Code:
bash-3.00# ldd `which placentime_view` |sort
   libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb774b000)
   libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb76e1000)
   libc.so.6 => /lib/libc.so.6 (0xb781b000)
   libdl.so.2 => /lib/libdl.so.2 (0xb755b000)
   libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7563000)
   libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb75ec000)
   libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb758e000)
   libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7778000)
   libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7b94000)
   libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb763c000)
   libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7ae6000)
   libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb7560000)
   libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb77a2000)
   libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7c1c000)
   libICE.so.6 => /usr/X11R7/lib/libICE.so.6 (0xb7511000)
   /lib/ld-linux.so.2 (0xb7f9a000)
   libm.so.6 => /lib/libm.so.6 (0xb7917000)
   libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb77dc000)
   libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb776e000)
   libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7612000)
   libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb752c000)
   libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb76ab000)
   libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7939000)
   libSM.so.6 => /usr/X11R7/lib/libSM.so.6 (0xb7525000)
   libX11.so.6 => /usr/lib/libX11.so.6 (0xb7969000)
   libXau.so.6 => /usr/lib/libXau.so.6 (0xb76a1000)
   libXaw.so.7 => /usr/lib/libXaw.so.7 (0xb7a9c000)
   libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb776b000)
   libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb778f000)
   libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb7768000)
   libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb769c000)
   libXext.so.6 => /usr/lib/libXext.so.6 (0xb7a7d000)
   libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb7764000)
   libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb779f000)
   libXi.so.6 => /usr/lib/libXi.so.6 (0xb7797000)
   libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7a8a000)
   libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb795c000)
   libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb76a4000)
   libXt.so.6 => /usr/lib/libXt.so.6 (0xb7a3a000)
   libz.so.1 => /lib/libz.so.1 (0xb757f000)
   linux-gate.so.1 =>  (0xb7f99000)


EDIT:
Code:
bash-3.00# free
             total         used         free       shared      buffers
Mem:       1017404       342676       674728            0         9928
-/+ buffers:             332748       684656
Swap:     12136984       180808     11956176

1GB RAM and 12GB SWAP : 3Swap a 4GB .
Back to top
View user's profile Send private message Visit poster's website 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Fri 30 Aug 2013, 10:23    Post subject:  

Karl,

Thanks for the feedback. I'm sorry to hear that Place-n-Time has been uncooperative for you.

Karl Godt wrote:
The terminal showed a never ending loop of
Quote:
Error allocating memory for <nad_file_list>.

I've been looking into this. I've even tried running in Puppy 4.3.1. While I have not been able to reproduce the same error message, I think that probably the lookup_nad file got corrupted. It lives in the /usr/local/share/placentime/essential/ directory.

If I corrupt my copy I see that the application does go into a loop and starts eating memory, although I never get the error message that you did.

I probably should post the md5sum for the the package. Here it is:

6ea653f5b0cf2da53cfce4225752657c placentime_view-0.03-1.sfs

Also, here is the md5sum for the lookup_nad file:

5094d948800a51a6712ae623a921617f lookup_nad

While I am hoping that replacing your copy of the file will solve that problem for you, you have discovered something that I should fix, since a corrupt data file should cause the application to exit gracefully, and certainly not cause it to start gobbling memory.


While I had anticipated that most people would simply install the package and run it as is, it should be possible to place the files elsewhere in your directory tree if you so desire.

To install Place-n-Time into your /opt/ directory, you will need to edit the /etc/placentimerc.first file. That is the configuration file that tells placentime were everything lives. It is currently configured for the places where things live in the .sfs file.

You can probably figure out what you have to change just by looking at the file, but for details see Editing Run Control Files in the user guide.

The /etc/placentimerc.first is one file that cannot be relocated. You can also have a $HOME/.placentime/placentimerc file which has the same format, and will override settings in the /etc/placentimerc.first file. In fact, if you don't want to add anything to your /etc/ directory, you can simply:
Code:
mkdir $HOME/.placentime
# mv /etc/placentimerc.first $HOME/.placentime/placentimerc

You will need at least one of those two files.


As you have discovered, there is no need for Mesa/GL.


Thanks again for taking the time to look at this. Smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Jasper,


Thanks for trying this out and for the feedback about speed, memory, and CPU use. Smile

I'm glad that you didn't run into the problems that Karl did.

Jasper wrote:
. . . (except for a change of location - perhaps because I did not Log on).

Do you mean when trying to download map data?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

amigo,

No, not yet.
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1135
Location: England

PostPosted: Fri 30 Aug 2013, 10:37    Post subject:  

Hi again npierce,

You asked:
Do you mean when trying to download map data?
Yes is my answer.

My regards
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Fri 30 Aug 2013, 11:09    Post subject:  

Jasper,

If you like, you can try an alternative method, as explained here: DLG

I'm sorry to say that there is no data for Great Britain, only for the North American colonies. Smile
Back to top
View user's profile Send private message 
Jasper


Joined: 25 Apr 2010
Posts: 1135
Location: England

PostPosted: Fri 30 Aug 2013, 11:26    Post subject:  

Hi npierce,

Understood, US only. However, since Karl is in Europe and you were pleased he had tried “it” I just followed his example, because you have both cracked problems for me.

My regards to you both
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Fri 30 Aug 2013, 12:05    Post subject:  

Hi Jasper,

Yes, I'm happy for anyone to try Place-n-Time. And I much appreciate that you both took the time to do so. Thanks.
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 30 Aug 2013, 14:01    Post subject:  

Hi Norman !

bash-3.00# md5sum /root/placentime_view-0.03-1.sfs
6ea653f5b0cf2da53cfce4225752657c /root/placentime_view-0.03-1.sfs

bash-3.00# md5sum /usr/local/share/placentime/essential/lookup_nad
5094d948800a51a6712ae623a921617f /usr/local/share/placentime/essential/lookup_nad

seems to be OK .

It might be caused by recompiled libraries on my side too . Until now I could not notice any problems with other programs though .

What I should probably mention :
Am throttled down to analog speed until the day after tomorrow and have a wget running in another case since more than 24 hours in another terminal .
I hope that lack of a current available reasonable speed or lack of any internet connection nor firewall issues do not choke some features of the program .
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [27 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1129s ][ Queries: 13 (0.0081s) ][ GZIP on ]