[Chameleon] QuickZoom, KeyMap help needed

Tim Badtke TBadtke at eastcentralrpc.org
Tue Oct 4 09:51:16 EDT 2005


I am having trouble with with the QuickZoom and KeyMap widgets. 
 
The quickzoom problems relates to projections. The projection our
company uses is not a standard one.  I'm not sure if you can make a new
one in the epsg file or not. I tried, but I got an invalid SRS error. I
found this thread
http://lists.maptools.org/pipermail/chameleon/2005-April/002152.html but
there was no resolution posted. I tried putting the proj definition in
the quickzoom widget, but I still get the same error. This is my current
code for the quickzoom widget:
 
<CWC2 TYPE="QuickZoom">
  <view name="Calumet County" minx="2121000" miny="1245000"
maxx="22250000" maxy="1383000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Fond du Lac County" minx="1994000" miny="1118000"
maxx="21980000" maxy="1273000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Green Lake County" minx="1901000" miny="1150000"
maxx="20040000" maxy="1286000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Marquette County" minx="1807000" miny="1149000"
maxx="19280000" maxy="1285000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
        <view name="Menominee County" minx="1965000" miny="1595000"
maxx="21000000" maxy="1702000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Outagamie County" minx="2028000" miny="1370000"
maxx="21840000" maxy="1511000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Shawano County" minx="1900000" miny="1500000"
maxx="21690000" maxy="1666000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Waupaca County" minx="1902000" miny="1370000"
maxx="20710000" maxy="1540000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Waushara County" minx="1807000" miny="1273000"
maxx="20020000" maxy="1380000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
  <view name="Winnebago County" minx="1374000" miny="1245000"
maxx="21300000" maxy="1383000" SRS="+proj=tmerc +lat_0=0 +lon_0=90w
+x_0=520000 +y_0=-4480000 +k=0.99960 +ellps=GRS80 +datum=HPGN
+units=feet +no_defs"/>
</CWC2>
 
Any suggestions?
 
My keymap widget is basically working, but only parts of the location
red bounding box show up on it(sometimes left edge and top edge,
sometimes just left edge, sometimes no edge, etc)??  It zooms fine in
the main map, but the keymap just doesn't show a complete box. My
reference map sucks right now, I have to find a better way to make it,
but I don't think that should effect it? Here's the code:
 
<CWC2 TYPE="KeyMap"
                      IMAGE="images/ecwrpc_reference.png"
                      VISIBLE="true"
                      WIDTH="150"
                      HEIGHT="112.5"
                      COLOR="-1 -1 -1"
                      OUTLINECOLOR="255 0 0"
                      MINX="1800000"
                      MINY="1100000"
                      MAXX="2230000"
                      MAXY="1720000"/>
 
Extents are the same as the map, size is 30% of the map size (500x375).
This may also have to due with the projection issue? 
 
Thoughts?
 
I appreciate any help I can get. Slowly but surely I'm getting the hang
of this and getting an application developed.
 
Thanks in advance,
Tim
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20051004/a25f8683/attachment.html


More information about the Chameleon mailing list