<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImageIO",
  "identifier" : "/documentation/ImageIO/kCGImageMetadataShouldExcludeGPS",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Image I/O"
    ],
    "preciseIdentifier" : "c:@kCGImageMetadataShouldExcludeGPS"
  },
  "title" : "kCGImageMetadataShouldExcludeGPS"
}
-->

# kCGImageMetadataShouldExcludeGPS

A Boolean value that indicates whether to exclude GPS metadata from EXIF data or the corresponding XMP tags.

```
let kCGImageMetadataShouldExcludeGPS: CFString
```

## Discussion

The value of this key must be a <doc://com.apple.documentation/documentation/CoreFoundation/CFBoolean> value. The default value is <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanFalse>, which includes GPS information in the metadata. This flag doesn’t filter any proprietary location data in the manufacturer’s EXIF MakerNote or in custom XMP properties.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)