Open
Conversation
Author
|
I tried to test this locally with |
|
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;
});
} |
Author
|
@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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attempted fix for proj4js/proj4js#370. I don't know WKT very well, so looking forward to a review.
{ "type": "GEOGCRS", "name": "WGS 84", "DATUM": { "name": "World Geodetic System 1984", "ELLIPSOID": { "name": "WGS 84", "a": 6378137, "rf": 298.257223563, "LENGTHUNIT": { "metre": 1 } } }, "PRIMEM": { "name": "greenwich", "convert": 0, "ANGLEUNIT": { "degree": 0.0174532925199433 } }, "CS": { "ellipsoidal": 2 }, "AXIS": [ [ "geodetic latitude (Lat)", "north", ["ORDER", 1], ["ANGLEUNIT", "degree", 0.0174532925199433] ], [ "geodetic longitude (Lon)", "east", ["ORDER", 2], ["ANGLEUNIT", "degree", 0.0174532925199433] ] ], "USAGE": { "SCOPE": "unknown", "AREA": "World", "BBOX": { "-90": { "-180": { "90": 180 } } } }, "ID": { "EPSG": 4326 }, "projName": "longlat", "datumCode": "wgs84", "srsCode": "WGS 84" }