You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while using the MCAT-RAS library, specifically related to panic handling. When intentionally providing an incorrect string for the Coordinate Reference System (CRS), a panic occurs and it is not being gracefully handled by the library's panic handlers.
The function I was using was GetGeospatialData and when I passed "2284" into sourceCRS string it caused a panic and crashed the server was working on. Though we realized that the correct implementation was to add the following sting:
const wkt2284 = PROJCS["NAD83 / Virginia South (ftUS)",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",37.96666666666667],PARAMETER["standard_parallel_2",36.76666666666667],PARAMETER["latitude_of_origin",36.33333333333334],PARAMETER["central_meridian",-78.5],PARAMETER["false_easting",11482916.667],PARAMETER["false_northing",3280833.333],AUTHORITY["EPSG","2284"],AXIS["X",EAST],AXIS["Y",NORTH]]
`
A panic still shouldn't have occurred and should have been handled by a defer and recover in Go.
The text was updated successfully, but these errors were encountered:
I encountered an issue while using the MCAT-RAS library, specifically related to panic handling. When intentionally providing an incorrect string for the Coordinate Reference System (CRS), a panic occurs and it is not being gracefully handled by the library's panic handlers.
The function I was using was GetGeospatialData and when I passed "2284" into sourceCRS string it caused a panic and crashed the server was working on. Though we realized that the correct implementation was to add the following sting:
const wkt2284 = PROJCS["NAD83 / Virginia South (ftUS)",GEOGCS["NAD83",DATUM["North_American_Datum_1983",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","6269"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4269"]],UNIT["US survey foot",0.3048006096012192,AUTHORITY["EPSG","9003"]],PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["standard_parallel_1",37.96666666666667],PARAMETER["standard_parallel_2",36.76666666666667],PARAMETER["latitude_of_origin",36.33333333333334],PARAMETER["central_meridian",-78.5],PARAMETER["false_easting",11482916.667],PARAMETER["false_northing",3280833.333],AUTHORITY["EPSG","2284"],AXIS["X",EAST],AXIS["Y",NORTH]]
`
A panic still shouldn't have occurred and should have been handled by a defer and recover in Go.
The text was updated successfully, but these errors were encountered: