Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design overflow error when using locale with commas instead of decimal points #167

Open
LHMarshall opened this issue Aug 19, 2016 · 0 comments
Assignees

Comments

@LHMarshall
Copy link
Member

When using a locale which uses commas rather than points the design engine (properties) can get confused when calculating some of the design definition values. This can lead to overflow errors when the design is run.

Compare the definition of the same design, the first generated on a computer using decimal points and the second on a computer using commas:

SAMPLER CLASS=Line;
DESIGN CLASS=Systematic Random Sampling;
STRATUM LAYER=strata;
DESIGN COORDSYS=Non-earth;
SEED=0;
EFFORT DEFINITION=Spacing /SAME EFFORT=yes /TYPE=Spacing /INTEGER TOTALS=yes /LENGTH=94771.987 /SAMPLERS=12 /LENGTH ALLOCATION=60653.266,34118.721 /SAMPLER ALLOCATION=6,6 /SPACING ALLOCATION=2000,2000 /PERCENTAGE TOTAL=94771.987 /PERCENTAGE ALLOCATION=63.999,36.001 /PERCENT DEFINITION=Length /UNITSECTION=LinUnit /UNITS=Meter /UNITFACTOR=1;
DESIGN ANGLE=90,0;
EDGE EFFECT=Minus;
SAMPLER=Line /WIDTH=1,1 /UNITSECTION=LinUnit /UNITS=Meter /UNITFACTOR=1 /SAME PROPERTIES=yes;
COVERAGE PROBABILITY=Assume even /LAYER=grid /LABEL=parallel 1 km spacing 3;

SAMPLER CLASS=Line;
DESIGN CLASS=Systematic Random Sampling;
STRATUM LAYER=strata;
DESIGN COORDSYS=Non-earth;
SEED=0;
EFFORT DEFINITION=Spacing /SAME EFFORT=yes /TYPE=Spacing /INTEGER TOTALS=yes /LENGTH=61391.826 /SAMPLERS=32391347 /LENGTH ALLOCATION=60657.315,734.511 /SAMPLER ALLOCATION=6,32391341 /SPACING ALLOCATION=2000,2000 /PERCENTAGE TOTAL=61391.826 /PERCENTAGE ALLOCATION=98.804,1.196 /PERCENT DEFINITION=Length /UNITSECTION=LinUnit /UNITS=Meter /UNITFACTOR=1;
DESIGN ANGLE=90,0;
EDGE EFFECT=Minus;
SAMPLER=Line /WIDTH=500,500 /UNITSECTION=LinUnit /UNITS=Meter /UNITFACTOR=1 /SAME PROPERTIES=yes;
COVERAGE PROBABILITY=Assume even /LAYER=grid /LABEL=New Design;

@LHMarshall LHMarshall assigned LHMarshall and lenthomas and unassigned LHMarshall Sep 7, 2016
@LHMarshall LHMarshall added this to the Distance 7 Release 1 milestone Sep 7, 2016
@LHMarshall LHMarshall removed this from the Distance 7.0 Release 1 milestone Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants