Select to view content in your preferred language

How to use ArcGIS API objects using Feature Set ?

548
1
05-05-2023 06:41 AM
Labels (3)
NiharSahoo
New Contributor III

I have a feature set object, how i will convert feature set data to arcgis object. I am using below code to get Feature set object. But i am unable to use arcgis python API to feature layer object. I am using below code

arcpy.conversion.FeaturesToJSON(
in_features=fc_layer,
out_json_file="test_json.json",
format_json="NOT_FORMATTED",
include_z_values="NO_Z_VALUES",
include_m_values="NO_M_VALUES",
geoJSON="NO_GEOJSON",
outputToWGS84="KEEP_INPUT_SR",
use_field_alias="USE_FIELD_NAME"
)

fSet = arcpy.FeatureSet()
fSet.load("test_json.json")

 

 

 

0 Kudos
1 Reply
Clubdebambos
Occasional Contributor III

Hi @NiharSahoo 

What exactly are you trying to achieve here? Are you looking to export a Feature Layer (or a subset of features as a Feature Set) to a Feature Class is a Geodatabase?

~ learn.finaldraftmapping.com
0 Kudos