I am trying to create a new feature layer from an existing one using this code,
This works but when I look at the REST endpoint in AGOL the Spatial Reference is 102100.
Then I tried to project the newly created feature layer as a spatial data frame, then save it as a new projected feature layer, the project function returns true, still the Spatial Reference is 102100.
When the spatial data frame is created in the first line, it is still 102698, I beloeve the to_featurelayer function is creating the data as 102100.
Oddly, when I download the file geodatabase that is used to create the feature layer, and look at it is Arc Catalog the feature class is on 102698.