C
ccc31807
I have three files. One is a data file which contains three columns, a
datum, a X axis (latitude), and a Y axis (longitude). It essentially
represents the number of individuals meeting particular criteria that
reside in specific locations. The second is a GIF with a dot plot
created using GD::Graph, using the data in the first file. The third
is a B & W GIF which is a map of the United States.
I would like to overlay the dot plot with the map to give a graphical
representation of the number of people on a particular location. My
problem seems to be one of projection -- I can manipulate the latitude
and longitude to correlate to the X and Y position of the pixels on
the map for regions, but not for the entire map, i.e., if the dot plot
overlays Washington D.C. perfectly, San Francisco appears in Nevada,
and if I center the map on Chicago, Miami appears in the Gulf of
Mexico. So far, I've used several different maps, and none of them
consistently show the same locations (on the map) for the coordinates.
I'm stuck at adjusting the dot plot file and the map, and I'm thinking
that I probably need an 'intelligent' map that can place the dots
where they belong. Is there a Perl solution to this problem? Or maybe
I'm looking for the wrong solution.
Thanks, CC.
datum, a X axis (latitude), and a Y axis (longitude). It essentially
represents the number of individuals meeting particular criteria that
reside in specific locations. The second is a GIF with a dot plot
created using GD::Graph, using the data in the first file. The third
is a B & W GIF which is a map of the United States.
I would like to overlay the dot plot with the map to give a graphical
representation of the number of people on a particular location. My
problem seems to be one of projection -- I can manipulate the latitude
and longitude to correlate to the X and Y position of the pixels on
the map for regions, but not for the entire map, i.e., if the dot plot
overlays Washington D.C. perfectly, San Francisco appears in Nevada,
and if I center the map on Chicago, Miami appears in the Gulf of
Mexico. So far, I've used several different maps, and none of them
consistently show the same locations (on the map) for the coordinates.
I'm stuck at adjusting the dot plot file and the map, and I'm thinking
that I probably need an 'intelligent' map that can place the dots
where they belong. Is there a Perl solution to this problem? Or maybe
I'm looking for the wrong solution.
Thanks, CC.