Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Preventing overlaps of text when creating/writing to Tiles - How?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hans  
View profile  
 More options Jul 24 2008, 4:04 pm
From: Hans <hansc...@gmail.com>
Date: Thu, 24 Jul 2008 13:04:37 -0700 (PDT)
Local: Thurs, Jul 24 2008 4:04 pm
Subject: Preventing overlaps of text when creating/writing to Tiles - How?
I got TileOverlay working to my needs at my sandbox:

http://www.onlinesrs.com/maps/sandbox/

House numbers and building names (collectively, I call them "labels")
are added as tile overlays, created on-the-fly (may cache them later)
and query from a database.

However, many of these labels are clustered together and overlapping
each other. (Please see the above sandbox example). Any graphical
libraries or codes out there I can use to prevent these overlaps? i.e.
to display less labels at lower zoom.

I realize Google's labels and road names never overlaps and are
displayed differently at each zoom levels. How can I achieve the same
effect for my custom tiles?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Garthan  
View profile  
 More options Jul 24 2008, 4:43 pm
From: Garthan <lance...@inetnebr.com>
Date: Thu, 24 Jul 2008 13:43:41 -0700 (PDT)
Local: Thurs, Jul 24 2008 4:43 pm
Subject: Re: Preventing overlaps of text when creating/writing to Tiles - How?
Generate a slightly larger image for each tile request
and cut the response creating a buffer the python script
called TileCache  uses that idea. or go further and generate
one large image and run a tile cutter on it.(ie
abandon the on the fly part)

If you want different images at different zooms ...
You could just generate a different image at each
zoom and run the tile cutter on the zoom in question
assuming you are generating tiles which are geospatially
 located then mixing and matching tile cutting runs
should just work.

(Most full GIS packages and their wms servers have nice tools for
controlling differing things being visible at different zooms
the above plus TileCache can give you both the on the fly
part and do the buffering... mod_python very recommended
for speeding up TileCache

On Jul 24, 3:04 pm, Hans <hansc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hans  
View profile  
 More options Jul 26 2008, 2:38 pm
From: Hans <hansc...@gmail.com>
Date: Sat, 26 Jul 2008 11:38:54 -0700 (PDT)
Local: Sat, Jul 26 2008 2:38 pm
Subject: Re: Preventing overlaps of text when creating/writing to Tiles - How?
Thanks Garthan for the suggestions.

I've tried googling around on the above (python script, tilecache, GIS
packages, etc.) and found myself buried in tons of new stuffs to learn
and try out - overwhelmed ;)

Stepping back for a moment, I'm thinking perhaps what I need is just
some light-weight sample codes to do the above; since I'm already half-
way done with the ability to generate custom tiles using built-in php
graphics routines.

Will evaluate my options and try a few more things; the concept
described in your first paragraph sounds like a great direction for
me. I'm already generating the tiles writing into buffer space around
the tiles so as to get text to span and display correctly across
tiles; next I just need to figure out a [simple] way to check for
overlaps, also to be done across the buffer space... I think.

Have been search for boolean functions that detects overlapping
rectangles, or some logic that determines how labels are space-out or
hidden in a collision, etc. I wonder which specific component in all
the "packages" suggested give what I need here?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hans  
View profile  
 More options Jul 26 2008, 4:30 pm
From: Hans <hansc...@gmail.com>
Date: Sat, 26 Jul 2008 13:30:59 -0700 (PDT)
Local: Sat, Jul 26 2008 4:30 pm
Subject: Re: Preventing overlaps of text when creating/writing to Tiles - How?
On Jul 27, 2:38 am, Hans <hansc...@gmail.com> wrote:

> the concept described in your first paragraph sounds like a great direction for
> me. I'm already generating the tiles writing into buffer space around
> the tiles so as to get text to span and display correctly across
> tiles; next I just need to figure out a [simple] way to check for
> overlaps, also to be done across the buffer space... I think.

Made it ;)
http://www.onlinesrs.com/maps/sandbox/index2.php

Thanks for the lead!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google