Open kylebarron opened 3 years ago
I tried to test this locally with proj4js
but it didn't seem to fix the problem.
GEOGCRS
keyword needs to be added also into codeWords
array in the proj4js/lib/parseCode.js:
var codeWords = ['PROJECTEDCRS', 'PROJCRS', 'GEOGCS','GEOCCS','PROJCS','LOCAL_CS', 'GEODCRS', 'GEODETICCRS', 'GEODETICDATUM', 'ENGCRS', 'ENGINEERINGCRS'];
function testWKT(code){
return codeWords.some(function (word) {
return code.indexOf(word) > -1;
});
}
@kudlav I don't have the bandwidth right now to work on this PR; you're welcome to make a new one based off of this
Attempted fix for https://github.com/proj4js/proj4js/issues/370. I don't know WKT very well, so looking forward to a review.