[OZAPRS] Message Traffic and WX Alert list in Xastir

Geoff geoff at gatwards.org
Thu Nov 27 18:25:13 EST 2008


Here's the start of a dump of the CSV file generated from the DBF:

[root at radiocorner-1 warnings]# head csv/c_aus20no08.csv 
STATE,CWA,COUNTYNAME,FIPS,TIME_ZONE,FE_AREA,LON,LAT
NS,SWS,Albury (C),10250,E,,,
NS,NTL,Armidale Dumaresq (A),10170,E,,,
NS,SYD,Ashfield (A),10010,E,,,
NS,SYD,Auburn (A),10011,E,,151.05000,-33.84800


[root at radiocorner-1 warnings]# head csv/mz_aus13no08.csv 
ID,WFO,NAME,LON,LAT
TAZ503,WSC,Southwest Coast,145.9040,-43.9840
TAZ504,SEH,Southeast Coast,147.7070,-43.6920
TAZ505,SEH,Lower East Coast,148.5450,-42.8000
TAZ502,WSC,Central West Coast,144.7550,-42.4360


[root at radiocorner-1 warnings]# head csv/z_aus27no08.csv 
STATE,ZONE,CWA,NAME,STATE_ZONE,TIME_ZONE,FE_AREA,LON,LAT,SHORTNAME
QL,010,PEN,PENINSULA,QL010,E,,143.14900,-13.53400,
NT,010,DAR,DARWIN - DALY,NT010,C,,131.62100,-13.15200,
NT,015,ARN,ARNHEM,NT015,C,,135.24200,-12.65500,
NT,020,RMC,ROPER - MCARTHUR,NT020,C,,135.15600,-15.46700,



And here's what is in my dbfawk file:

(c)
dbfinfo="STATE:CWA:COUNTYNAME:FIPS:TIME_ZONE:FE_AREA:LON:LAT";
dbffields="COUNTYNAME:STATE:FIPS";

(z)
dbfinfo="STATE:ZONE:CWA:NAME:STATE_ZONE:TIME_ZONE:FE_AREA:CEN_LAT:CEN_LON:LO
N:LAT:SHORTNAME";
dbffields="STATE_ZONE:NAME";

(mz)
dbfinfo="ID:WFO:NAME:LON:LAT";
dbffields="ID:NAME";


So the only one that has an ID field is the MZ, and that's not currently
working due to the state definition issue.


Perhaps your application saved an ID field into the DBF file which is why
you now see it ???

Geoff


-----Original Message-----
From: ozaprs-bounces at aprs.net.au [mailto:ozaprs-bounces at aprs.net.au] On
Behalf Of Ray Wells
Sent: Thursday, 27 November 2008 5:53 PM
To: Australian APRS Users
Subject: Re: [OZAPRS] Message Traffic and WX Alert list in Xastir

Andrew has raised a point re the ID field and I don't know the answer. 
All I know is that mine started working after I added that field.

Geoff wrote:
> Excellent - Glad to hear that it's working now :-)
>
> SO - To summarise what we needed to do to make this all work (once we
> confirm this I'll update the website so that it's public record)
>
> - Ensure shp support is compiled into Xastir;
> - Create new .dbfawk files in the /config dir for the Aussie zones;
> - Stick the Shapefiles in the Counties dir;
>
> Did I miss anything from our debugging ???
>
> I'll upload the .dbfawk files along with the Shapefiles to the
site+mirrors
> for everyone to grab - It'll save making errors in the future :-)
>   
Geoff, I split the large shapefile into tiles courtesy of shp2tile. I 
can ftp the parts to you if they're of any value. xastir can read the 
tiles which are in the format c_aus20no08-#.shp where # is a number 
dependent on the number of parts, but I don't know about UIView. Maybe 
somebody can test this out. The file loads much more quickly as tiles.
> Still to be resolved is the MZ file, but this is an action on me to verify
> with our US counterparts and implement.
>   
> Maybe it's because I'm only using the default maps in Xastir at the
moment,
> but I must admit, the shapefile overlays do look better in UI-View (Solid
> areas rather than the ---ALERT--- fill that Xastir does)
>
>   
Isn't this configurable in the dbfawk file? The US example maps have 
complete fill.

