Downloads:

755

Downloads of v 4.2.0.20171213:

347

Last Update:

12/13/2017

Package Maintainer(s):

Software Author(s):

  • Dr. Kevin McGarigal
  • Dr. Sam Cushman
  • Eduard Ene

Tags:

fragstats landscape metrics maps gis arcgis admin

FRAGSTATS

4.2.0.20171213 | Updated: 12/13/2017

Downloads:

755

Downloads of v 4.2.0.20171213:

347

Maintainer(s):

Software Author(s):

  • Dr. Kevin McGarigal
  • Dr. Sam Cushman
  • Eduard Ene

FRAGSTATS 4.2.0.20171213

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install FRAGSTATS, run the following command from the command line or from PowerShell:

>

To upgrade FRAGSTATS, run the following command from the command line or from PowerShell:

>

To uninstall FRAGSTATS, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade fragstats -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade fragstats -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure fragstats installed
  win_chocolatey:
    name: fragstats
    state: present
    version: 4.2.0.20171213
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'fragstats' do
  action    :install
  version  '4.2.0.20171213'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: fragstats,
    Version: 4.2.0.20171213,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller fragstats
{
   Name     = 'fragstats'
   Ensure   = 'Present'
   Version  = '4.2.0.20171213'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'fragstats':
  provider => 'chocolatey',
  ensure   => '4.2.0.20171213',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install fragstats version="4.2.0.20171213" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator mwallner on 1/8/2018.

Description

FRAGSTATS is a public domain computer software program designed to compute a wide variety of landscape metrics for categorical map patterns.The original software (version 2) was released in the public domain during 1995. The program was completely revamped in 2002 (version 3). Recently, the program was upgraded to accommodate ArcGIS10 (version 3.4). The latest release (version 4) reflects a major revamping of the software, with a completely redesigned architecture intended to support the addition of cell-level metrics and surface pattern metrics. The current release of version 4 (v4.2) has essentially the same functionality as version 3, but with a new user interface that reflects the redesign of the model architecture, support for additional image formats, and a variety of sampling methods for analyzing sub-landscapes.

Raster Image Formats:

  • ASCII grid
  • 8-, 16- and 32-bit integer grids
  • ESRI grid (or raster)
  • GeoTIFF grid
  • VTP binary terrain format grid
  • ESRI header labelled grid
  • ERDAS Imagine grid
  • PCRaster grid
  • SAGA GIS binary format grid

Features

  • Graphical user interface
  • Command line execution
  • Patch-based metrics
  • Cell-based metrics
  • Surface metrics
  • Structural and functional metrics
  • Batch processing
  • Multiple sampling strategies
  • Handles nodata, background and border cells

Package Parameters

If you have a valid ESRI ArcGIS license with Spatial Analyst or ArcView 3.3 Spatial Analyst and intend to work with ArcGrids (or Rasters), you can use a /DLL package parameter to add the necessary folder path of the aigridio.dll library file. This path is not verified.

For example :
choco install fragstats -params '"/DLL:""C:\Program Files (x86)\ArcGIS\Desktop10.2\Bin"""'.
(note: the double-double quotes around the path are only needed if it contains spaces)


tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'; # stop on all errors

$toolsDir   = Split-Path -parent $MyInvocation.MyCommand.Definition
$fileLocation = (Get-ChildItem -Path $toolsDir -Filter '*.zip').FullName

$UnzipArgs = @{
   PackageName  = $env:ChocolateyPackageName
   FileFullPath = $fileLocation
   Destination  = Join-Path $env:TEMP "$env:ChocolateyPackageName\unzipped"
}

Get-ChocolateyUnzip @UnzipArgs


$InstallArgs = @{
   packageName    = $env:ChocolateyPackageName
   installerType  = 'exe'
   file           = (Get-ChildItem $UnzipArgs.Destination -Filter '*.exe' -Recurse).FullName
   softwareName   = "$env:ChocolateyPackageName*"
   silentArgs     = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
   validExitCodes = @(0)
}
  
Install-ChocolateyPackage @InstallArgs

$UserArguments = @{}
# Parse the packageParameters using good old regular expression
if ($env:chocolateyPackageParameters) {
   $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
   $option_name = 'option'
   $value_name = 'value'
 
   if ($env:chocolateyPackageParameters -match $match_pattern ){
      $results = $env:chocolateyPackageParameters | Select-String $match_pattern -AllMatches
      $results.matches | % {
         $UserArguments.Add(
            $_.Groups[$option_name].Value.Trim(),
            $_.Groups[$value_name].Value.Trim())
      }
   }
   else { 
      Write-Warning 'Package Parameters were found but were invalid (REGEX Failure)' 
   }
} else {
   Write-Debug 'No Package Parameters Passed in'
}

if ($UserArguments.ContainsKey('DLL')) {
   Write-Host 'You requested to add a path to the "aigridio.dll" library.'
   Install-ChocolateyPath $UserArguments.DLL 'Machine'
}
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'
$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  softwareName  = "$env:ChocolateyPackageName*"
  fileType      = 'EXE'
  silentArgs   = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
  validExitCodes= @(0)
}

[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs.softwareName

if ($key.Count -eq 1) {
  $key | % { 
    $packageArgs['file'] = "$($_.UninstallString)"
    Uninstall-ChocolateyPackage @packageArgs
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$($key.Count) matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | % {Write-Warning "- $($_.DisplayName)"}
}

tools\fragstats4.2.zip
md5: A88757C536E1D5F12F563E12E67CD915 | sha1: B8984535C8A3A5E3690E4B3E5913B29D6B2A948D | sha256: CBCB62D09E54791CE37CABD3B4A542BB97AD5EEE2FB885BAF387AE35931A1255 | sha512: 8F9398D09FC1AFD969DC5D26A1BE14AE68CC86A0EF86351F7B12FBF907F8D36F255C1D0F15E8518D1D41999B44713D37B622C13441E75C9F27D4D5C5E0EA4051
tools\LICENSE.txt
From: http://www.umass.edu/landeco/research/fragstats/downloads/fragstats_downloads.html

Disclaimer

This software is in the public domain, and the recipient may not 
assert any proprietary rights thereto nor represent it to anyone 
as other than an Oregon State University-produced program (version 2), 
University of Massachusetts-produced program (version 3), or LandEco 
Consulting-produced (Dr. McGarigal, sole propeitor)(vesion 4). 
FRAGSTATS is provided "as is" without warranty of any kind, including, 
but not limited to, the implied warranties of merchantability and 
fitness for a particular purpose. The user assumes all responsibility 
for the accuracy and suitability of this program for a specific 
application. In no event will the authors or the University be liable 
for any damages, including lost profits, lost savings, or other 
incidental or consequential damages arising from the use of or the 
inability to use this program.
tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
The zipped installer is available on this page:  
http://www.umass.edu/landeco/research/fragstats/downloads/fragstats_downloads.html

Direct Download:

Version  : 4.2
URL      : http://www.umass.edu/landeco/research/fragstats/downloads/fragstats4.2.zip
CheckSum : CBCB62D09E54791CE37CABD3B4A542BB97AD5EEE2FB885BAF387AE35931A1255


In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
FRAGSTATS 4.2 408 Tuesday, April 26, 2016 Approved

This package has no dependencies.

Discussion for the FRAGSTATS Package

Ground Rules:

  • This discussion is only about FRAGSTATS and the FRAGSTATS package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or FRAGSTATS, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus