JSON To Features (Conversion Tools)
Summary
Converts feature collections in an Esri JSON formatted file (.json) or a GeoJSON formatted file (.geojson) to a feature class.
Usage
If the input
.jsonfile has thehasZorhasMproperty set toTrue, the output features will have z- and m-values.If the input is a
.geojsonfile, you must select the geometry type to convert to a feature class. GeoJSON supports multiple feature types within the same file, and a feature class must be composed of features of the same feature type.Text fields in the output have a long length (2 billion characters), as the JSON and GeoJSON format specifications do not include a length property for text attributes. To improve conversion performance, a large fixed length is used rather than reading all values to determine the largest number of characters.
The JSON and GeoJSON format specifications do not include a standard way to store
datetimevalues. Adatetimevalue may be represented as an integer value of seconds since the Unix time epoch. To convert this number to adatetimevalue, use the Calculate Field tool or a Python expression such asdatetime.datetime.fromtimestamp(!date_field!).When the input is a
.geojsonfile, the attributes of the first record are used to define the schema of the output feature class.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input JSON or GeoJSON |
The input The input file extension determines the format used by the tool for proper conversion. For Esri JSON formatted file, use the |
File |
|
Output Feature Class |
The output feature class that will contain the features from the input |
Feature Class |
|
Geometry Type (Optional) |
Specifies the geometry type that will be used to convert from GeoJSON to features. This parameter is only used when the input is a
|
String |
Environments
Current Workspace, Scratch Workspace
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes