Skip to content

Commit

Permalink
ENH: Add types for ArcGis GDB in arcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Jan 10, 2024
1 parent 5858e3a commit 7a4f20a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.34.0 (2024-MM-DD)

- **BREAKING CHANGE**: Set default `chunks` to `auto` in `rasters.read`
- **ENH: Add types for ArcGis GDB in `arcpy`**
- FIX: Allow folders to be opened in `vectors.read` (to open GDBs)

## 1.33.0 (2024-01-02)
Expand Down
19 changes: 19 additions & 0 deletions sertit/arcpy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
import logging
import logging.handlers

# Arcpy types from inside a schema
SHORT = "int32:4"
""" 'Short' type for ArcGis GDB """

LONG = "int32:10"
""" 'Long' type for ArcGis GDB """

FLOAT = "float"
""" 'Float' type for ArcGis GDB """

DOUBLE = "float"
""" 'Double' type for ArcGis GDB """

TEXT = "str:255"
""" "Text" type for ArcGis GDB """

DATE = "datetime"
""" 'Date' type for ArcGis GDB """


# flake8: noqa
def init_conda_arcpy_env():
Expand Down

0 comments on commit 7a4f20a

Please sign in to comment.