Hi there, > I've been successful in plotting interstates on our "weather" maps by using > the awips > DataAccessLayer as shown in the below bit of code. I'm wondering if I can > plot smaller > roads/highways using this same technique, or is there a better recommended > way to > accomplish this task? > > I did see on this page some reference to smaller roads/highways: > https://www.unidata.ucar.edu/blogs/developer/en/entry/plotting-awips-map-resources-with > > And I've tried adding a line like this without success: > *intrste_request.addIdentifier('pretype', 'Hwy')* > > Here is my working code to plot highways: Thanks for your inquiry. Good find with that blog! Unfortunately, it's out of date with our current maps database, and so is the rest of our map database documentation. But, I was able to dig into the issue a bit and have something that I think will work for you. For the latest version of AWIPS, you want to be pointing to the "mapdata.highway" table instead of the "mapdata.interstate" table. So change one of your line to: intrste_request.addIdentifier('table','mapdata.highway') If you simply plot that, it may take quite a while, but you will get a ton more roads shown. I've attached an example screenshot of the original with just interstates (in orange) and then with all available highways. If you'd like to filter that, one option is to filter on the 'hwy_type' with the options being: I - interstates U - US highways S - State highways/routes I did filtered on both U and S separately and attached the screenshots for that output as well. To do that in python, add this line: intrste_request.addIdentifier('hwy_type', 'U') You can change 'U' to be 'I', or 'S'. Let me know if this makes sense and if this helps? Thanks! --Shay Carter She/Her/Hers AWIPS Software Engineer NSF Unidata If you're interested, please feel free to fill out a survey about the support you receive: https://docs.google.com/forms/d/e/1FAIpQLSeDIkdk8qUMgq8ZdM4jhP-ubJPUOr-mJMQgxInwoAWoV5QcOw/viewform Ticket Details =================== Ticket ID: AKV-251431 Department: Support AWIPS Priority: Normal Status: Open =================== NOTE: All email exchanges with NSF Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
Attachment:
interstates.png
Description: PNG image
Attachment:
all_highways.png
Description: PNG image
Attachment:
us_highway.png
Description: PNG image
Attachment:
state_highway.png
Description: PNG image