c# display pdf in window : Add pages to pdf reader application SDK cloud windows .net html class QGIS-2.2-UserGuide-en16-part473

QGISUserGuide,Release2.2
Figure15.2:Thedownloadtool
Whenyouclick[OK],thedatawillbedownloadedfromthedeviceandappearasalayerinQGIS.
15.1.6 UploadingGPSdatatoadevice
YoucanalsouploaddatadirectlyfromavectorlayerinQGIStoaGPSdeviceusingtheUploadtoGPStabof
theGPSToolsdialog. Todothis,yousimplyselectthelayerthatyouwanttoupload(whichmustbeaGPX
layer),yourGPSdevicetype,andtheport(orUSB)thatitisconnectedto. Justaswiththedownloadtool,you
canspecifynewdevicetypesifyourdeviceisn’tinthelist.
Thistoolisveryusefulincombinationwiththevector-editingcapabilitiesofQGIS.Itallowsyoutoloadamap,
createwaypointsandroutes,andthenuploadthemandusethemonyourGPSdevice.
15.1.7 Definingnewdevicetypes
TherearelotsofdifferenttypesofGPSdevices. TheQGISdeveloperscan’ttestallofthem,soifyouhaveone
thatdoesnotworkwithanyofthedevicetypeslistedintheDownloadfromGPSandUploadtoGPStools,you
candefineyourowndevicetypeforit. YoudothisbyusingtheGPSdeviceeditor,whichyoustartbyclicking
the[Editdevices]buttoninthedownloadortheuploadtab.
Todefineanewdevice, yousimplyclickthe[Newdevice]button,enteraname,enterdownloadandupload
commandsforyourdevice,andclickthe[Updatedevice]button.Thenamewillbelistedinthedevicemenusin
theuploadanddownloadwindows–itcanbeanystring.Thedownloadcommandisthecommandthatisusedto
downloaddatafromthedevicetoaGPXfile.ThiswillprobablybeaGPSBabelcommand,butyoucanuseany
othercommandlineprogramthatcancreateaGPXfile.QGISwillreplacethekeywords%type,%in,and%out
whenitrunsthecommand.
%typewillbereplacedby-wifyouaredownloadingwaypoints,-rifyouaredownloadingroutesand-tif
youaredownloadingtracks.Thesearecommand-lineoptionsthattellGPSBabelwhichfeaturetypetodownload.
%inwillbereplacedbytheportnamethatyouchooseinthedownloadwindowand%outwillbereplacedby
thenameyouchoosefortheGPXfilethatthedownloadeddatashouldbestoredin. So,ifyoucreateadevice
typewiththedownloadcommandgpsbabel %type -i garmin -o gpx %in %out(thisisactuallythe
downloadcommandforthepredefineddevicetype‘Garminserial’)andthenuseittodownloadwaypointsfrom
port/dev/ttyS0tothefileoutput.gpx,QGISwillreplacethekeywordsandrunthecommandgpsbabel
-w -i garmin -o gpx /dev/ttyS0 output.gpx.
Theuploadcommandisthecommandthatisusedtouploaddatatothedevice.Thesamekeywordsareused,but
%inisnowreplacedbythenameoftheGPXfileforthelayerthatisbeinguploaded,and%outisreplacedby
theportname.
YoucanlearnmoreaboutGPSBabelanditsavailablecommandlineoptionsathttp://www.gpsbabel.org.
Onceyouhavecreatedanewdevicetype,itwillappearinthedevicelistsforthedownloadanduploadtools.
15.1. GPSPlugin
155
Add pages to pdf reader - insert pages into PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Guide C# Users to Insert (Empty) PDF Page or Pages from a Supported File Format
add page numbers to pdf document in preview; add page number to pdf file
Add pages to pdf reader - VB.NET PDF Page Insert Library: insert pages into PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Easy to Use VB.NET APIs to Add a New Blank Page to PDF Document
add a page to a pdf document; add page numbers to a pdf
QGISUserGuide,Release2.2
15.1.8 Downloadofpoints/tracksfromGPSunits
AsdescribedinprevioussectionsQGISusesGPSBabeltodownloadpoints/tracksdirectlyintheproject. QGIS
comesoutoftheboxwithapre-definedprofiletodownloadfromGarmindevices. Unfortunatelythereisabug
thatdoesnotallowcreateotherprofiles,sodownloadingdirectlyinQGISusingtheGPSToolsisatthemoment
limitedtoGarminUSBunits.
GarminGPSMAP60cs
MSWindows
InstalltheGarminUSBdriversfromhttp://www8.garmin.com/support/download_details.jsp?id=591
Connecttheunit. OpenGPSToolsandusetype=garmin serialandport=usb: : FillthefieldsLayer
nameandOutputfile. Sometimesitseemstohaveproblemssavinginacertainfolder, , usingsomethinglike
c:\tempusuallyworks.
Ubuntu/MintGNU/Linux
It is first needed d an
issue about t the permissions of the device,
as described
at
https://wiki.openstreetmap.org/wiki/USB_Garmin_on_GNU/Linux.
You can try to create a file
/etc/udev/rules.d/51-garmin.rulescontainingthisrule
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", , MODE="666"
Afterthatisnecessarytobesurethatthegarmin_gpskernelmoduleisnotloaded
rmmod garmin_gps
andthenyoucanusetheGPSTools. UnfortunatelythereseemstobeabugandusuallyQGISfreezesseveral
timesbeforetheoperationworkfine.
BTGP-38KMdatalogger(onlyBluetooth)
MSWindows
ThealreadyreferredbugdoesnotallowtodownloadthedatafromwithinQGIS,soitisneededtouseGPSBabel
fromthecommandlineorusingitsinterface.Theworkingcommandis
gpsbabel -t t -i i skytraq,baud=9600,initbaud=9600 0 -f f COM9 -o o gpx x -F F C:/GPX/aaa.gpx
Ubuntu/MintGNU/Linux
Usesamecommand(orsettingsifyouuseGPSBabelGUI)asinWindows.OnLinuxitmaybesomehowcommon
togetamessagelike
skytraq: Too o many read errors on n serial l port
itisjustamattertoturnoffandonthedataloggerandtryagain.
BlueMaxGPS-4044datalogger(bothBTandUSB)
MSWindows
Note: ItneedstoinstallitsdriversbeforeusingitonWindows7. . Seeinthemanufacturersitefortheproper
download.
DownloadingwithGPSBabel,bothwithUSBandBTreturnsalwaysanerrorlike
gpsbabel -t t -i i mtk k -f f COM12 2 -o gpx -F F C:/temp/test.gpx
mtk_logger: Can’t create temporary file data.bin
Error running gpsbabel: Process s exited unsucessfully y with code 1
156
Chapter15. WorkingwithGPSData
C# PDF insert image Library: insert images into PDF in C#.net, ASP
inserting image to PDF in preview without adobe PDF reader installed. Insert images into PDF form field. How to insert and add image, picture, digital photo
add page pdf; add pages to pdf document
C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
NET Page: Insert PDF pages; VB.NET Page: Delete PDF pages; Add Image to PDF; VB.NET Protect: Add Password to VB.NET Annotate: PDF Markup & Drawing. XDoc.Word for
add pages to pdf acrobat; add contents page to pdf
QGISUserGuide,Release2.2
Ubuntu/MintGNU/Linux
WithUSB
Afterhavingconnectedthecableusethedmesgcommandtounderstandwhatportisbeingused,forexample
/dev/ttyACM3.ThenasusualuseGPSBabelfromtheCLIorGUI
gpsbabel -t t -i i mtk k -f f /dev/ttyACM3 3 -o o gpx x -F F /home/user/bluemax.gpx
WithBluetooth
UseBluemanDeviceManagertopairthedeviceandmakeitavailablethroughasystemport,thenrunGPSBabel
gpsbabel -t t -i i mtk k -f f /dev/rfcomm0 0 -o o gpx x -F F /home/user/bluemax_bt.gpx
.
15.2 LiveGPStracking
ToactivateliveGPStrackinginQGIS,youneedtoselectSettingsPanels
GPSinformation.Youwillgeta
newdockedwindowontheleftsideofthecanvas.
TherearefourpossiblescreensinthisGPStrackingwindow:
GPSpositioncoordinatesandaninterfaceformanuallyenteringverticesandfeatures
GPSsignalstrengthofsatelliteconnections
GPSpolarscreenshowingnumberandpolarpositionofsatellites
GPSoptionsscreen(seefigure_gps_options)
Withaplugged-inGPSreceiver(hastobesupportedbyyouroperatingsystem),asimpleclickon[Connect]con-
nectstheGPStoQGIS.Asecondclick(nowon[Disconnect])disconnectstheGPSreceiverfromyourcomputer.
ForGNU/Linux,gpsdsupportisintegratedtosupportconnectiontomostGPSreceivers.Therefore,youfirsthave
toconfiguregpsdproperlytoconnectQGIStoit.
Warning: Ifyouwanttorecordyourpositiontothecanvas,youhavetocreateanewvectorlayerfirstand
switchittoeditablestatustobeabletorecordyourtrack.
15.2.1 Positionandadditionalattributes
IftheGPSisreceivingsignalsfromsatellites,youwillseeyourpositioninlatitude,longitudeandaltitude
togetherwithadditionalattributes.
15.2.2 GPSsignalstrength
Here,youcanseethesignalstrengthofthesatellitesyouarereceivingsignalsfrom.
15.2.3 GPSpolarwindow
Ifyouwanttoknowwhereintheskyalltheconnectedsatellitesare,youhavetoswitchtothepolarscreen.
YoucanalsoseetheIDnumbersofthesatellitesyouarereceivingsignalsfrom.
15.2. LiveGPStracking
157
VB.NET PDF insert image library: insert images into PDF in vb.net
VB.NET PDF - Add Image to PDF Page in VB.NET. Guide VB.NET Programmers How to Add Images in PDF Document Using XDoc.PDF SDK for VB.NET.
adding page numbers to a pdf in reader; adding a page to a pdf in reader
VB.NET PDF Password Library: add, remove, edit PDF file password
VB: Add Password to PDF with Permission Settings Applied. This VB.NET example shows how to add PDF file password with access permission setting.
add page to pdf reader; add a page to a pdf online
QGISUserGuide,Release2.2
Figure15.3:GPStrackingpositionandadditionalattributes
Figure15.4:GPStrackingsignalstrength
Figure15.5:GPStrackingpolarwindow
158
Chapter15. WorkingwithGPSData
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
In order to run the sample code, the following steps would be necessary. Add necessary references: How to VB.NET: Delete Consecutive Pages from PDF.
add page pdf reader; add pages to pdf in preview
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
options, including setting a single page, a series of pages, and random pages to be C#.NET Project DLLs for Deleting PDF Document Page. Add necessary references
add pdf pages together; add page to a pdf
QGISUserGuide,Release2.2
15.2.4 GPSoptions
Incaseofconnectionproblems,youcanswitchbetween:
Autodetect
Internal
Serialdevice
gpsd(selectingtheHost,PortandDeviceyourGPSisconnectedto)
Aclickon[Connect]againinitiatestheconnectiontotheGPSreceiver.
Figure15.6:GPStrackingoptionswindow
Youcanactivate
Automaticallysaveaddedfeatureswhenyouareineditingmode. Oryoucanactivate
Automaticallyaddpointstothemapcanvaswithacertainwidthandcolor.
Activating
Cursor,youcanuseaslider
toshrinkandgrowthepositioncursoronthe
canvas.
Activating
Mapcenteringallowsyoutodecideinwhichwaythecanvas willbeupdated. . Thisincludes
‘always’,‘whenleaving’,ifyourrecordedcoordinatesstarttomoveoutofthecanvas,or‘never’,tokeepmap
extent.
15.2. LiveGPStracking
159
C# PDF Password Library: add, remove, edit PDF file password in C#
C# Sample Code: Add Password to PDF with Permission Settings Applied in C#.NET. This example shows how to add PDF file password with access permission setting.
add page numbers to pdf files; add page numbers to pdf
C# PDF Sticky Note Library: add, delete, update PDF note in C#.net
Evaluation library and components enable users to annotate PDF without adobe PDF reader control installed. Able to add notes to PDF using C# source code in
adding pages to a pdf document in preview; adding page numbers pdf
QGISUserGuide,Release2.2
Finally,youcanactivate
LogfileanddefineapathandafilewherelogmessagesabouttheGPStrackingare
logged.
Ifyouwanttosetafeaturemanually,youhavetogobackto
Position
andclickon[AddPoint]or[Addtrack
point].
15.2.5 ConnecttoaBluetoothGPSforlivetracking
WithQGISyoucanconnectaBluetoothGPSforfielddatacollection. ToperformthistaskyouneedaGPS
BluetoothdeviceandaBluetoothreceiveronyourcomputer.
AtfirstyoumustletyourGPSdeviceberecognizedandpairedtothecomputer. TurnontheGPS,gotothe
BluetoothicononyournotificationareaandsearchforaNewDevice.
OntherightsideoftheDeviceselectionmaskmakesurethatalldevicesareselectedsoyourGPSunitwill
probablyappearamongthoseavailable. Inthenextstepaserialconnectionserviceshouldbeavailable,selectit
andclickon[Configure]button.
RememberthenumberoftheCOMportassignedtotheGPSconnectionasresultingbytheBluetoothproperties.
AftertheGPShasbeenrecognized,makethepairingfortheconnection.Usuallytheautorizationcodeis0000.
Nowopen:guilabel:GPSinformation‘panelandswitchto
GPSoptionsscreen.SelecttheCOMportassigned
totheGPSconnectionandclickthe[Connect].Afterawhileacursorindicatingyourpositionshouldappear.
IfQGIScan’treceiveGPSdata,thenyoushouldrestartyourGPSdevice,wait5-10secondsthentrytoconnect
again. Usuallythissolutionwork. . Ifyoureceiveagainaconnectionerrormakesureyoudon’thaveanother
Bluetoothreceivernearyou,pairedwiththesameGPSunit.
15.2.6 UsingGPSMAP60cs
MSWindows
Easiestwaytomakeitworkistouseamiddleware(freeware,notopen)calledGPSGate.
Launchtheprogram,makeitscanforGPSdevices(worksforbothUSBandBTones)andtheninQGISjustclick
[Connect]intheLivetrackingpanelusingthe
Autodetectmode.
Ubuntu/MintGNU/Linux
AsforWindowstheeasiestwayistouseaserverinthemiddle,inthiscaseGPSD,so
sudo apt-get install l gpsd
Thenloadthegarmin_gpskernelmodule
sudo modprobe garmin_gps
Andthenconnecttheunit. Thencheckwithdmesg g theactual devicebeingusedbutheunit, forexample
/dev/ttyUSB0.Nowyoucanlaunchgpsd
gpsd /dev/ttyUSB0
AndfinallyconnectwiththeQGISlivetrackingtool.
15.2.7 UsingBTGP-38KMdatalogger(onlyBluetooth)
UsingGPSD(underLinux)orGPSGate(underWindows)iseffortless.
160
Chapter15. WorkingwithGPSData
QGISUserGuide,Release2.2
15.2.8 UsingBlueMaxGPS-4044datalogger(bothBTandUSB)
MSWindows
ThelivetrackingworksforbothUSBandBTmodes, byusingGPSGateorevenwithoutit, justusethe
Autodetectmode,orpointthetooltherightport.
Ubuntu/MintGNU/Linux
ForUSB
ThelivetrackingworksbothwithGPSD
gpsd /dev/ttyACM3
orwithoutit,byconnectingtheQGISlivetrackingtooldirectlytothedevice(forexample/dev/ttyACM3).
ForBluetooth
ThelivetrackingworksbothwithGPSD
gpsd /dev/rfcomm0
orwithoutit,byconnectingtheQGISlivetrackingtooldirectlytothedevice(forexample/dev/rfcomm0).
.
15.2. LiveGPStracking
161
QGISUserGuide,Release2.2
162
Chapter15. WorkingwithGPSData
CHAPTER
16
GRASSGISIntegration
TheGRASSpluginprovidesaccesstoGRASSGISdatabasesandfunctionalities(seeGRASS-PROJECTinLit-
eratureandWebReferences).ThisincludesvisualizingGRASSrasterandvectorlayers,digitizingvectorlayers,
editingvectorattributes,creatingnewvectorlayersandanalysingGRASS2-Dand3-Ddatawithmorethan400
GRASSmodules.
Inthissection,we’llintroducethepluginfunctionalitiesandgivesomeexamplesofmanagingandworkingwith
GRASSdata.ThefollowingmainfeaturesareprovidedwiththetoolbarmenuwhenyoustarttheGRASSplugin,
asdescribedinsectionsec_starting_grass:
Openmapset
Newmapset
Closemapset
AddGRASSvectorlayer
AddGRASSrasterlayer
CreatenewGRASSvector
EditGRASSvectorlayer
OpenGRASStools
DisplaycurrentGRASSregion
EditcurrentGRASSregion
16.1 StartingtheGRASSplugin
TouseGRASSfunctionalitiesand/orvisualizeGRASSvectorandrasterlayersinQGIS,youmustselectandload
theGRASSpluginwiththePluginManager. Therefore,gotothemenuPlugins
ManagePlugins,select
GRASSandclick[OK].
You can now w start loading g raster r and vector r layers from m an existing GRASS S LOCATION (see section
sec_load_grassdata). Or, , youcancreateanewGRASSLOCATIONwithQGIS(seesectionCreatinganew
GRASSLOCATION)andimportsomerasterandvectordata(seesectionImportingdataintoaGRASSLOCA-
TION)forfurtheranalysiswiththeGRASSToolbox(seesectionTheGRASSToolbox).
163
QGISUserGuide,Release2.2
16.2 LoadingGRASSrasterandvectorlayers
WiththeGRASSplugin,youcanloadvectororrasterlayersusingtheappropriatebuttononthetoolbarmenu.As
anexample,wewillusetheQGISAlaskadataset(seesectionSampleData).ItincludesasmallsampleGRASS
LOCATIONwiththreevectorlayersandonerasterelevationmap.
1. Create
a
new
folder called
grassdata,
download
the
QGIS
‘Alaska’ dataset
qgis_sample_data.zip from http://download.osgeo.org/qgis/data/ and unzip the file e into
grassdata.
2. StartQGIS.
3. IfnotalreadydoneinapreviousQGISsession,loadtheGRASSpluginclickingonPlugins
Manage
Pluginsandactivate
GRASS.TheGRASStoolbarappearsintheQGISmainwindow.
4. IntheGRASStoolbar,clickthe
Openmapset
icontobringuptheMAPSETwizard.
5. ForGisdbase,browseandselectorenterthepathtothenewlycreatedfoldergrassdata.
6. YoushouldnowbeabletoselecttheLOCATION
alaskaandtheMAPSET
demo.
7. Click[OK].NoticethatsomepreviouslydisabledtoolsintheGRASStoolbararenowenabled.
8. Clickon
AddGRASSrasterlayer
,choosethemapnamegtopo30andclick[OK].Theelevationlayerwill
bevisualized.
9. Clickon
AddGRASSvectorlayer
, choosethemapnamealaskaandclick[OK].TheAlaskaboundary
vectorlayerwillbeoverlayedontopofthegtopo30map. Youcannowadaptthelayerpropertiesas
describedinchapterTheVectorPropertiesDialog(e.g.,changeopacity,fillandoutlinecolor).
10. Alsoloadtheothertwovectorlayers,riversandairports,andadapttheirproperties.
Asyousee,itisverysimpletoloadGRASSrasterandvectorlayersinQGIS.Seethefollowingsectionsfor
editingGRASSdataandcreatinganewLOCATION.MoresampleGRASSLOCATIONsareavailableatthe
GRASSwebsiteathttp://grass.osgeo.org/download/sample-data/.
Tip: GRASSDataLoading
IfyouhaveproblemsloadingdataorQGISterminates abnormally, checktomakesureyouhaveloadedthe
GRASSpluginproperlyasdescribedinsectionsec_starting_grass.
16.3 GRASSLOCATIONandMAPSET
GRASSdataarestoredinadirectoryreferredtoasGISDBASE.Thisdirectory,oftencalledgrassdata,must
becreatedbeforeyoustartworkingwiththeGRASSplugininQGIS.Withinthisdirectory, theGRASSGIS
dataareorganizedbyprojectsstoredinsubdirectoriescalledLOCATIONs. EachLOCATIONisdefinedbyits
coordinatesystem,mapprojectionandgeographicalboundaries. EachLOCATIONcanhaveseveralMAPSETs
(subdirectoriesoftheLOCATION)thatareusedtosubdividetheprojectintodifferenttopicsorsubregions,oras
workspacesforindividualteammembers(seeNeteler&Mitasova2008inLiteratureandWebReferences). In
ordertoanalyzevectorandrasterlayerswithGRASSmodules,youmustimportthemintoaGRASSLOCATION.
(Thisisnotstrictlytrue–withtheGRASSmodulesr.externalandv.externalyoucancreateread-only
linkstoexternalGDAL/OGR-supporteddatasetswithoutimportingthem. Butbecausethisisnottheusualway
forbeginnerstoworkwithGRASS,thisfunctionalitywillnotbedescribedhere.)
16.3.1 CreatinganewGRASSLOCATION
Asanexample,hereishowthesampleGRASSLOCATION alaska,whichisprojectedinAlbersEqualArea
projectionwithunitfeetwascreatedfortheQGISsampledataset. ThissampleGRASSLOCATION N alaska
164
Chapter16. GRASSGISIntegration
Documents you may be interested
Documents you may be interested