GeoJSON format output produces invalid CRS, p=hoxworth, r=me (closes #3022)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11876 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-04-05 07:07:01 +00:00
parent f33c5ef112
commit fd145c82b1
2 changed files with 6 additions and 6 deletions

View File

@@ -495,16 +495,16 @@ OpenLayers.Format.GeoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {
var code = parseInt(proj.substring(proj.indexOf(":") + 1));
if (code == 4326) {
crs = {
"type": "OGC",
"type": "name",
"properties": {
"urn": "urn:ogc:def:crs:OGC:1.3:CRS84"
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
};
} else {
crs = {
"type": "EPSG",
"type": "name",
"properties": {
"code": code
"name": "EPSG:" + code
}
};
}