Getting the geometry from a DataRecord

06-21-2022 01:39 AM
Labels (2)
New Contributor III

Hi All

I hope someone can help me with this fairly quickly, as I have a demo tomorrow to a customer and I am doing my head in trying to resolve this.

I have a FeatureLayerDataSource with a single record in it (its actually a filtered dataview). I am trying to get the geometry of that feature but everything I tried returns null. I have traced the issue back to getting the dataRecord from the dataSource, these all return a populated attribute object but a null geometry property for the feature object in the returned dataRecord:


dataSource.getRecord(0) as FeatureDataRecord



Can someone assist me with getting the geometry from a record in a dataSource and/or can this be confirmed as a bug?



0 Replies