{"success":true,"data":{"ext":"shp","name":"SHP","description":"The SHP file format is the geometry component of the ESRI Shapefile format, created and maintained by Esri for storing vector spatial data. It is used in geographic information systems for maps, terrain analysis, land records, transportation planning, and other location-based applications. The format is widely supported and generally safe, though it is part of a legacy shapefile dataset and may be accompanied by related index and attribute files.","mime":["application/x-shapefile"],"risk_level":"Safe","signatures":[{"hex":"00 00 27 0A","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":[],"usage":{"python":"def is_shp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SHP by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x27, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSHP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x27, 0x0A]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSHP(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x27, 0x0A}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}