dymaptic / GeoBlazor

Core Components for the Dymaptic GeoBlazor Library
MIT License
109 stars 19 forks source link

Localization Issue with comma decimal and serialization #319

Closed TimPurdum closed 3 months ago

TimPurdum commented 8 months ago

From Discord report:

Hello. I think you have a localisation issue. I Noway we use ', ' comma as decimal separator and data is stored in database with comma. and thus the program crash i the QueryFeatures call as shown below. If I change the system settings to use pint as decimal separator the QueryFeatures is OK.

image

I believe double.Parse can take a CultureInfo to determine how to parse. However, I wonder if knowing which culture to use might be an issue because we need to know the culture used in generating the graphic attribute data in the first place, which could come from various sources.