Select to view content in your preferred language

Polygons with arcs do not have the correct area

12247
36
Jump to solution
01-08-2016 08:59 AM
DonnyVelazquez
Frequent Contributor

It appears there's a bug in the fgdapi when inserting polygons with arcs. It doesn't calculate the area correctly. It only calculates the straight sides and does not include the area the arc is creating. Once you run it through repair geometry, it fixes the calculation.

Anyone else run across this? Vince Angelo

0 Kudos
36 Replies
DonnyVelazquez
Frequent Contributor

1.4

0 Kudos
NeilAyres
MVP Alum

Phew...

I'm really glad I just stick to python / arcpy....

0 Kudos
mbonacia
Emerging Contributor

Hi Donny,

Do you have any sample on how to work with curves using this API? mostly reading the curves points of a polygon

Any help is appreciated

Thanks!

Martin

0 Kudos
DonnyVelazquez
Frequent Contributor

Your better off using GDAL. ESRI hasn't updated the File Geodatabase API in over 7 years. It looks like they have abandoned it. I use Gdal.net Core, has way more features, including arcs. You can export to FGDB and a bunch of other formats.

https://github.com/MaxRev-Dev/gdal.netcore 

0 Kudos
mbonacia
Emerging Contributor

Hi Donny,

I'm sorry I did not reply before. I had to switch gears to another project and now this subject is back to the working table. Even though I have the latest ESRIFileGDB API (FileGeodatabase API_1.5.4) for VS2022, it appears there is still not a way to handle curves/arcs. Have you found a way to create polygons that include arcs/curves? If not, could you provide a sample using GDAL as you suggested in your last reply?

Thanks!

0 Kudos
DonnyVelazquez
Frequent Contributor
mbonacia
Emerging Contributor

very clever.... thanks!

0 Kudos