[Geomoose-users] R: RE: Geomoose 2.0 first trial, UTM33 maps

g.stanca at tiscali.it g.stanca at tiscali.it
Wed Sep 16 09:46:41 EDT 2009


Yes, of course, and thanks in advance for your help
Giuseppe



_________________________________
begin mapbook demo3 

_________________________________
<?xml version="1.0"?>
<mapbook 
version="2.0">
	<configuration>
		<!-- MS4W Settings -->
		<param name="
mapserver_url">/cgi-bin/mapserv.exe</param>
		<param name="mapfile_root"
>/ms4w/apps/geomoose2/maps</param>		
		
		<!-- Linux settings 
		<param 
name="mapserver_url">/mapserver/cgi-bin/mapserv</param>
	      <param 
name="mapfile_root">/opt/geomoose/geomoose/moose2-trunk/maps/</param>
		
-->
		<param name="projection">EPSG:32633</param>
		<param name="zoomto
['Jump To:']"><![CDATA[
		{
			'Italia' : [-1036058.791421 
3861358.479159 1677393.009512 5288053.891473],
			'Centro' : 
[497205.409367,4923984.423582,477595.805945,4941970.52988],
			'Sud e 
Isole' : [189783.560000,4816309.330000,761653.524114,5472346.500000]
		
}
		]]></param>
		<param name="max_extent">-1036058.791421 
3861358.479159 1677393.009512 5288053.891473</param>
		<param name="
initial_extent">-1036058.791421 3861358.479159 1677393.009512 
5288053.891473</param>
		<param name="layer_controls.up.on"
>false</param>
		<param name="layer_controls.down.on">false</param>		
		
<param name="layer_controls.legend.on">false</param>	
		
		<param name="
ground_units">m</param>
		<param name="scales">.
5,1,4,8,16,24,32,64,128,270,550,1000,5000,10000,50000</param>
		<param 
name="reference_map.enabled">true</param>
		<param name="
coordinate_display.usng">true</param>
		<param name="jumpto_scales"><!
[CDATA[
		{
			'1:1000000' : 1000000,
			'1:500000' : 500000,
			'1:
100000' : 100000,
			'1:50000' : 50000,
			'1:24000' : 24000,
			'1:
10000' : 10000,
			'1:5000' : 5000
		}
		]]></param>		
	
</configuration>
	<!--
		The mapping services define the source of the 
mapping data.
	-->

	<map-source name="highlight" type="mapserver">
		
<file></file>
		<layer name="all"/>
	</map-source>


	<map-source name="
basemap" type="mapserver" reference="true">
		<file>.
/demo/statedata/basemap.map</file>
		<layer name="county_borders"/>
		
<layer name="county_labels"/>
		<layer name="city_poly"/>
		<layer 
name="city_labels"/>
		<layer name="USGSGagingStations"/>
	</map-
source>

	<map-source name="Italia--base" type="mapserver" reference="
true">
		<file>./demo/PTCA/italia_base.map</file>
		<layer name="Italia"
/>
		<layer name="Regioni"/>
		<layer name="Province"/>
		<layer name="
Comuni"/>
		<layer name="Strade principali"/>
		<layer name="FFSS"/>
	
</map-source>
	
	<map-source name="states" type="mapserver" reference="
true">
		<file>./demo/statedata/statesUTM15N.map</file>
		<layer name="
all"/>
	</map-source>

	<map-source name="feedlots" type="mapserver">
		
  <file>./demo/countydata/feedlots.map</file>
		  <layer name="all"/>
	
</map-source>
  
	<map-source name="metro" type="wms">
		<url>http:
//www.datafinder.org:80/wmsconnector/com.esri.wms.
Esrimap/MN_MetroGIS_DataFinder_WMS_Water_Resources</url>
		<layer name="
stream_net_l"/>
		<param name="TRANSPARENT" value="TRUE"/>
		<param 
name="FORMAT" value="image/png"/>
	</map-source>

	<map-source name="
weather" type="wms">
		<url>http://mesonet.agron.iastate.edu/cgi-
bin/wms/nexrad/n0r.cgi</url>
		<layer name="nexrad-n0r"/>
		<param 
name="TRANSPARENT" value="TRUE"/>
		<param name="FORMAT" value="
image/png"/>
	</map-source>

	<map-source name="water" type="mapserver"
>
		<file>./demo/wfs/hydro_wfs.map</file>
		<layer name="all"/>
	</map-
source>

	<map-source name="pipelines" type="mapserver">
		<file>.
/demo/countydata/pipelines.map</file>
		<layer name="all"/>
	</map-
source>

	<map-source name="fire" type="wms" queryable="true">
		
<url>/cgi-bin/mapserv.exe?</url>
		<param name="map" value="
/ms4w/apps/geomoose2/maps_demo/demo/countydata/firestations.map"/>
		
<layer name="firestations"/>
		<param name="TRANSPARENT" value="TRUE"/>

		<param name="FORMAT" value="image/png"/>
	</map-source>

	<map-source 
name="parcels" type="mapserver">
		<file>./demo/landrecords/parcels.
map</file>
		<layer name="all"/>
	</map-source>

	<map-source 
name='nasa' type='wms' tiled='true' projection='EPSG:4326' width='512' 
height='512'>
		<url>http://onearth.jpl.nasa.gov/wms.cgi</url>
		<layer 
name="global_mosaic"/>
		<param name="format" value="image/jpeg"/>
	
</map-source>

	<map-source name='nasa2' type='wms' tiled='false' 
projection='EPSG:4326' width='512' height='512'>
		<url>http://onearth.
jpl.nasa.gov/wms.cgi</url>
		<layer name="global_mosaic"/>
		<param 
name="format" value="image/jpeg"/>
	</map-source>



	<map-source name="
lmic" type="wms" tiled="false" reference="true">
		<url>http://geoint.
lmic.state.mn.us/cgi-bin/wms</url>
			<layer name="fsa2008"/>
			<layer 
name="cir2008"/>
			<layer name="fsa"/>
			<layer name="metro"/>
			
<layer name="doq"/>
	</map-source>

	<!-- WMS Layers call the server 
and get images -->
	<map-source name="lmic_wmsz" type="wms" tiled="true"
>
		<url>http://geoint.lmic.state.mn.us/cgi-bin/wmsz</url>
		<layer 
name="drg24"/>
		<param name="format" value="image/png"/>
	</map-
source>
	
	<service name="print" title="Print Map">
		<url>php/print.
php</url>
		<input type="print_info" name="layers"/>
		<input type="
extent" name="extent"/>
		<input type="sketches" name="sketches"/>

		
<input type="user" name="title" title="Map Title">Map</input>

		<input 
type="select" name="template" title="Output Template: ">
			<option 
value="letter_landscape">Letter - Landscape</option>
			<option value="
letter_portrait">Letter - Portrait</option>
			<option value="
poster_landscape">Poster - Landscape</option>
			<option value="
poster_portrait">Poster - Portrait</option>
		</input>

		<input type="
select" name="quality" title="Image Quality: ">
			<option value="1"
>Standard</option>
			<option value="2">Higher</option>
			<option 
value="3">Highest</option>
		</input>

		<input type="select" name="
scale" title="Preserve Scale: ">
			<option value="no">No</option>
			
<option value="preserve">Yes</option>
		</input>
	</service>

	<service 
name="identify" title="Identify" display="false">
		<url>php/identify.
php</url>
		<step type="spatial" name="shape" line="false" polygon="
false" jump-start="true" default="point">
			<input type="
visiblelayers" name="layers"/>
		</step>
	</service>

	<service name="
birdseye" display="false" target="_blank">
		<url>birdseye/birdseye.
html</url>
		<step type="spatial" name="xy" line="false" polygon="
false" jump-start="true" default="point" format='delim' reproject="EPSG:
4326">
		</step>
	</service>


	<service name="feature_report" display="
false">
		<url>php/feature_report</url>
		<input type="hidden" name="
src"/>
		<input type="hidden" name="PIN"/>
	</service>

	<service name="
select" title="Select">
		<url>php/select.php</url>

		<!-- Send a 
selection shape + the visible layers list to the service -->
		<step 
