Вы находитесь на странице: 1из 12

MapWindowGISWorkshop

05January2009,McCurtainCounty,Oklahoma Participants:VolunteerFireDeptandRuralWaterDistricts

EXERCISE2
Inthisexercise,youwilllearn: A.Toqueryspecificattributesintheattributetable B.Tocreateanewshapefile C.TodownloadasatelliteimageanddisplayitinMapWindow D.TodisplayGISfilesinGoogleEarth

A.QueryingSpecificAttributesintheAttributeTable
FromEXERCISE1,weimportedseverallayersasshownintheillustrationbelow:

Rightclicktl_2009_40089_placeandclickViewAttributeTableEditor. .) (Alternatively,highlighttl_2009_40089_placeandclicktheAttributeTableEditortool Itsattributetableisshownbelow.ItshowsthemajortownsandcitiesinMcCurtainCounty.

LetsusetheQueryfunctiontoqueryIdabelandsaveitasanothershapefile. ClickSelection>Query.

(Alternatively,clicktheQuerytool TheQuerybuilderpopupappears.

.)

Usingthescrollbar,doubleclickonNAME.ClickEqualsignbutton .TypeIdabelinsingleor doublequotes. ClickExecutebutton. TheIdabelrecordishighlighted.TheIdabelareaboundaryisalsohighlightedinthemap.

(Alternatively,youcanclickonthefirstcolumn(graycolor)oftheIdabelrecordlinetohighlightthe Idabelrecord.ThisistheeasiestwaytoselecttheIdabelrecord.However,ifyouhavehundredsor

thousandsofrecordsandifyouhavetochoosemultiplefields,theQuerybuilderfunctioncomesin handy.) Todeselectthehighlightedrecord,clickSelection>SelectNone.

B.CreatingaNewShapefile
ClickSelection>ExportSelectedFeatures.

SavethenewshapefileasIdabel.SaveitintheMapWinWorkshopfolder. ClickYestothequestion:Doyouwanttoloadthenewshapefile?Nowwehaveanewshapefile namedIdabelintheDataLayersarea.

Unchecktl_2009_40089_McCurtainandtl_2009_40089_place. ZoominonIdabelboundary.RightclickIdabel>ZoomtoLayer.

ItshowstheextentofcoverageofIdabel. Next,letschangeitscolor.DoubleclickonIdabeltoopentheLegendEditor. Makethefollowingchanges: FillColor:Transparent(Hint:ClickonFillColor.Clickthescrollarrow.HittheWebtab.Click Transparent OutlineColor:DarkOrange LineWidth:2 ShowFill:False

ClosetheLegendEditor Downloadandaddthefilecalledstreets.shp. Downloadandaddthefilecalledfire_hydrants.shp. DragthetwolayersaboveIdabel.

Letssaveourprojectthusfar.Inmenubar,clickFile>SaveAs. SaveasWorkshop_A2.mwprjinMapWinWorkshopfolder.ClickSave. Letsactivatesomeplugins. InMainMenu,clickPlugins>GISTools.AlsoactivateOpenMetadataManager.

ThepluginsGISTools,MetadataTools,andthemeasuringtoolarenowdisplayedinthemenubar andtoolbar.

Letslookatthemetadataofalayer.Highlighttl_2009_40089_place.ClickMetadataTools>View MetadataforCurrentLayer.

C.DownloadingasatelliteimageanddisplayingitinMapWindow
FromGeospatialDatasetsforMcCurtainCounty(http://agecon.okstate.edu/gis/McCurtain.asp),under Imagery,downloadortho_e11_s_ok089.sid. SaveittotheMapWinWorkshopfolder.Thefileis436MB,soitmaytakeawhiletodownload.Extract ittothefolderwiththesamenamethatisautomaticallycreated.Asingleimagefileiscomposedof severalfilesasshownbelow: Addtheortho_e11_s_ok089.sidimagetoMapWindow. ClickOpentoseetheimage. Youmayhavetodragtheimagelayertothebottomtoexposetheotherlayers.

Rightclickortho_e11_s_ok089.sid>ZoomtoLayertoviewitsentireextent.

RightclickIdabel>ZoomtoLayer. UsingtheZoomIntool

,drawasmallboxsomewhereatthecenterofIdabel.

Changethesymbologyofthefirehydrants.Doubleclickfire_hydrantstoopenitsLegendEditor. Usethefollowingchanges:PointcolorCyan.PointSize6.PointStyleptCircle.

tosaveyourproject

YoumayusethePantool tomovetonearbylocations.ClicktheSavetool toWorkshop_A2.mwprj. ClickFile>ExittocloseMapWindowGIS.

D.DisplayingGISfilesinGoogleEarth
First,weneedtoinstallapluginforMapWindowsowecandisplayGISfilesinGoogleEarth. DownloadtheShape2EarthMapWindowpluginfrom:http://shape2earth.com/shp2e.aspx. Followinstructionstodownloadandinstall. (Or,downloadasimilarsoftwarecalledShp2kml2.0.Itisashapefiletokml,standaloneconverter. Youcangetitfrom:http://www.zonums.com/shp2kml.html) OpenMapWindowGIS. OpenWorkshop_A2.mwprj. InMenuBar,clickPlugins>Shape2Earth. ThepluginShape2Earthisnowinstalledandshowninthemenubar. ClickIdabel>ZoomtoLayer.

ClickShape2Earth>ExporttoKML

ClickRunUnregistered

10

Usethedefaultparameters.ClickthesmallGoogleEarthicon tosaveIdabelaskmlfile.

Again,SharewareLicenseInformationwindowofShape2Earthpopsup.ClickRunUnregistered. SaveasIdabel.kmlinMapWinWorkshopfolder. OpeningGoogleEarth First,downloadandinstallGoogleEarthifitsnotinyourcomputer.Goto: http://earth.google.com/downloadearth.html. Inmainmenu,clickFile>Open

OpenIdabel.kml. YoushouldseetheIdabelboundaryplottedinGoogleEarth.

11

SaveMapWindowproject. ExitMapWindow. Nowwehavejustlearnedhowtoqueryspecificattributesintheattributetable,createanewshapefile, downloadanddisplayasatelliteimage,anddisplayGISfilesinGoogleEarth. ENDOFEXERCISE2

12

Вам также может понравиться