Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

1,618

Downloads of v 4.2.0.20171213:

1,046

Last Update:

13 Dec 2017

Package Maintainer(s):

Software Author(s):

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

Tags:

fragstats landscape metrics maps gis arcgis admin

FRAGSTATS

  • 1
  • 2
  • 3

4.2.0.20171213 | Updated: 13 Dec 2017

Downloads:

1,618

Downloads of v 4.2.0.20171213:

1,046

Maintainer(s):

Software Author(s):

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

FRAGSTATS 4.2.0.20171213

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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:

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade fragstats -y --source="'INTERNAL REPO 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="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install fragstats
  win_chocolatey:
    name: fragstats
    version: '4.2.0.20171213'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'fragstats' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '4.2.0.20171213'
end

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


cChocoPackageInstaller fragstats
{
    Name     = "fragstats"
    Version  = "4.2.0.20171213"
    Source   = "INTERNAL REPO URL"
}

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


package { 'fragstats':
  ensure   => '4.2.0.20171213',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Package Approved

This package was approved by moderator mwallner on 08 Jan 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


Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
FRAGSTATS 4.2 572 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