type="spatial" name="shape" line="false" polygon="true" point="false" 
default="polygon" edit-polygon="true">

			<header><![CDATA[
			<br/>
		
	Use the mouse to click the vertecies of your selection area.<br/><br/>

			]]></header>

			<input type="visiblelayers" name="layers"/>

			<!
-- 
				Option values should be the mapbook path to the layer.
				This 
only supports 'mapserver'-type layers.
			-->
			<input type="hidden" 
name="select_layer" value="parcels/all"/>

			<input type="user" name="
shape_buffer" title="Buffer Selection Shape (ft):">0</input>

			<input 
type="select" name="query_layer" title="Using Features In:">

				
<option value="parcels/all">Parcels</option>
				<option value="
pipelines/pipe_lines">Pipelines</option>
			</input>
			<input type="
user" name="selection_buffer" title="Buffer Selected Features (ft):"
>0</input>

			<footnote><![CDATA[
			]]></footnote>
		</step>
	
</service>



	<service name="popups" display="false">
		
<url>php/popups.php</url>
		<step type="spatial" name="shape" line="
false" polygon="false" jump-start="true" default="point">
			<header><!
[CDATA[
			Click on the map to show a popup about the features.
			]]
></header>
			<input type="hidden" name="layer"/>
		</step>
	</service>




	<service name="search_parcels">
		<url>php/itemquery.php</url>
		
<step type="input">
			<input type="select" name="qitem" title="Search 
By:">
				<option value="OWNER_NAME">Owner</option>
				<option value="
PID">Parcel ID</option>
			</input>
			<input type="user" name="
qstring" title=""/>
			<input type="hidden" name="layer" value="
parcels/all"/>
			<input type="hidden" name="zoom_to_first" value="
false"/>
			<input type="hidden" name="highlight" value="true"/>
		
</step>
	</service>


	<!-- 
		The catalog defines how the layers will 
be displayed in the catalog tab.
	-->
	<layer-controls>
		<layer-
control name="popups" service-name="popups" layer-input="layer" on="
false" tip="Show Popups for %LAYER%"/> 
	</layer-controls>
	<catalog>



		<group title="County Layers" expand="true">
			<layer title="
Feedlots" src="feedlots/all" legend="true"/>
			<layer title="
Pipelines" src="pipelines/all" legend="true" popups="true"/>
			<layer 
title="Fire Stations" src="fire/firestations" legend="true"/>
			<layer 
title="Parcels" src="parcels/all" status="on" popups="true" legend="
true" show-legend="true"/>			
			<layer title="Minneapolis Area Water" 
src="metro/stream_net_l"/>
			<layer title="Minneapolis Area 
Watersheds" src="water/all"/>
			
		</group>
		
		<group title="Basemap 
Layers" expand="true">
			<layer title="Nexrad Radar" src="
weather/nexrad-n0r" tip="Weather Radar"/>
			<layer title="USGS Gaging 
Stations" src="basemap/USGSGagingStation" status="on" legend="true"/>
		
	<layer title="MN Cities &amp; Labels" src="basemap/city_poly:
basemap/city_labels" status="on" tip="This layer is visible at 1:
1,000,000 scale." maxscale="1000000" minscale="500" legend="true"/>
			
<layer title="MN County &amp; Labels" src="basemap/county_borders:
basemap/county_labels" status="on" legend="true"/>
			<layer title="
State Boundaries" src="states/all" status="on" legend="true"/>
			
<layer title="Italia" src="Italia--base/Italia" status="on"/>
			<layer 
title="Regioni" src="Italia--base/Regioni" status="on"/>
			<layer 
title="Province" src="Italia--base/Province" status="on"/>
			<layer 
title="Comuni" src="Italia--base/Comuni" status="on"/>
			<layer title="
Strade principali" src="Italia--base/Strade principali" status="on"/>
		
	<layer title="FFSS" src="Italia--base/FFSS" status="on"/>			
		
</group>

		<group title="Backgrounds" expand="true" multiple="false">
	
		<layer title="MN USGS Quads" src="lmic_wmsz/drg24"/>
			<layer title="
Minneapolis Aerials" src="lmic/metro" status="off"/>			
			<layer 
title="MN 2008 Aerials" src="lmic/fsa2008" status="on"/>
			<layer 
