[postgis-users] label placement

Chapman, Martin MChapman at sanz.com
Thu Jun 1 13:21:01 PDT 2006


You could also do this with a temp table and an r-tree index.
Unfortunately, you need to know the length of each label string from the
device context of the viewer to know what the size of the labels'
bounding rect is going to be for a given font and map zoom scale.

Martin

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Bruce Rindahl
Sent: Thursday, June 01, 2006 8:42 AM
To: 'PostGIS Users Discussion'
Subject: RE: [postgis-users] label placement

OK I'll take this one ;)
I can assure you that PostGIS will NEVER give town labels that overlap.
It
will return the labels in a nice neat table, one per row.
Christo you seem to be asking how to place labels on some kind of
mapping
interface.  While PostGIS is used extensively by mapping interfaces, it
is a
database, not mapping software.
Check the discussion lists of the mapping software or interface you are
using. (Mapserver, GRASS, ESRI, Mapinfo....,?)
By the way, in my 12+ years in GIS I think this is probably THE most
difficult issue - placing labels.  You are NEVER going to find an
automatic
label (annotation) placement routine that will work for all cases.  I am
sure you will find lots of suggestions on appropriate list.
Good Luck!
Bruce Rindahl

-----Original Message-----
From: postgis-users-bounces at postgis.refractions.net
[mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of
Christo
Du Preez
Sent: Thursday, June 01, 2006 7:02 AM
To: PostGIS Users Discussion
Subject: [postgis-users] label placement

Hi all,

I'm sure this question has been asked a million times. Unfortunately the

search on http://postgis.refractions.net/cgi-bin/htsearch don't work.

My question... How can I write a query that avoids town labels from 
overlapping?

Regards,
Christo
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list