Ray vk2tv
> Cheers,
> Geoff VK2XJG
>
>
> -----Original Message-----
> From: ozaprs-bounces at aprs.net.au [mailto:ozaprs-bounces at aprs.net.au] On
> Behalf Of Ray Wells
> Sent: Thursday, 27 November 2008 3:24 PM
> To: Australian APRS Users
> Subject: Re: [OZAPRS] Message Traffic and WX Alert list in Xastir
>
> I'll make this public so nobody else gets caught by it.
>
> Prior to Andrew Errington making me aware of qgis I used Microsoft Excel 
> to view the dbf database files. I created the dbfinfo line in dbfawk 
> based on what Excel reported.
>
> In the case of c_aus20no08.dbf, Excel didn't report the first field, ID. 
> Column A was the second field, STATE..
>
> Not having the first field included obviously screwed up reading the 
> database.
>
> Thanks to everyone who has been involved in trying to sort this, but 
> especially thanks to Geoff, David and Andrew.
>
> As David said, perseverance paid off.
>
> Ray vk2tv
>
> Ray Wells wrote:
>   
>> I've just discovered an error in my c_aus20no08.dbawk file. The first 
>> field in the dbf, ID, wasn't present. Since adding that field to the 
>> dbfinfo line in dbfawk, I'm now getting warnings in the warning zones, 
>> four of which are present on the map in western Queensland and South 
>> Australia. The format of the warning is horizontal red lines with the 
>> word ALERT, also in red, appearing frequently within the affected areas.
>>
>> Ray vk2tv
>>
>> David wrote:
>>     
>>> Hi Geoff...have done a ./update-xastir from the CVS in case something 
>>> got broke.....
>>> an NWS_WARN came in for NEP_STS and now i have a Red Alert area
>>> looks like things are getting there.....
>>> what you thought was YN as yellow well the Red one is YF....my cyan 
>>> one may be missing dont know yet
>>>
>>> David
>>>
>>>
>>>
>>> Geoff wrote:
>>>       
>>>> BINGO.
>>>>
>>>> Problem with the Marine zones and Xastir found.
>>>>
>>>> Xastir has been HARD CODED so that only certain state prefixes will 
>>>> look at
>>>> the MZ file.   From  maps.c:
>>>>
>>>> case 'Z':
>>>>   // Zone, coastal or offshore marine zone file z_????? or mz???? or 
>>>> oz??
>>>>   // oz: ANZ081-086,088,PZZ081-085
>>>>   // mz: AM,AN,GM,LC,LE,LH,LM,LO,LS,PH,PK,PM,PS,PZ,SL
>>>>   // z_: All others
>>>>
>>>>
>>>> SO - I'll need to "fool" Xastir somehow by giving all products in 
>>>> the MZ
>>>> file a state from the hard-coded list above.....   I'm not sure if 
>>>> this will
>>>> cause issues to the US folk - I'll check with Dale & Peter.
>>>>
>>>> I'll get back to you on this one.....
>>>>
>>>> Anyway updated z_aus27no08 fileset is now available, and the code 
>>>> change has
>>>> been done to send all alerts as NWS_xxxxx
>>>>
>>>> Geoff   VK2XJG
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Geoff [mailto:geoff at gatwards.org] Sent: Thursday, 27 November 
>>>> 2008 12:53 PM
>>>> To: 'Australian APRS Users'
>>>> Subject: RE: [OZAPRS] Message Traffic and WX Alert list in Xastir
>>>>
>>>> OK I've got my Xastir up and running, and after conducting a few 
>>>> tests, I
>>>> think I found a problem (with Xastir!)
>>>>
>>>> It looks like Xastir ONLY accepts alert messages with NWS_xxxx as the
>>>> destination.  The WXSVR protocol allows for both NWS_xxxx AND NWS-xxxx.
>>>> I was sending out WARN severity messages with the latter format, in 
>>>> order
>>>> for these to trigger additional messages on mobile units.
>>>>
>>>> So,  Fix 1 is for WXSVR-AU to only send alerts with the Underscore 
>>>> method...
>>>>
>>>> I have the dbfawk files working in the /config dir - BUT I had to 
>>>> RENAME the
>>>> existing US versions (nwsz_ddmmyy became _nwsz_ddmmyy etc). Xastir 
>>>> refused
>>>> to see the z_ausddmmyy file until I did this - don't know why.
>>>>
>>>> I have also REMOVED the additional column from the end of the dbf 
>>>> file for
>>>> the z_aus product, as it also seems to have been causing issues with 
>>>> Xastir
>>>> (look out for updated z_aus file later today on the site)
>>>>
>>>> I'm still trying to look at the issue with the MZ warnings - I still 
>>>> can't
>>>> trigger any areas on the map although there seem to be no errors in
>>>> Xastir...   Will keep looking at this one, but it only affects coastal
>>>> waters areas at the moment.
>>>>
>>>> Regards,
>>>> Geoff
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: ozaprs-bounces at aprs.net.au [mailto:ozaprs-bounces at aprs.net.au] On
>>>> Behalf Of David
>>>> Sent: Thursday, 27 November 2008 10:04 AM
>>>> To: Australian APRS Users
>>>> Subject: [OZAPRS] Message Traffic and WX Alert list in Xastir
>>>>
>>>> Hi Geoff....e-mail was getting too long
>>>>
>>>> your comment about th ?N or ?Y being a missing color for the area 
>>>> alert may be spot on.....
>>>> however i cant find ..after a lot of trawling of my h/d...the 
>>>> file(s) where the colors are listed for the ADVIS  etc.....
>>>> i got an Alert for CNTFLW again and the area color was YY and that 
>>>> showed up the Yellow area on the map down the bottom of Victoria
>>>>
>>>> i think you are onto something there
>>>>
>>>> give me the clues and i'll do the searching etc....ive got all day 
>>>> hi hi
>>>>
>>>> David VK4BDJ
>>>> _______________________________________________
>>>> Ozaprs mailing list
>>>> Ozaprs at aprs.net.au
>>>> http://aprs.net.au/mailman/listinfo/ozaprs
>>>>
>>>> _______________________________________________
>>>> Ozaprs mailing list
>>>> Ozaprs at aprs.net.au
>>>> http://aprs.net.au/mailman/listinfo/ozaprs
>>>>
>>>>   
>>>>         
>>> _______________________________________________
>>> Ozaprs mailing list
>>> Ozaprs at aprs.net.au
>>> http://aprs.net.au/mailman/listinfo/ozaprs
>>>
>>>       
>> _______________________________________________
>> Ozaprs mailing list
>> Ozaprs at aprs.net.au
>> http://aprs.net.au/mailman/listinfo/ozaprs
>>
>>     
>
> _______________________________________________
> Ozaprs mailing list
> Ozaprs at aprs.net.au
> http://aprs.net.au/mailman/listinfo/ozaprs
>
> _______________________________________________
> Ozaprs mailing list
> Ozaprs at aprs.net.au
> http://aprs.net.au/mailman/listinfo/ozaprs
>
>   

_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs

_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs



More information about the Ozaprs mailing list