[Xastir] GNIS Labels ?

William McKeehan mckeehan at mckeehan.homeip.net
Sat Jan 1 09:19:01 EST 2005


Would anyone object to limiting the GNIS places that are displayed one more
level down?

Currently, the code limits when zoom is greater than 200; I would like to add
another limit at zooms greater than 100 for cities of less than 500.

Here's a diff of what I would like to see changed.

Index: map_gnis.c
===================================================================
RCS file: /cvsroot/xastir/xastir/src/map_gnis.c,v
retrieving revision 1.14
diff -u -r1.14 map_gnis.c
--- map_gnis.c  17 Nov 2004 16:11:35 -0000      1.14
+++ map_gnis.c  1 Jan 2005 14:12:56 -0000
@@ -735,6 +735,12 @@
                                     //fprintf(stderr,"Name: %s\tPopulation:
%s\n",name,population);
                                 }
                             }
+                                                       else if (scale_y >
100){ //Don't draw cities of less than 500
+                                if (atoi(population) < 500) {
+                                    ok = 0;
+                                    //fprintf(stderr,"Name: %s\tPopulation:
%s\n",name,population);
+                                }
+                                                       }
                         }
                         else if (strcasecmp(type,"range") == 0) {
                             if (scale_y > 50)


-- 
William McKeehan
KI4HDU
Internet: mckeehan at mckeehan.homeip.net
http://mckeehan.homeip.net



More information about the Xastir mailing list