Re: [Roadnav-devel] Map download links changed
Status: Inactive
Brought to you by:
rllynch
|
From: <p4d...@sn...> - 2008-10-25 19:05:17
|
Alright Dustin, I appreciate your help. My changes to the code are
functional, however, since I'd never seen this code before, I simply
hardcoded in the "_Features_20080815" bit to make sure I changed the
right things. Now... as I expect this 20080815 bit is the date it was
modified (or something similar) I don't think that should be hard
coded, do you? For instance, for Idaho, I think ideally the code would
grab ID_Features_* or even ID_* (hoping that they modify the file
instead of just creating new ones, of course). However, I honestly
don't know how to do that. I'd be able to do it if the file was stored
locally, like walking through a directory and looking for a file name
that matched, but since I'm sending a request to a server, I need to
know my link is correct, and I obviously can't send wildcards in
links. How can this be done?
Kyle
On Oct 25, 2008, at 10:43 AM, Dustin Spicuzza dustin-at-
virtualroadside.com |RoadNav| wrote:
> Looking at my map cache... the top of my MI_DECI.txt file looks like
> so:
>
> Feature_ID|Feature_Name|Class|State_Alpha|State_num|County|
> County_num|Primary_lat_DMS|Primary_lon_DMS|Primary_lat_DEC|
> Primary_lon_DEC|Source_State_Alpha|Source_lat_DMS|Source_lon_DMS|
> Source_lat_DEC|Source_lon_DEC|Elevation_Meters|Map_Name
> 205015|Continental
> Divide|Ridge|CO|08|Grand|049|390001N|1063550W|
> 39.00027|-106.5972536|||||3914|Independence
> Pass
>
> Whereas the top of the MI_Features_20080815.txt looks like this:
>
> FEATURE_ID|FEATURE_NAME|FEATURE_CLASS|STATE_ALPHA|STATE_NUMERIC|
> COUNTY_NAME|COUNTY_NUMERIC|PRIMARY_LAT_DMS|PRIMARY_LONG_DMS|
> PRIMARY_LAT_DEC|PRIMARY_LONG_DEC|SOURCE_LAT_DMS|SOURCE_LONG_DMS|
> SOURCE_LAT_DEC|SOURCE_LONG_DEC|ELEVATION|MAP_NAME
> 431069|Big
> Swamp|Swamp|IN|18|Steuben|151|414532N|0844852W|
> 41.7589384|-84.8144022|||||315|Camden
>
> So... yes, they look about the same. I'm slightly amused that the
> first
> set of items reside outside the state though.. heh. Anyways.
>
> Dustin
>
>
> p4d...@sn... wrote:
>> Alright Dustin, I think I can make the change. However, I never
>> looked at the previous files that were downloaded, and don't know
>> what
>> they looked like. Could you look at http://geonames.usgs.gov/docs/stategaz/ID_Features_20080815.zip
>> and tell me if it looks like what we'd expect ID_DECI.zip to look
>> like? If so, then I'll continue. Thanks!
>>
>> Kyle
>>
>> On Oct 25, 2008, at 10:15 AM, Dustin Spicuzza dustin-at-
>> virtualroadside.com |RoadNav| wrote:
>>
>>
>>> p4d...@sn... wrote:
>>>
>>>> Whenever one needs to download a map, one gets an "Error reading
>>>> <link> (An error occurred during negotiation)" The links changed.
>>>> All the files are named something different now... I think they
>>>> have dates appended to the end of them too, which might make this
>>>> difficult. I'm thinking regex. You can download them by hand fromhttp://geonames.usgs.gov/domestic/download_data.htm
>>>> . The code needs to be updated to somehow use this. I mean, we
>>>> could change the map root in the preferences, but the filenames
>>>> aren't even what the program is expecting. I don't want to mess
>>>> with the source if I don't need to. It's too bad, I needed to
>>>> reinstall and lost all my cached maps, and now roadnav is
>>>> completely useless because I can't get any maps. Is this an easy
>>>> fix?
>>>>
>>>>
>>> It may be an easy fix -- someone else could speak to this. Rich?
>>>
>>> Personally, I'm not going to take the time to fix it. I already have
>>> had
>>> a huge lack of free time to work on Roadnav, and given what I'm
>>> working
>>> on totally discards the TIGER/Line support, so its not worth it
>>> for me
>>> to get distracted (especially since I'm not particularly familiar
>>> with
>>> the data in question).
>>>
>>> However, if you or someone else wants to fix this in trunk, that
>>> would
>>> probably be a useful thing. :)
>>>
>>> Dustin
>>>
>>> --
>>> Innovation is just a problem away
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win
>>> great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in
>>> the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Roadnav-devel mailing list
>>> Roa...@li...
>>> https://lists.sourceforge.net/lists/listinfo/roadnav-devel
>>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win
>> great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in
>> the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Roadnav-devel mailing list
>> Roa...@li...
>> https://lists.sourceforge.net/lists/listinfo/roadnav-devel
>>
>
>
> --
> Innovation is just a problem away
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Roadnav-devel mailing list
> Roa...@li...
> https://lists.sourceforge.net/lists/listinfo/roadnav-devel
|