jumpinjackie / fdotoolbox

A tool for working with various sources of geospatial data
GNU Lesser General Public License v2.1
27 stars 8 forks source link

"A Data Property cannot have a negative precision" while using fdocmd.exe create-file on non negative precision decimal #84

Closed bertvanovermeir closed 1 year ago

bertvanovermeir commented 1 year ago

It seems there might be a bug (or I am doing it wrong) when trying to create a new file with a new schema that contains a restriction base xs:decimal:

De levensduur in aantal maanden die theoretisch mag verwacht worden voor een object.

with or without a restriction:

After running this command:

fdocmd create-file --file <path> --schema-path <path>

The following error is displayed:

OSGeo.FDO.Common.Exception: A Data Property cannot have a negative precision. at OSGeo.FDO.Schema.DataPropertyDefinition.set_Precision(Int32 value)

Which results in the file still being created, but further feature copy actions will fail with the same error.

Thanks in advance. schema.txt

jumpinjackie commented 1 year ago

Thanks for the useful report. Can you tell me what kind of file you were trying to create (.sdf, .shp, other?) ?

bertvanovermeir commented 1 year ago

Thank you for replying.

I am using .sdf files and the latest version at the time of writing (1.5.2.190).

jumpinjackie commented 1 year ago

Fix will be in the upcoming 1.5.3 release