GPSFileDepot
GPSFileDepot   XML/RSS Feeds
March 11, 2010, 08:38:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to GPSFileDepot!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Request GNIS Process addition or Instructions  (Read 1813 times)
masdangkolo
Jr. Member
**
Posts: 14


View Profile
« on: October 24, 2008, 04:21:50 PM »

Oz,
It appears that you are the author of GNIS Process.

I am trying to build a map of Guam (territory of the US) and maybe some of the other pacific islands.  The current GNIS Process only lists the 50 states, but I know data for the US territories exists at geonames.usgs.gov.  Could these be added to GNIS Process or could you share the process that GNIS Process does?  I'm thinking I could do it by hand.

BTW When running Hawaii as a test,  I get a "Run-time error '62': Input past end of the" in a dialog while the status says "Extracting GNIS Zip File".  Testing with Minnesota runs fine.

Thanks,
Roy
Logged
Coggins
Moderator
Hero Member
*****
Posts: 816



View Profile
« Reply #1 on: October 27, 2008, 08:49:09 AM »

I have attached a GNIS file for Guam for you.
Logged
-Oz-
Map Maker!
Administrator
Hero Member
*****
Posts: 989


View Profile WWW
« Reply #2 on: October 28, 2008, 04:38:09 AM »

glad coggins attached guam.

I would have to look with more detail at if guam is available via the way I get the files (there are two ways to get the files).

Odd about Hawaii's error; I'll check it out since I used it to get my hawaii map pts.
Logged

Dan Blomberg
Administrator - GPSFileDepot
masdangkolo
Jr. Member
**
Posts: 14


View Profile
« Reply #3 on: October 28, 2008, 06:12:58 PM »

coggins,
Thank you for the GNIS file.  I looks like I now could figure out how to do other areas from the original zips with a little perl (how did you greate this file?).

Oz,
I assume this is the first step or two that GNIS Process does.  Per part 5 of the tutorial GNIS Process will make a shp file.  What steps do I need to do to turn this csv into a shp?  I'm guessing it needs to get put into the postgis database and then pulled out as a shp file using pgsql2shp, but I'm at a loss with how to do it.

Roy
Logged
Coggins
Moderator
Hero Member
*****
Posts: 816



View Profile
« Reply #4 on: October 29, 2008, 07:45:21 AM »

coggins,
Thank you for the GNIS file.  I looks like I now could figure out how to do other areas from the original zips with a little perl (how did you create this file?).

Roy
I downloaded it manually from the USGS GNIS server http://geonames.usgs.gov/pls/gnispublic/:
Search:

Results:

Download via "Save as pipe "|" delimited file"
« Last Edit: October 29, 2008, 05:42:13 PM by coggins » Logged
-Oz-
Map Maker!
Administrator
Hero Member
*****
Posts: 989


View Profile WWW
« Reply #5 on: October 31, 2008, 07:16:20 AM »

Roy, sorry about me not replying fast enough.

Two options:
1. When I get home from work this afternoon (8hrs) I'll convert it or fix the program.
2. Using the method coggins mentioned you can use this online tool to create .gpx files then open that and convert it to a .shp file with gpsmapedit or global mapper.  The gpx file includes the MP_TYPE code.

Dan
Logged

Dan Blomberg
Administrator - GPSFileDepot
-Oz-
Map Maker!
Administrator
Hero Member
*****
Posts: 989


View Profile WWW
« Reply #6 on: November 04, 2008, 06:27:36 PM »

http://www.gpsfiledepot.com/tools/gnis_process.php <-- updated for guam (didn't test it though :-/)
Logged

Dan Blomberg
Administrator - GPSFileDepot
masdangkolo
Jr. Member
**
Posts: 14


View Profile
« Reply #7 on: November 04, 2008, 06:43:26 PM »

I'm not making much progress at all.  I was hoping to figure some of this out myself, but now I'm back asking for help again.  I got the GNIS file, converted it to gpx, using the "USGS GNIS to GPX Converter", examined the resulting gpx file, and discovered the elevations were in meters.  Converted the meters to feet, and then added to my .mp  contours only to discover that the points were all shifted again (datum problems).  Translated the gpx from Guam_1963 to NAD83.  They are now cottectly positioned.  At this point I am stuck again, I cannot figure out how to use gpsmapedit to generate shp files from the gpx as instructed above.  I thought the gpx should be loaded into the postgis database and then be extracted as a shp file, but I am unable to figure out how to do this.  Any help would be greatly appreciated.
Roy
Logged
masdangkolo
Jr. Member
**
Posts: 14


View Profile
« Reply #8 on: November 04, 2008, 08:07:12 PM »

Dan,
Thank you so much for the program update.  Processing the Guam data results in an error "Run-time error '70': Permission denied".  Arizona works fine. I wonder if it is due the special characters in some of the names such as "Hagåtña".

One other problem I still have is that I need to change positions of the gpx points. Or can I project the shp file?

Roy
Logged
-Oz-
Map Maker!
Administrator
Hero Member
*****
Posts: 989


View Profile WWW
« Reply #9 on: November 04, 2008, 10:37:03 PM »

I didn't get that error but it did fail due to the characters.  I have a special version that pauses so I can pull them out since Visual Basic doesn't appear to handle them at all.

Anyway, I attached the GNIS points in shapefile format.

The projection the system thinks it is is:
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Aka WGS 1984 which is very very similar to NAD 83
Logged

Dan Blomberg
Administrator - GPSFileDepot
Coggins
Moderator
Hero Member
*****
Posts: 816



View Profile
« Reply #10 on: November 11, 2008, 01:14:45 PM »

Dan,
Thank you so much for the program update.  Processing the Guam data results in an error "Run-time error '70': Permission denied".  Arizona works fine. I wonder if it is due the special characters in some of the names such as "Hagåtña".
Roy
I would use one of the following transliteration for this name before processing:
Hagatna
Agana
Logged
Pages: [1]
  Print  
 
Jump to: