[Geomoose-users] Layers still not populating

Brent Fraser bfraser at geoanalytic.com
Fri Jun 26 10:43:07 EDT 2009


>From the map file below you give below, I assume your data is in UTM-15 (since there is no PROJECTION object in the LAYER) so mapserver should render it ok.  You need to ensure the following is set:

1. In your <site>_configuration.js:

    var INITIAL_VIEW = '1311606.064490,3765485.899332,1475727.003496,3868927.480976';

    var VIEWS = {
	'Jump To:' : {
		'Initial View' : '1311606.064490,3765485.899332,1475727.003496,3868927.480976'
	}
    };

    var MAP_COORDINATE_SYSTEM = 'UTM-15'; 

2. And possibly in your .xml

	<service title="Full Extent" type="internal" invisible="false" default="true" locked="true" command="zoomToInitialView()" icon="shared/images/toolbar/zoom_full.jpg" highlight="shared/images/toolbar/zoom_full_selected.jpg" selectable="false"/>


One thing you could try is running the mapserver command line program "shp2img" (it's in \ms4w\Apache\cgi-bin):

shp2img - all_debug 5 -m mymapfile.map -o test.png

and have a look at the messages it spits out (and the image it produces).

Best Regards,
Brent Fraser


awhitley at charter.net wrote:
> Still looking for some insight; I am certain the coordinates on the shapefile are in 
> NA83 UTM Zone 15 N - epsg 26915.
> 
> I even brought the data in Quantum GIS and produced a mapfile from the Mapserver Export plugin just to see what extent it was showing my data in. 
> 
> My test data (ga_firestations2.shp) is residing in the countydata folder along with the mapfile.
> 
> I verified the configuration.js (countyconfiguration.js) and the extent is set to the same as mapfile.
> 
> Mapfile: 
> MAP
> 	NAME 'firestations'
> 	SIZE 800 650
> 	STATUS ON
> 	EXTENT  1311606.064490 3765485.899332 1475727.003496 3868927.480976
>       PROJECTION "init=epsg:26915"
> 	UNITS METERS
> 	FONTSET '../fonts/fontset.list'
> 	SYMBOLSET '../symbols/symbol.sym'
> 	TRANSPARENT TRUE
> 	IMAGETYPE PNG
> 
> 	QUERYMAP
> 		STATUS ON
> 		STYLE SELECTED
> 	END
> 
> 	WEB
>             QUERYFORMAT "text/xml"
> 		INCLUDE "../temp_directory.map"
> 	END
> 	
> 	LEGEND
> 		STATUS ON
> 	END
> 
> 	LAYER
> 		NAME 'Firestations'
> 		DATA './ga_firestations2.shp'
>             STATUS DEFAULT
> 		TYPE POINT
> 		STATUS DEFAULT
>             LABELITEM 'NAME'
>             LABELMAXSCALE 20000
> 		CLASS
> 		  NAME 'Firestations'
> 		  COLOR 255 0 0 
> 		  SYMBOL "square"
>       SIZE 12
> 	  END
>         HEADER 'imagemap_header.xml'
> 	  TEMPLATE 'imagemap_record.xml'
> 	  FOOTER 'imagemap_footer.xml'
>       END
> 
> END ## end Map
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
> 




More information about the Geomoose-users mailing list