[Chameleon] how_to_create_own_application

Buchholz, Robert Robert.Buchholz at LUA.Brandenburg.de
Thu Apr 19 06:37:52 EDT 2007


Dear list,

trying and trying...nothing (few) works properly.
I need some guidiance.. Pls help.
My problem:
I want to use the sample enhanced example and like to add my own polygon data (.shp), which are in an other projection (EPSG 25833 or ETRS 89 Zone 33).

So what to do:
1.
-building an own application (create folders data, etc, htdocs, map)
-paste all files from ...samples/data to new folder data
-paste all files from ...samples/etc to new folder etc
-paste index.html, legend_template.html,sample_enhanced.phtml, sample_enhanced.html, chameleon.php files from ...samples/htdocs to new folder htdocs
-paste chameloen.map from ...samples/map to new folder map
2.
-add my .shp, .shx, .dbf, .sbx, .sbn files to the new folder data
3.
-modify sample_enhanced.phtml file as
      line 9 	include(C:\ms4w\apps\my_application\htdocs\chameleon.php
	line 12	$szTemplate = "./my_application/sample_enhanced.html";
	line 13	$szMapFile ="../my_application/map/chameleon.map";
4.
-modify sample_enhanced.html file as:
	<cwc2 type="sharedresource" name="projection">	
		<projection name="??? / ???" srs="egsg:25833"/>

5.
-modify chameleon.map file as:
	just before the END #Map File
		LAYER
			GROUP	"Polygon"
			NAME xyz
						Do i need Metadata on localhost???
			TYPE POLYGON
			STATUS ON
			DATA name of shp file
			CLASSITEM the row from the .dbf file for display and classification
			CLASS 
				NAME " something from the table "
				EXPRESSION /./
				TEMPLATE "ttt"
			END
			PROJECTION
				"init=epsg:25833"

Anything else? 
I would be very happy if anyone can give me that starting point.
Thanks in advance,
Robert		

		

-----------------------------------------
Robert Buchholz
Sachbearbeiter Referat S 7 (Trainee)
Landesumweltamt Brandenburg
14476 Potsdam OT Groß Glienicke
E-Mail: Robert.Buchholz at LUA.Brandenburg.de
----------------------------------------- 




More information about the Chameleon mailing list