![]() |
||||
|
|
||||
[Chameleon] Query ResultsRene Teniere TENIERER@gov.ns.caMon, 16 Feb 2004 09:09:50 -0400
|
||||
Hi Tracy, here is an example map file. You have to set the tolerance on
it so that the query will pick up the features:
LAYER
NAME "Forest"
GROUP "Forest Type"
STATUS ON
TEMPLATE "c:/chameleon11a/websites/template/blank.html"
TYPE POLYGON
MAXSCALE 500000
TILEINDEX "D:/GIS_Data/coindex/coindex"
TILEITEM "loforest"
CLASSITEM "COVER_TYPE"
TOLERANCE 10
TOLERANCEUNITS PIXELS
CLASS
NAME "Softwood"
EXPRESSION "2"
STYLE
SYMBOL 0
COLOR 33 66 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Mixwood"
EXPRESSION "5"
STYLE
SYMBOL 0
COLOR 33 99 33
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Hardwood"
EXPRESSION "8"
STYLE
SYMBOL 0
COLOR 100 50 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
Good Luck!
Rene
Rene J.R. Teniere - BSc., D.GIS
GIS Technician
Nova Scotia Department of Natural Resources
Forestry Division (GIS) - Truro
Phone: (902) 893-5655
Mobile: (902) 209-8956
>>> "Tracy Howlett" <thowlett@whistlermuseum.org> 2004-02-15 6:00:46 PM
>>>
Hello,
I have my Query Tool working in principle but I can't actually get it
to
return any information. I have put the DUMP, TEMPLATE and STATUS (on)
variables in my mapfile and all shapefiles have an attribute table.
When I
click on any one of them using my Information tool I just get 'no
results
returned for...'. How can I tell Chameleon which fields to return?
Also, what if I have a URL that I'd like to link to in the results
table -
can I have a field which is displayed and then another field which
actually
contains the link without having to show it? For example I want the
query
results to say 'click here for more info' and then link to a url which
is
stored in the associated dbf of the shapefile.
As always your thoughts are much appreciated.
Tracy
-----Original Message-----
From: chameleon-admin@lists.maptools.org
[mailto:chameleon-admin@lists.maptools.org] On Behalf Of
Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Sent: Thursday, January 15, 2004 12:28 PM
To: jeffb@erlandsen.com; chameleon@lists.maptools.org
Subject: RE: [Chameleon] Install problems
Jeff,
The demo uses a map that is in a non standard EPSG projection.
Find your PROJ's "epsg" file (Most likely in /usr/local/share/proj/),
and
add the following at the bottom:
# WGS84 Canada LCC (WARNING: FAKE EPSG CODE, NON STANDARD)
<42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49 +lat_2=77
+x_0=0 +y_0=-8000000 +datum=WGS84 +units=m no_defs <>
# NAD83 Canada LCC (WARNING: FAKE EPSG CODE, NON STANDARD) (This is
the
standard Atlas of Canada data's projection)
<42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49
+lat_2=77
+datum=NAD83 +units=m no_defs <>
(There's 2 common canadian projections here, forget exactly which one
the
demo uses)
J.F.
-----Original Message-----
From: chameleon-admin@lists.maptools.org
[mailto:chameleon-admin@lists.maptools.org]On Behalf Of Jeff Berry
Sent: Thursday, January 15, 2004 3:08 PM
To: Chameleon
Subject: [Chameleon] Install problems
I've installed Chameleon 1.1 on Redhat 8.0, running MapServer 4.0.1.
I'm
having real trouble getting the demo app to work. I have chameleon
installedin /opt/cwc2. I've installed all the demo documents within
the
appropriate directories under /opt/cwc2, and have edited the config,
index.phtml and map document to refelct paths correctly. However, when
I
try to open the index.phtml I get the following error:
Warning: [MapServer Error]: msProcessProjection(): no options found in
'init' file in /opt/cwc2/htdocs/common/wrapper/map_session.php on line
215
Warning: Failed to open map file /opt/cwc2/map/chameleon.map in
/opt/cwc2/htdocs/common/wrapper/map_session.php on line 215
ERROR: Invalid map file file (/opt/cwc2/map/chameleon.map).
Fatal error: Call to a member function on a non-object in
/opt/cwc2/htdocs/widgets/KeyMap.widget.php on line 190
Any suggestions?
Jeff Berry
GIS Analyst
Erlandsen & Associates
P.O. Box 2029
Chelan, WA 98816
(509) 682-4189
jeffb@erlandsen.com
_______________________________________________
Chameleon mailing list
Chameleon@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
_______________________________________________
Chameleon mailing list
Chameleon@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
_______________________________________________
Chameleon mailing list
Chameleon@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |