Hi, <div><br></div><div>trying to get a basic app working in geomoose using our own data and I am getting a blank map area. I have set up a simple map file in the standard ms4w maps folder in a folder called ArcView, I have put my map file in to that folder and have tested it using a browser and can see a map and am able to download an xml document when I do a get capabilities request.</div>
<div>The map file is as follows:</div><div><br></div><div>============== MAP FILE =======================</div><div><br></div><div>MAP<br> NAME "TESTMAP"<br> # Map image size<br> SIZE 800 800<br> UNITS INCHES<br>
<br> EXTENT -990487.465830 -31957.211592 1696934.624449 1261986.757801<br> FONTSET "../fonts/fontset.list"<br> SYMBOLSET "../symbols/symbol.sym"<br> PROJECTION <br> 'init=epsg:4326'<br>
'proj=longlat'<br> 'ellps=WGS84'<br> 'datum=WGS84'<br> 'no_defs'<br> END<br><br><br> IMAGECOLOR 255 255 255<br> IMAGEQUALITY 95<br> IMAGETYPE jpeg<br><br> OUTPUTFORMAT<br>
NAME jpeg<br> DRIVER 'GD/JPEG'<br> MIMETYPE 'image/jpeg'<br> IMAGEMODE RGBA<br> EXTENSION 'jpeg'<br> END<br><br> LEGEND<br> IMAGECOLOR 255 255 255<br> STATUS ON<br> KEYSIZE 18 12<br>
LABEL<br> TYPE BITMAP<br> SIZE MEDIUM<br> COLOR 0 0 89<br> END<br> END<br><br> WEB<br> IMAGEPATH '/tmp/'<br><br> IMAGEURL '/tmp/'<br><br> METADATA<br> 'ows_title' 'TESTMAP'<br>
'ows_onlineresource' '<a href="http://www">http://www</a>.<i>ourserver</i>.com:2112/cgi-bin/mapserv.exe?map=testshp.map'<br> 'ows_srs' 'EPSG:4326'<br><br> END<br>
<br> TEMPLATE 'foo'<br> END<br><br> LAYER<br> NAME 'RECTANGLES'<br> TYPE POLYGON<br> DUMP true<br> TEMPLATE fooOnlyForWMSGetFeatureInfo<br> EXTENT -990487.465830 -31957.211592 1696934.624449 1261986.757801<br>
DATA 'D:/ms4w/apps/geomoose2/maps/ArcView/seamless_rectangle.shp'<br> METADATA<br> 'ows_title' 'rectangles'<br> 'ows_srs' 'EPSG:4326'<br><br> END<br> STATUS OFF<br>
TRANSPARENCY 100<br> PROJECTION<br> 'init=epsg:4326'<br> 'proj=longlat'<br> 'ellps=WGS84'<br> 'datum=WGS84'<br> 'no_defs'<br> END<br> CLASS<br> NAME 'seamless_rectangle' <br>
STYLE<br> WIDTH 1 <br> OUTLINECOLOR 0 0 0<br> COLOR 149 170 154<br> END<br> END<br> END<br><br>END<br><br>=============== END OF MAP FILE=================<br><br><br>The map book .xml is as follows, just a commented out version of the original one:<br>
<br><br>============== MAPBOOK.XML ===================<br><?xml version="1.0"?><br><mapbook version="2.0"><br> <configuration><br> <!--<br> <param name="links_bar_html"><![CDATA[Perfect timing for some damn CDATA "all" of 'its' here <&>]]></param><br>
<param name="layer_controls.unfade.on">false</param><br> --><br> <!-- <param name="zoomto['Jump To:']"><![CDATA[<br> {<br> 'Dakota County' : [521238.614537864,4924218.86673578,473921.947801381,4974430.36885032],<br>
'Parcel Data' : [497205.409367,4923984.423582,477595.805945,4941970.52988],<br> 'Full State of MN' : [189783.560000,4816309.330000,761653.524114,5472346.500000]<br> }<br> ]]></param> --><br>
<param name="max_extent">-1053325.991731,-63036.027500,1763261.991731,1293098.927500</param><br> <param name="initial_extent">-990487.465830,-31957.211592,1696934.624449,1261986.757801</param><br>
<br> <param name="layer_controls.legend.on">false</param><br> <param name="mapserver_url">/cgi-bin/mapserv.exe</param><br> <param name="mapfile_root">/ms4w/apps/geomoose2/maps/</param><br>
<br> <param name="projection">EPSG:4326</param><br><br> <param name="layer_controls.up.on">false</param><br> <param name="layer_controls.down.on">false</param> <br>
<param name="layer_controls.legend.on">true</param> <br><br> <param name="drawing_tools.default_fill">red</param><br> <param name="drawing_tools.default_stroke">yellow</param><br>
<param name="drawing_tools.default_opacity">1</param><br><br> <param name="group_checkboxes">false</param><br><br> <param name="default_tab">Catalog</param><br>
<param name="catalog_name">Catalog</param><br> <param name="show_service_settings_in">Information</param><br> <param name="show_results_in">Information</param><br>
<br> <param name="tabs"><![CDATA[<br> {<br> 'Catalog' : 'catalog-tab',<br> 'Information' : 'information-tab',<br> 'Custom' : 'custom-tab'<br>
}<br> ]]></param><br> <br> <param name="ground_units">km</param><br> <param name="scales">.5,1,4,8,16,24,32,64,128,270,550,1000</param><br>
<param name="reference_map.enabled">false</param><br> <param name="coordinate_display.usng">false</param><br> <param name="jumpto_scales"><![CDATA[<br>
{<br> '1:50000' : 50000,<br> '1:24000' : 24000,<br> '1:10000' : 10000,<br> '1:5000' : 5000<br> }<br> ]]></param> <br>
<br> </configuration><br> <!--<br> The mapping services define the source of the mapping data.<br> --><br><br> <map-source name="highlight" type="mapserver"><br> <file/><br>
<layer name="all"/><br> </map-source><br><br> <map-source name="TESTMAP" type="mapserver"><br> <file>./ArcView/testshp.map</file><br> <layer name="rectangles"/><br>
</map-source><br><br> <!-- <map-source name="borders" type="mapserver" reference="true"><br> <file>./demo/statedata/basemap.map</file><br> <layer name="all"/><br>
</map-source><br><br> <map-source name="iastate" type="wms" tiled="false" projection="EPSG:900913" width="512" height="512"><br> <url><a href="http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi">http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi</a></url><br>
<layer name="nexrad-n0r"/><br> <param name="format" value="image/jpeg"/><br> <param name="TRANSPARENT" value="TRUE"/><br> </map-source><br>
<br> <map-source name="metbase" type="ags" ><br> <url><a href="http://gis.metc.state.mn.us/ArcGIS/rest/services/BaseLayer/UTMBaseMap/MapServer/export">http://gis.metc.state.mn.us/ArcGIS/rest/services/BaseLayer/UTMBaseMap/MapServer/export</a></url><br>
<layer name="Met Council Base Map Layers" /><br> <param name="FORMAT" value="JPG"/><br> </map-source><br><br> <map-source name="lmic" type="wms" tiled="false"><br>
<url><a href="http://geoint.lmic.state.mn.us/cgi-bin/wms">http://geoint.lmic.state.mn.us/cgi-bin/wms</a></url><br> <layer name="fsa2008"/><br> <layer name="bw1997"/><br>
</map-source><br><br> <map-source name="usgs_doq" type="wms" tiled="false" projection='EPSG:26915'><br> <url><a href="http://terraservice.net/ogcmap.ashx">http://terraservice.net/ogcmap.ashx</a>?</url><br>
<layer name="DOQ"/><br> <param name="format" value="image/jpeg"/><br> <param name="TRANSPARENT" value="TRUE"/><br> </map-source> <br>
<br> <map-source name="usgs_drg" type="wms" tiled="false" projection='EPSG:26915'><br> <url><a href="http://terraservice.net/ogcmap.ashx">http://terraservice.net/ogcmap.ashx</a>?</url><br>
<layer name="DRG"/><br> <param name="format" value="image/jpeg"/><br> <param name="TRANSPARENT" value="TRUE"/><br> </map-source> <br>
<br> <map-source name="reference" type="wms" tiled="false" reference="true"><br> <url><a href="http://geoint.lmic.state.mn.us/cgi-bin/wms">http://geoint.lmic.state.mn.us/cgi-bin/wms</a></url><br>
<layer name="fsa2008" reference="true" /><br> </map-source> --><br><br> <service name="print" title="Print Map"><br> <step type="input"><br>
<url>php/print.php</url><br> <input type="print_info" name="layers"/><br> <input type="extent" name="extent"/><br> <input type="sketches" name="sketches"/><br>
<br> <input type="user" name="title" title="Map Title">Map</input><br> <input type="hidden" name="date" title="Map Date">true</input><br>
<br> <input type="select" name="template" title="Output Template: "><br> <option value="letter_landscape">Letter - Landscape</option><br>
<option value="letter_portrait">Letter - Portrait</option><br> <option value="poster_landscape">11" x 17" - Landscape</option><br> <option value="poster_portrait">11" x 17" - Portrait</option><br>
</input><br><br> <input type="select" name="quality" title="Image Quality: "><br> <option value="2">Higher</option><br>
<option value="3">Highest</option><br> <option value="1">Standard</option><br> </input><br><br> <input type="select" name="scale" title="Preserve Scale: "><br>
<option value="preserve">Yes</option><br> <option value="no">No</option><br> </input><br> </step><br> </service><br>
<br> <service name="identify" title="Identify" display="false"><br> <url>php/identify.php</url><br> <step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point"><br>
<input type="visiblelayers" name="layers"/><br> </step><br> </service><br><br> <service name="birdseye" display="false" target="_blank"><br>
<url>php/birdseye.php</url><br> <step type="spatial" name="xy" line="false" polygon="false" jump-start="true" default="point" format="delim" reproject="EPSG:4326"><br>
</step><br> </service><br><br> <service name="streetview" display="false" target="_blank"><br> <url>php/streetview.php</url><br> <step type="spatial" name="xy" line="false" polygon="false" jump-start="true" default="point" format="delim" reproject="EPSG:4326"><br>
</step><br> </service><br><br> <service name="feature_report" display="false"><br> <url>php/feature_report.php</url><br> <input type="hidden" name="layers" value="lmic/fsa"/><br>
<input type="hidden" name="src"/><br> <input type="hidden" name="PIN"/><br> </service><br><br> <service name="select" title="Select"><br>
<url>php/select.php</url><br><br> <!-- Send a selection shape + the visible layers list to the service --><br> <step type="spatial" showTools="true" name="shape" line="true" polygon="true" point="true" default="polygon" edit-polygon="false" pan="false" jump-start="true"><br>
<br> <header><![CDATA[Create a selection area by clicking on the map.]]></header><br><br> <input type="visiblelayers" name="layers"/><br><br> <!-- <br>
Option values should be the mapbook path to the layer.<br> This only supports 'mapserver'-type layers.<br> --><br> <input type="select" name="select_layer" title="Select:"><br>
<option value="parcels/parcels">Parcels</option><br> </input><br> <br> <!--<br> <input type="user" name="shape_buffer" title="Buffer Selection Shape (ft)">0</input><br>
<br> <input type="select" name="query_layer" title="Using Features In"><br><br> <option value="parcels/parcels">Parcels</option><br>
</input><br> --><br> <input type="user" name="shape_buffer" title="Buffer Selection Shape (ft)">0</input><br><br> <footnote><![CDATA[<br>
]]></footnote><br> </step><br> </service><br><br> <!-- this is called after a standard select in order to buffer the previous selection --><br> <service name="buffered_select_followup" title="Buffered Select"><br>
<url>php/select.php</url><br> <step type="input"><br> <input type="hidden" name="shape"/><br> <input type="hidden" name="select_layer"/><br>
<input type="hidden" name="query_layer"/><br> <input type="hidden" name="shape_buffer"/><br> <input type="user" name="selection_buffer" title="Buffer Features By: "/><br>
</step><br> </service><br><br> <service name="buffered_select" title="Buffered Select"><br> <url>php/select.php</url><br><br> <!-- Send a selection shape + the visible layers list to the service --><br>
<step type="spatial" showTools="true" name="shape" line="true" polygon="true" point="true" default="polygon" edit-polygon="false" pan="false"><br>
<br> <header><![CDATA[Create a selection area by clicking on the map.]]></header><br><br> <input type="visiblelayers" name="layers"/><br><br> <!-- <br>
Option values should be the mapbook path to the layer.<br> This only supports 'mapserver'-type layers.<br> --><br> <input type="select" name="select_layer" title="Select features from:"><br>
<option value="parcels/parcels">Parcels</option><br> </input><br> <br> <input type="user" name="selection_buffer" title="Buffer Selected Features (ft)">0</input><br>
<br><!-- <input type="user" name="shape_buffer" title="Buffer Selection Shape (ft)">0</input><br>--> <br> <input type="select" name="query_layer" title="Using Features In"><br>
<br> <option value="parcels/parcels">Parcels</option><br> </input><br><br> <footnote><![CDATA[<br> ]]></footnote><br> </step><br>
</service><br><br> <service name="popups" display="false"><br> <url>php/popups.php</url><br> <step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point"><br>
<header><![CDATA[<br> Click on the map to show a popup about the features.<br> ]]></header><br> <input type="hidden" name="layer"/><br>
</step><br> </service><br><br> <service name="geocode_address" title="Geocode Address"><br> <url>php/geocode.php</url><br> <step type="input"><br>
<input type="user" name="address" title="Enter Address: "/><br> <input type="hidden" name="googlekey" value="ABQIAAAA4Q-VLyIpwp3L8M9DIzKb2BT2yXp_ZAY8_ufC3CFXhHIE1NvwkxRe8Hd6FR51Hvb-Fvd-wGjiDZDC4w"/><br>
</step><br> </service><br><br> <service name="search_parcels"><br> <url>php/query.php</url><br> <step type="input"><br> <input type="hidden" name="highlight" value="true"/><br>
<input type="hidden" name="mode" value="search"/><br><br> <input type="hidden" name="layer0" value="parcels/parcels"/><br> <input type="hidden" name="template0" value="itemquery"/><br>
<br> <input type="select" name="fieldname0" title="Search By:"><br> <option value="OWNER_NAME">Owner</option><br> <option value="PIN">Parcel ID</option><br>
</input><br> <input type="select" name="comparitor0" title="That: "><br> <option value="like-icase">Contains</option><br>
<option value="right-like-icase">Begins With</option><br> <option value="eq-str">Matches Exactly</option><br> </input><br> <input type="user" name="value0" title=""/><br>
<br> <input type="hidden" name="fieldname1" value="FIN_SQ_FT"/><br> <input type="select" name="operator1"><br> <option value="or">OR</option><br>
<option value="and">AND</option><br> </input><br> <input type="select" name="comparitor1" title="Having Fin. Sq. Ft. "><br>
<option value="gt">Greater Than</option><br> <option value="eq">Equal To</option><br> <option value="lt">Less Than</option><br>
</input><br> <input type="user" name="value1" title=""/><br> </step><br> </service><br><br> <!-- <br> The catalog defines how the layers will be displayed in the catalog tab.<br>
--><br> <layer-controls><br> <layer-control name="popups" service-name="popups" layer-input="layer" on="false" tip="Show Popups for %LAYER%"/> <br>
</layer-controls><br> <catalog><br><br> <!-- <layer title="overallmap" src="parcels/parcels" status="on" popups="true" minscale="0" maxscale="150000" metadata="true" ><br>
<metadata><a href="http://www.aqua3.com">http://www.aqua3.com</a></metadata><br> </layer><br> <layer title="City and County Boundaries" src="borders/all" status="on"/><br>
<br> <layer title="Weather Radar" src="iastate/nexrad-n0r" status="off" legend="false"/><br><br> <group title="Backgrounds" expand="true" multiple="false"><br>
<layer title="Metro Base Map" src="metbase/Met Council Base Map Layers" status="on" legend="false" /><br> <layer title="2008 Aerial Photographs" src="lmic/fsa2008" status="off" legend="false" /><br>
<layer title="1997 Aerial Photographs" src="lmic/bw1997" status="off" legend="false" /><br> <layer title="USGS DOQs" src="usgs_doq/DOQ" status="off" fade="true" unfade="true" legend="false" /><br>
<layer title="USGS Topo Quads" src="usgs_drg/DRG" status="off" fade="true" unfade="true" legend="false" /><br> <layer title="None" src=" " status="off" legend="false" fade="false" unfade="false" /><br>
<br> </group> --><br> </catalog><br><br> <!--<br> The toolbar defines which services are referneces in the toolbar<br> --><br> <toolbar><br> <tool name="previous" title="Previous Extent" type="internal" action="previous" selectable="false"/><br>
<tool name="next" title="Next Extent" type="internal" action="next" selectable="false"/><br> <tool name="fullextent" title="Zoom to Full Extent" type="internal" action="fullextent" selectable="false"/><br>
<tool name="pan" title="Pan" type="internal" action="pan"/><br> <tool name="zoomin" title="Zoom In" type="internal" action="zoomin" selected="true"/><br>
<tool name="zoomout" title="Zoom Out" type="internal" action="zoomout"/><br> <!-- <tool name="identify" title="Identify" type="service" service="identify" cursor="url('cursors/identify2.cur') 9 9,url('cursors/identify2.cur'),auto" /> --><br>
<!-- <tool name="select" title="Select" type="service" service="select"/> --><br> <!-- <tool name="buffered_select" title="Buffered Select" type="service" service="buffered_select"/> --><br>
<!-- <tool name="clear" title="Clear Selection" type="javascript" selectable="false"><br> GeoMOOSE.changeLayerVisibility('highlight/all', false);<br>
</tool> --><br> <tool name="measure" title="Measure" type="internal" action="measure"/><br> <tool name="measurearea" title="Measure Area" type="internal" action="measurearea"/><br>
<!-- <tool name="search_parcels" title="Search Parcels" type="service" service="search_parcels" selectable="false"/> --><br> <!-- <tool name="print" title="Print" type="service" service="print" selectable="false"/> --><br>
<!-- <tool name="birdseye" title="Bird's Eye View" type="service" selectable="true" service="birdseye"/> --><br> <!-- <tool name="streetview" title="Google Street View" type="service" service="streetview" selectable="true"/> --><br>
<!-- <tool name="geocode" title="Geocode Address" type="service" service="geocode_address" selectable="true"/> --> <br> <!-- <drawer><br>
<tool name="markup_tools" title="Sketch Tools" type="internal" action="none" selectable="false"/><br> <tool name="draw_polygon" title="Draw Polygon" type="internal" action="draw_polygon"/><br>
<tool name="draw_line" title="Draw Line" type="internal" action="draw_line"/><br> <tool name="draw_point" title="Draw Point" type="internal" action="draw_point"/><br>
<tool name="draw_remove" title="Remove Drawing" type="internal" action="draw_remove"/><br> <tool name="draw_edit" title="Edit Drawing" type="internal" action="draw_edit_shapes"/><br>
<tool name="draw_edit_attributes" title="Edit Attributes" type="internal" action="draw_edit_attributes"/><br> <tool name="clear_drawings" title="Clear Drawings" type="internal" action="clear_drawings" selectable="false"/><br>
</drawer> --><br> </toolbar><br></mapbook><br><br>============= END OF MAPBOOK.XML =============<br><br>I have tried getting some error reporting out of firebug with little success, if anyone can help me spot what I have done wrong it would be much appreciated and I would be happy to supply the real url's to the server off-list.<br>
<br>Cheers<br><br>Carl<br></div>