[Xastir-dev] geocoder Tiger 2003-based files
Owen DeLong
owen at delong.com
Wed Mar 31 20:05:21 EST 2004
Actually, I was thinking in terms of something that would use readdir
to detect the available datasets rather than needing an index. You should
have a pretty good idea of where you are/are looking, at least in terms
of State/Country, so, I think any subsplits we decided to implement could
be sequentially searched at run-time fairly quickly. Sure, searching the
smaller files will be slower, but, we can list that as a tradeoff if
the user chooses to install the smaller files instead of the large one.
That way, it's an easy user-based decision of what tradeoff they want
between speed and space.
Just a thought.
Owen
--On Wednesday, March 31, 2004 19:02 -0500 Derrick J Brashear
<shadow at dementia.org> wrote:
> On Wed, 31 Mar 2004, Owen DeLong wrote:
>
>> How about the following:
>>
>> directory/
>> CC.geocode File containing geocode for entire CC Country
>> where CC is ISO 2 letter country code.
>>
>> CC/ Directory containing data for CC Country as above.
>>
>> CC/S.geocode File containing geocode for S state/province/etc. within
>> CC Country.
>>
>> CC/S/ Directory containing data for S as above.
>>
>> CC/S/c.geocode File containing geocode data for c City/County/etc.
>>
>> CC/S/c/... Not sure this would be useful, but, the nice thing is
>> that if we make the UI recursive, it will find what
>> it's looking for as deep as it needs to go, if
>> necessary, and we don't have to worry about arbitrary
>> limits or keeping full data always available.
>
> My Motif fu isn't good enough to provide a maps-browser style interface,
> but I can follow this scheme for now by making this code (which for the
> moment is US-specific anyhow) try that scheme at least for US.geocode and
> then US/SN.geocode for the state; county would involve having a top level
> database of counties, fairly easily. I think I will do that after dinner.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://xastir.org/pipermail/xastir-dev/attachments/20040331/4391ee34/attachment.sig>
More information about the Xastir-dev
mailing list