{"id":1489,"library":"geomet","title":"geomet","description":"geomet is a pure Python library designed for converting between various common geospatial data formats, including Well-Known Text (WKT), Well-Known Binary (WKB), GeoJSON, and EsriJSON. The current version is 1.1.0, with releases occurring a few times a year, primarily for compatibility updates and bug fixes.","status":"active","version":"1.1.0","language":"en","source_language":"en","source_url":"https://github.com/geomet/geomet","tags":["geospatial","geojson","wkt","wkb","esrijson","conversion","geometry"],"install":[{"cmd":"pip install geomet","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"symbol":"wkt","correct":"from geomet import wkt"},{"symbol":"geojson","correct":"from geomet import geojson"},{"note":"The EsriJSON module is named `esrijson`, not `esri`.","wrong":"from geomet import esri","symbol":"esrijson","correct":"from geomet import esrijson"}],"quickstart":{"code":"from geomet import wkt, geojson\n\nwkt_string = \"POINT (30 10)\"\n\n# Convert WKT to GeoJSON dictionary\ngeom_dict = wkt.loads(wkt_string)\nprint(f\"WKT loaded as: {geom_dict}\")\n# Expected: {'type': 'Point', 'coordinates': (30.0, 10.0)}\n\n# Convert GeoJSON dictionary back to GeoJSON string\njson_string = geojson.dumps(geom_dict)\nprint(f\"GeoJSON dumped as: {json_string}\")\n# Expected: {\"type\": \"Point\", \"coordinates\": [30.0, 10.0]}","lang":"python","description":"This example demonstrates converting a WKT string into a GeoJSON dictionary and then dumping it back into a GeoJSON string using the `wkt` and `geojson` modules."},"warnings":[{"fix":"Upgrade your Python environment to 3.7 or newer to use `geomet>=1.0.0`. Alternatively, pin `geomet` to an older version if Python upgrade is not possible.","message":"Support for Python 2.7, 3.4, 3.5, and 3.6 was dropped in version 1.0.0. Users on these older Python versions must use `geomet<1.0.0`.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Upgrade to `geomet>=1.1.0` to ensure correct and reliable GeoJSON to EsriJSON conversions, including proper handling of coordinate arrays and SRIDs.","message":"Conversions involving EsriJSON, especially with coordinate value structures or custom SRIDs, had known bugs in versions prior to 1.1.0.","severity":"gotcha","affected_versions":"<1.1.0"},{"fix":"Upgrade to `geomet>=1.0.0` for improved precision and robust handling of floating-point numbers in geospatial data conversions. If on older versions, carefully validate converted geometries.","message":"Previous versions of `geomet` (specifically before 1.0.0) had issues with handling floating point representation, particularly with exponential coordinate values, which could lead to subtle precision errors during WKT/WKB parsing and generation.","severity":"gotcha","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}