regsvr32 ole32.dll
Get-ChildItem "C:\Documents and Settings\jjensen" -recurse
Get-ChildItem "C:\Documents and Settings\" -include *.tif -recurse -force
Get-ChildItem . -recurse | ForEach-Object { $_.FullName }
Get-ChildItem "C:\Documents and Settings\" - recurse | Where-Object {$_.name -like "*.tif"}
Get-Help Get-ChildItem -detailed | more
New-Item c:\scripts\new_file.txt -type file
New-Item c:\scripts\newfolder -type directory # creates a new folder
New-Item c:\scripts\new_file.txt -type file -value "add this text to the file" # creates a new file and adds this text string.
Move-Item c:\scripts\*.zip c:\test
Rename-Item c:\scripts\test.txt new_name.txt
Get-Help Move-Item -full | more
cat misc1.txt misc2.txt misc3.txt > allmisc.txt
copy misc*.txt allmisc.txt
copy misc1.txt + misc2.txt + misc3.txt allmisc.txt
Get-Content misc1.txt,misc2.txt,misc3.txt > allmisc.txt
Get-Content -Path misc1.txt, misc2.txt, misc3.txt > allmisc.txt
Get-ChildItem misc*.txt | Get-Content >allmisc.txt
Get-Content c:\test.txt | Measure-Object
wc -l test.txt # UNIX equvalent command
| FME KML Writer | |||
|---|---|---|---|
| KML Element Attribute | KML Element | FME | Description |
| kml_document | <Document> | <Document> element is a container element for <Folder>, <Placemark>, <GroundOverlay>, <ScreenOverlay>, <PhotoOverlay> and <NetworkLink>. KML has two container element types: <Folder> and <Document>, which in many ways are functionally equivalent. For practical purposes, the KML writer assumes that each KML file has a single <Document> root element, which cannot contain subsequent <Document> elements. Furthermore, the KML writer also assumes that each <Folder> | element cannot contain any <Document> elements.|
| Common element attributes to all fixed schema feature types with exception of Style and StyleMap | |||
| kml_id | @id | ||
| kml_name | <name> | ||
| kml_visibility | <visibility> | ||
| kml_open | <open> | ||
| kml_address | <address> | ||
| kml_phone_number | <phoneNumber> | ||
| kml_snippet | <Snippet> | element value written without xml entity encoding | |
| kml_description | <description> | ||
| kml_description_text | <description> | completely overrides any text provided by FME | |
| kml_description_raw_text | <description> | Element value written without xml entity encoding | |
| kml_style_url | <styleUrl> | ||
| kml_atom_author_name | <atom:author> | ||
| kml_atom_author_email | <atom:email> | ||
| kml_atom_link_href | <atom:link href-"@"> | ||
| kml_atom_link_rel | <atom:link rel="@"> | ||
| LookAt - defines a simpler virtual camera for viewing features | |||
| KML Element Attribute | KML Element | FME | Description |
| kml_lookat_heading | <LookAt><heading> | ||
| kml_lookat_tilt | <LookAt><tilt> | ||
| kml_lookat_altitude | <LookAt><altitude> | ||
| kml_lookat_range | <LookAt><range> | ||
| kml_lookat_latitude | <LookAt><latitude> | ||
| kml_lookat_longitude | <LookAt><longitude> | ||
| Region elements can be added to any feature, and describe an area of interest defined by a bounding box, and either a altitude or a specified Level of Detail (LoD) extent. (see FME Readers and Writers) | |||
| KML Element Attribute | KML Element | FME | Description |
| kml_latlonaltbox_altitude_mode | <LatLonAltBox><altitudeMode> | ||
| kml_latlonaltbox_min_altitude | <LatLonAltBox><minAltitude> | ||
| kml_latlonaltbox_max_altitude | <LatLonAltBox><maxAltitude> | ||
| kml_latlonaltbox_north | <LatLonAltBox><north> | ||
| kml_latlonaltbox_south | <LatLonAltBox><south> | ||
| kml_latlonaltbox_east | <LatLonAltBox><east> | ||
| kml_latlonaltbox_west | <LatLonAltBox><west> | ||
| kml_lod_min_lod_pixels | <Lod><minLodPixels> | ||
| kml_lod_max_lod_pixels | <Lod><maxLodPixels> | ||
| kml_lod_min_fade_extent | <Lod><minFadeExtent> | ||
| kml_lod_max_fade_extent | <Lod><maxFadeExtent> | ||
| Placemark elements contain vector geometry that is displayed within Google Earth. (see FME Readers and Writers) | |||
| KML Format Attribute | KML Element | FME | Description |
| kml_common_style | unique string which identifies the common style | ||
| kml_icon | either a name of an icon or path to an icon | ||
| kml_create_info_point | forces the creation of an aggregate point containing the original feature geometry and a point. Used for creating Placemarks that are clickable but styled using an external style element | ||
| kml_target_style | |||
| kml_target_style_normal | Contains the id of an associated style element that should be active when the placemark is not active. If specified kml_target_style_highlight must also be specified. Will result in the creation of the appropriate StyleMap element | ||
| kml_target_style_highlight | contains the id of an associated style element that should be active when the placemark is highlighted on mouse-over. If the specified kml_target_style_normal must also be specified. Will result in the creation of the appropriate StyleMap element | ||
| GroundOverlay. (see FME Readers and Writers) | |||
| LatLonBox - Specifies where the top, bottom, right, and left sides of a bounding box for the ground overlay are aligned. Not required for writing rasters that are appropriately georeferenced. A <GroundOverlay> element must contain a <LatLonBox> element that defines the bounding box of the overlay. If the ground overlayu feature has a raster geometry, these FME attributes will be automatically populated using the feature's bounding box. | |||
| FME KML Element Attribute | KML Element | FME | Description |
| kml_latlonbox_north | <LatLonBox><north> | ||
| kml_latlonbox_south | <LatLonBox><south> | ||
| kml_latlonbox_west | <LatLonBox><west> | ||
| kml_latlonbox_east | <LatLonBox><east> | ||
| kml_latlonbox_rotation | <LatLonBox><rotation> | ||