title="MN 2008 CIR Aerials" src="lmic/cir2008" status="off"/>			
			
<layer title="MN 2003 Aerials" src="lmic/fsa" status="off"/>
			<layer 
title="MN USGS DOQ" src="lmic/doq" status="off"/>			
			<layer title="
NASA Blue Marble" src="nasa/global_mosaic" status="off"/>
			<layer 
title="NASA Blue Marble" src="nasa2/global_mosaic" status="off"/>
		
</group>
	
	</catalog>

	<!--
		The toolbar defines which services are 
referneces in the toolbar
	-->
	<toolbar>
		<tool name="previous" 
title="Previous Extent" type="internal" action="previous" selectable="
false"/>
		<tool name="next" title="Next Extent" type="internal" 
action="next" selectable="false"/>
		<tool name="fullextent" title="
Zoom to Full Extent" type="internal" action="fullextent" selectable="
false"/>
		<tool name="pan" title="Pan" type="internal" action="pan"/>
	
	<tool name="zoomin" title="Zoom In" type="internal" action="zoomin" 
selected="true"/>
		<tool name="zoomout" title="Zoom Out" type="
internal" action="zoomout"/>
		<tool name="identify" title="Identify" 
type="service" service="identify"/>
		<tool name="birdseye" title="
Birdseye" type="service" service="birdseye"/> 
		<tool name="select" 
title="Select" type="service" service="select"/>
		<tool name="measure" 
title="Measure" type="internal" action="measure"/>
		<tool name="
measurearea" title="Measure Area" type="internal" action="measurearea"
/>
		<tool name="search_parcels" title="Search Parcels" type="service" 
service="search_parcels" selectable="false"/>

		<drawer>
			<tool 
name="draw_polygon" title="Draw Polygon" type="internal" action="
draw_polygon"/>
			<tool name="draw_line" title="Draw Line" type="
internal" action="draw_line"/>
			<tool name="draw_point" title="Draw 
Point" type="internal" action="draw_point"/>
			<tool name="
draw_remove" title="Remove Drawing" type="internal" action="draw_remove"
/>
			<tool name="draw_edit" title="Edit Drawing" type="internal" 
action="draw_edit_shapes"/>
			<tool name="draw_edit_attributes" title="
Edit Attributes" type="internal" action="draw_edit_attributes"/>
			
<tool name="clear_drawings" title="Clear Drawings" type="internal" 
action="clear_drawings" selectable="false"/>
		</drawer>
		<tool name="
print" title="Print" type="service" service="print" selectable="false"
/>
	</toolbar>
</mapbook>


__________________________________________

End Mapbook demo 3
__________________________________________



__________________________________________
Begin settings.ini

__________________________________________

[defaults]
; Location of 
the default mapbook
mapbook=mapbook_demo3.xml

[map]
projection=EPSG:
32633

; Do NOT forget trailing "/" in the paths!
[paths]

//root=/opt/geomoose/geomoose/moose2-trunk/maps/
//temp=/tmp/www/

//mapserver_url=/mapserver/cgi-bin/mapserv

; MS4W settings
 
root=/ms4w/apps/geomoose2/maps/
 temp=/ms4w/tmp/ms_tmp/
 
mapserver_url=/cgi-bin/mapserv.exe

[identify]

identify_header=identify/header.html
identify_footer=identify/footer.
html
wms_header=identify/wms_header.html
wms_record=identify/wms_record.
html
wms_footer=identify/wms_footer.html

[select]

highlight_map=select/highlight.map

[itemquery]

itemquery_header=itemquery/header.html

itemquery_footer=itemquery/footer.html
itemquery_miss=itemquery/miss.
html

[mailing_labels]
; labels print in rows/columns
label_rows=10

label_columns=3

; Layout information (only applies to PDF Format)

label_origin_x=.25
label_origin_y=.5
label_width=2.5
label_height=1

; 
Font for the label output (only applies to PDF Format)
label_font=Arial

label_font_size=8

; These are all the settings for the actual lines of 
the label
label_lines=3
label_line_1=%OWNER_NAME%
label_line_2=%
BLDG_NUM% %STREETNAME% %SUFFIX_DIR% %STREETTYPE%
label_line_3=%CITY%, 
MN %ZIP%

