Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Streets in GPX: msg#00090

gis.openstreetmap.devel

Subject: Re: Streets in GPX


> >
> > Bus 219 route
> > StreetID Startnode Endnode
> > 286 50 63
> > 287 1 3
> > 90281 12 1
> > 2131 54 42
> > etc?
>
> Now you are starting to introduce structure. A new data type: bus route.
> May be you are able to share that datatype and label it "route". Still the
> resulting structure is more complex than the simple "tracks=routes=streets
> are vectors of street segments".

That's true, bus routes represented this way would probably have to go in some
other data format, not GPX (an argument for a custom data format in the
long-term?)

> If a part of a track segment has to be shared among different tracks, you
> could split up the segment into 3 pieces: The piece before the common
> track, the common track and the piece after the common track:
>
> Example: (enable fixed sized font)
>
> bus 13
> --------\
> \ Baker street
> -----A----+------B-------+-----C--------
> Baker street \
> \ bus 13
> \
>
> If the track segment was former composed of a single track segment ABC, it
> is now split into A, which only belongs to "Baker Street", B which is
> assigned to both, the street and the bus route and C, which is only in
> "Baker Street" too.

How would one explicitly link a bus route to a street? I'm guessing it will be
as follows (but I'm probably wrong...)

Presumably the nodes (=trkpts) in the GPX will be tagged with an ID which
incorporates the street ID?

node ID = (Street ID * n) + node position within street

where n is some large number.

e.g. in the above example, how can we find out the bus goes along Baker
Street?

Baker Street: route ID 10
Baker Street segment A: nodes 10n to 10n+1
Baker Street segment B: nodes 10n+1 to 10n+2
Baker Street segment C: nodes 10n+2 to 10n+3

Bus route: incorporates nodes 10n+1 to 10n+2 (amongst others)

divide by n and we get 10, and we know this is a Baker Street segment, i.e.
the bus follows Baker Street.

Or will it just be the lat/long of the nodes?

I know I must be missing something though, as I am still puzzled as to the
necessity of the multiple two-point segments; the above can be done by
treating both streets and routes as (possibly multiple) segments of multiple
single points.

Even the "streets with gaps" scenario does not necessitate the two-point
segments; for example (as I said in another message) the A34 has a gap
between Oxford and Birmingham; it could be treated as two segments each of
many points.

Nick


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation