Shape type not supported in runtime geodatabase

592
2
07-02-2019 08:58 AM
PaulGrenning
New Contributor II

I do not understand why I cannot load a shapefile using the javasdk. The error I get is "Shape type not supported in runtime geodatabase".

I can load the same file in arcgis pro but not using the FeatureLayer class.

My code is identical to the online example:

https://developers.arcgis.com/java/latest/sample-code/feature-layer-shapefile.htm

What does arcgis pro do differently than the java sdk? 

Thanks,

Paul

Tags (1)
0 Kudos
2 Replies
ColinAnderson1
Esri Contributor

If you call getAdditionMessage() on the ArcGISRuntimeException that has been thrown it might give you some more information on what the problem is.

0 Kudos
PaulGrenning
New Contributor II

The additional message is empty.

My theory is that the shapefile I am using has Z and M values. If I try to load a 2D shapefile, it works just fine. So I need to know how to load a 3D shapefile.

I originally loaded Collada files but the ModelSceneSymbol centers the mesh which recomputes the origin of the model. So when I use a spatial projection, it is not in the correct spot.

0 Kudos