; If this is set to "true" then any blank lines in the labels 
will be
; "collapsed" in the PDF output.
label_lines_collapse=true


[print_formats]
print_image=1
print_html=1
print_pdf=1

[html_printing]

; HTML template! Yay!
html_template=./print/default_template.html

html_image_width=800
html_image_height=700



_____________________________________
End Settings.ini

_____________________________________


-----Original Message-----
Da: 
lkne at houstoneng.com
Data: 16/09/2009 15.19
A: "'g.stanca at tiscali.it'"<g.
stanca at tiscali.it>
Ogg: RE: [Geomoose-users] Geomoose 2.0 first trial, 
UTM33 maps

Can we see your mapbook.xml and settings.ini?

Len

-----
Original Message-----
From: g.stanca at tiscali.it [mailto:g.
stanca at tiscali.it] 
Sent: Wednesday, September 16, 2009 3:56 AM
To: 
geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Geomoose 
2.0 first trial, UTM33 maps

Hi everybody,
I'm really new to GeoMoose, 
and to MS4W, too, but I work 
with GIS programs from 1997.
Now I'm 
triyng to create a first attempt 
MapServer instance, containing data 
and shapes of Italy.
when I try to 
modify the demo included in 
GeoMoose 2.0 for a projections =UTM33, 
EPSGS32633 and the extrent of 
my Italia_basebap.map I obtain an empty 
geomoose frame. 

So, where am 
I wrong?

I add Italia_basemap.map for 
reference

Thanks

Giuseppe 
Stancanelli
Italy


_______________________________________________
# 
Map file created from 
QGIS project file ./PTCA/QGis/Italia_base.qgs
# 
Edit this file to 
customize for your map interface
# (Created with 
PyQgis MapServer 
Export plugin)
MAP
  NAME italia_base
  # Map image 
size
  SIZE 800 600

  UNITS meters

  EXTENT -1036058.791421 
3861358.479159 1677393.009512 
5288053.891473
  PROJECTION
    
"proj=utm"
	"zone=33"
	"ellps=WGS84"
	
"datum=WGS84"
	"units=m"
	
"no_defs"
  END

  # Background color for the 
map canvas -- change as 
desired
  IMAGECOLOR 192 192 192
  IMAGEQUALITY 
95
  IMAGETYPE gif
  
OUTPUTFORMAT
    NAME gif
    DRIVER 'GD/GIF'
    
MIMETYPE 'image/gif'

    #IMAGEMODE PC256
    EXTENSION 'gif'
  END
  # 
Legend
  LEGEND

      IMAGECOLOR 255 255 255
    STATUS ON
    KEYSIZE 
18 12
    LABEL

      TYPE BITMAP
      SIZE MEDIUM
      COLOR 0 0 89

    END
  END


  # Web interface definition. Only the template 
parameter
  # is 
required to display a map. See MapServer documentation

  WEB
    # Set 
IMAGEPATH to the path where MapServer should
    # 
write its output.

    IMAGEPATH '/tmp/'

    # Set IMAGEURL to the url 
that points to 
IMAGEPATH
    # as defined in your web server 
configuration
    
IMAGEURL '/tmp/'

    # WMS server settings
    
METADATA
      
'wms_title'           'italia_base'
      
'wms_onlineresource'  'http:
//my.host.com/cgi-bin/mapserv?map=wms.map&'

      
'wms_srs'             'EPSG:4326'
    END

    #Scale range at 
which 
web interface will operate
    # Template and header/footer 
settings

    # Only the template parameter is required to display a 
map. See 
MapServer documentation
  END

  LAYER
    NAME 'Italia'
    
TYPE 
POLYGON
    DATA './PTCA/shape/italia.shp'
    METADATA
      

'wms_title' 'Italia'
    END
    STATUS DEFAULT
    TRANSPARENCY 100


    PROJECTION
    "proj=utm"
	"zone=33"
	"ellps=WGS84"
	"datum=WGS84"
	

"units=m"
	"no_defs"
    END
    CLASS
       NAME 'Italia' 
       

