GPSFileDepot Forums

General Category => Map Making Support => Topic started by: n2stitch on February 12, 2009, 07:27:41 PM

Title: Transportation Data - Need Help - no MP_Type Field
Post by: n2stitch on February 12, 2009, 07:27:41 PM
I've just finished processing the Tiger road data, following the steps of the tutorial (download, combine, add to database, process with postgis, export shape file).  I get the shape file, a rather large one, but when I try to open it in GPSMapedit there is no MP_Type column to use to specify types.

Any clue what I did wrong?  HELP!

Lalita
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: -Oz- on February 12, 2009, 10:08:40 PM
Are you sure you're opening one that's been processed?

Try this: import from one folder and then do the export to another folder to make sure that you get a processed file.
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: n2stitch on February 13, 2009, 06:26:23 AM
I'm pretty darn sure I'm opening the processed file because the unprocessed file is all_lines.shp and the processed file is transportation.shp.

I'll try as you suggest though and see what happens.

If I don't get success with something (water, roads, etc) soon, I'll leave this to the people that actually understand it. 

Lalita
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: -Oz- on February 13, 2009, 08:47:48 PM
You are correct; all_lines.shp is the unprocessed version.

Were there any errors when you ran the process script?
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: n2stitch on February 13, 2009, 10:40:14 PM
None that I recall.  Right now my poor abacus computer is taking a break from water data.  I was able to identify several duplicates in the files I had, and eliminated them.  I still had duplicate data, but needed some of the other data in each file so kept them.  I'm getting ready to export the shapefiles from postgis - hopefully it works.

I'll re-try the transportation files over the weekend.
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: n2stitch on February 14, 2009, 03:35:47 PM
Dan, I looked closer at the tutorial and you are missing the step to modify the database to add the mp_type information.  Once I did that step, and exported the shape file, it worked fine.

That being said, I don't like some of the road types assigned - apparently the government calls a lot of the rural highways "residential streets" so they are very thin and grey.  Also, there appears to be segments of some roads missing - not sure if they didn't have a type assigned, so were deleted, or just didn't exist.

Lalita
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: -Oz- on February 15, 2009, 10:36:17 AM
I thought that was built into the NHD queries.

Each file has two lines:
ALTER TABLE nhd_flowline ADD COLUMN mp_type character varying(50);
ALTER TABLE nhd_flowline ALTER COLUMN mp_type SET STORAGE EXTENDED;


That should add the MP_TYPE column.

The segments of road missing are likely not missing, zoom in further; its the way the tiger data is formatted.

And the problem with the roads is that everything is pretty much a highway or a street; there aren't arterial streets or anything.
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: n2stitch on February 15, 2009, 11:03:26 AM
You have a transportation query file, but have it named transportation.shp instead of transportation.shp.txt.  Also, if you compare the steps of the NHD data section in your tutorial to the transportation section, you'll see the step to use the transportation.shp.txt to alter the table is missing.  But, but using the NHD section of the tutorial as a guide, I was able to finish the transportation.

Would you like me to edit the transportation section, adding what I think is missing, and send it to you for your review?

Thank you so much for offering all these tools, it's making what seemed nigh on impossible, not. :-)

Also, any chance you can write a set of queries to add the mp_type column for some LULC shape files?

Lalita
Title: Re: Transportation Data - Need Help - no MP_Type Field
Post by: -Oz- on February 15, 2009, 08:28:05 PM
Yes if you edit it and email it to services @ gpsfiledepot.com (remove the spaces around the @) I can update accordingly.