Template:BC Basemap: Difference between revisions
Jump to navigation
Jump to search
imported>ScottN No edit summary |
imported>ScottN No edit summary |
||
| Line 1: | Line 1: | ||
[http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/ogc_layer_service?VERSION=1.1.0&request=GetMap&SRS=EPSG:4326&BBOX=-{{#expr:{{{long|123}}}+{{{width|.2}}}/2}},{{#expr:{{{lat|50}}}-{{{height|.1}}}/2}},-{{#expr:{{{long|123}}}-{{{width|.2}}}/2}},{{#expr:{{{lat|50}}}+{{{height|.1}}}/2}}&WIDTH={{#expr:{{{width|.2}}}*{{{scale| | [http://libcwms.gov.bc.ca/wmsconnector/com.esri.wsit.WMSServlet/ogc_layer_service?VERSION=1.1.0&request=GetMap&SRS=EPSG:4326&BBOX=-{{#expr:{{{long|123}}}+{{{width|.2}}}/2}},{{#expr:{{{lat|50}}}-{{{height|.1}}}/2}},-{{#expr:{{{long|123}}}-{{{width|.2}}}/2}},{{#expr:{{{lat|50}}}+{{{height|.1}}}/2}}&WIDTH={{#expr:{{{width|.2}}}*{{{scale|20000}}}*0.6427}}&HEIGHT={{#expr:{{{height|.1}}}*{{{scale|20000}}}}}&LAYERS=TRIM_EBM_OCEAN,TRIM_EBM_WATERBODIES,TRIM_EBM_WATERCOURSES,TRIM_EBM_WETLANDS,TWTR_LINES,TTRN_LINES,TCVR_POINTS,TCTR_LINES,TTRN_POINTS,TSRF_POINTS,TCTR_POINTS,WHSE_BASEMAPPING.TRIM_TEXT_ANNO,TWTR_ANNO,TTRN_ANNO,TSRF_ANNO,TMISC_ANNO,TCVR_ANNO,TCUL_ANNO,TCTR_ANNO,BCGS_GRID,BCGS_GRIDNTS_BC_COASTLINE_POLYS_125M,NTS_BC_RIV_LAKE_WET_POLYS_125M,NTS_BC_COASTLINE_LINES_125M,NTS_BC_CONTOUR_LINES_125M,NTS_BC_MANMADE_LINES_125M,NTS_BC_TRANSPORT_LINES_125M,NTS_BC_TRANSPORT_POINTS_125M,NTS_BC_WATER_POINTS_125M,NTS_BC_LANDFORM_POINTS_125M,NTS_BC_ANNO,NTS_GRID,BC_RIV_LAKE_WET_POLYS_500M,BC_WATER_LINES_500M,BC_TRANSPORT_LINES_500M,BC_PROV_BOUNDARIES_LINES_500M,BC_MANMADE_LINES_500M,BC_MAJOR_CITIES_POINTS_500M,BC_WATER_POINTS_500M,BC_TRANSPORT_POINTS_500M,BC_SPOT_ELEVATION_POINTS_500M,BC_MANMADE_POINTS_500M,BC_WATER_POLYS_5KM,BC_BASEMAP_LINES_5KM_water,BC_BASEMAP_LINES_5KM_transport,BC_BASEMAP_LINES_5KM_boundary,DBM_7H_MIL_POPULATION_POINT,DBM_7H_MIL_BOUNDARIES_LINE,DBM_7H_MIL_DRAINAGE_LINE,DBM_7H_MIL_DRAINAGE_POLY,DBM_7H_MIL_ROADS_LINE,DBM_7H_MIL_PARK_POLY,DBM_7H_MIL_POLITICAL_POLY_PS,DBM_7H_MIL_POLITICAL_POLY_BC,DBM_7H_MIL_BATHYMETRIC_POLY,&STYLES=&FORMAT=PNG {{{text|BC Basemap}}}] | ||
<noinclude> | <noinclude> | ||
| Line 6: | Line 6: | ||
-{{#expr:{{{long|123}}}+{{{width|.2}}}/2}} | -{{#expr:{{{long|123}}}+{{{width|.2}}}/2}} | ||
-{{#expr:{{{long|123}}}-{{{width|.2}}}/2}} | -{{#expr:{{{long|123}}}-{{{width|.2}}}/2}} | ||
{{#expr:{{{width|.1}}}*{{{scale| | {{#expr:{{{width|.1}}}*{{{scale|20000}}}0.6427}} | ||
{{#expr:{{{height|.1}}}*{{{scale| | {{#expr:{{{height|.1}}}*{{{scale|20000}}}}} | ||
NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now. | NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now. | ||
</noinclude> | </noinclude> | ||
Revision as of 17:58, 20 February 2008
50.05
49.95
-123.1
-122.9
20000.06427
2000
NOte: 0.6427 = cosine (50). This is required to adjust the longitude scale since the real world distance for one degree of longitude is proportional to the cosine of the lattitude. Ideally this would be a call to a cosine function but I don't think the wiki can do that so I've pre-programmed it to 50 degrees lattitude for now.