STYLE
         SYMBOL 0 
         SIZE 2 
         OUTLINECOLOR 0 0 0


         COLOR 144 50 207
       END
    END
  END

  LAYER
    NAME 

'Regioni'
    TYPE POLYGON
    DATA './PTCA/shape/regioni_utm.shp'
    

METADATA
      'wms_title' 'Regioni'
    END
    STATUS DEFAULT
    

TRANSPARENCY 100
    PROJECTION
    "proj=utm"
	"zone=33"
	

"ellps=WGS84"
	"datum=WGS84"
	"units=m"
	"no_defs"
    END
    CLASS


       NAME 'Regioni' 
       STYLE
         SYMBOL 0 
         SIZE 2 


         OUTLINECOLOR 0 0 0
         COLOR 150 123 90
       END
    

END
  END

  LAYER
    NAME 'Province'
    TYPE POLYGON
    DATA '.

/PTCA/shape/Province_utm.shp'
    METADATA
      'wms_title' 'Province'


    END
    STATUS DEFAULT
    TRANSPARENCY 100
    PROJECTION
    

"proj=utm"
	"zone=33"
	"ellps=WGS84"
	"datum=WGS84"
	"units=m"
	

"no_defs"
    END
    CLASS
       NAME 'Province' 
       STYLE


         SYMBOL 0 
         SIZE 2 
         OUTLINECOLOR 0 0 0


         COLOR 229 210 191
       END
    END
  END

  LAYER
    NAME 

'Comuni'
    TYPE POLYGON
    DATA './PTCA/shape/Comuni.shp'
    

METADATA
      'wms_title' 'Comuni'
    END
    STATUS DEFAULT
    

TRANSPARENCY 100
    PROJECTION
    "proj=utm"
	"zone=33"
	

"ellps=WGS84"
	"datum=WGS84"
	"units=m"
	"no_defs"
    END
    CLASS


       NAME 'Comuni' 
       STYLE
         SYMBOL 0 
         SIZE 2 


         OUTLINECOLOR 0 0 0
         COLOR 45 220 182
       END
    

END
  END

  LAYER
    NAME 'Strade principali'
    TYPE LINE
    DATA 

'./PTCA/shape/strade_principali.shp'
    METADATA
      'wms_title' 

'Strade principali'
    END
    STATUS DEFAULT
    TRANSPARENCY 100

    
PROJECTION
    "proj=utm"
	"zone=33"
	"ellps=WGS84"
	"datum=WGS84"

	
"units=m"
	"no_defs"
    END
    CLASS
       NAME 'Strade 
principali' 

       STYLE
         SYMBOL 0 
         SIZE 2 
         
OUTLINECOLOR 
131 78 4
         COLOR 0 0 0
       END
    END
  END

  
LAYER
    
NAME 'FFSS'
    TYPE LINE
    DATA './PTCA/shape/ffss.shp'

    METADATA

      'wms_title' 'FFSS'
    END
    STATUS DEFAULT
    
TRANSPARENCY 
100
    PROJECTION
    "proj=utm"
	"zone=33"
	
"ellps=WGS84"
	
"datum=WGS84"
	"units=m"
	"no_defs"
    END
    CLASS

       NAME 
'FFSS' 
       STYLE
         SYMBOL 0 
         SIZE 2 

         
OUTLINECOLOR 24 93 38
         COLOR 0 0 0
       END
    END

  END

END


Il mutuo? Online risparmi!

Confronta le offerte di 40 
banche con tassi esclusivi. Consulenza gratuita ed indipendente. 




http://finanza.tiscali.it/mutui.aspx


------------------------------------------------------------------------------

Come build with us! The BlackBerry&reg; Developer Conference in SF, CA

is the only developer event you need to attend this year. Jumpstart 
your
developing skills, take BlackBerry mobile applications to market 
and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. 
Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
Geomoose-users mailing 
list
Geomoose-users at lists.sourceforge.net
https://lists.sourceforge.
net/lists/listinfo/geomoose-users





Tutto Incluso Light: chiami e navighi senza limiti a soli 9,95 euro al mese. Gratis la Sim Tiscali Mobile con 25 euro di traffico! ATTIVA ORA

http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso_light/




More information about the Geomoose-users mailing list