Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm writing a web API to our GIS data, currently revamping our geocoding service. I'm creating the option for folks to specify the output type as GeoJSON so I'm trying to follow the spec. Our data is stored in nad83 datum UTM zone 12 north projection. The GeoJSON spec says to add a CRS. The wkid is 26912 but what is the OGC CRS URN?

I can understand that the OGC CRS URN is broken down into a few parts.

urn:ogc:def:crs:OGC:1.3:CRS84

urn is the identifier, ogc is the organization, def is another static deal, crs is the type (coordinate reference system), OGC is the authority, 1.3 is the version and CRS84 is the projection.

Why is the authority of utm 26912 the European Petroleum Survey Group?

Do any mapping frameworks even use this CRS name?

I want to follow the spec but it seems that more mapping frameworks are using the wkid.

http://spatialreference.org/ref/epsg/26912/

seems like the best place to get the info but they don't even list the urn. Is the GeoJSON spec just silly or what?

share|improve this question

1 Answer 1

You want urn:ogc:def:crs:EPSG::26912 from the GML link on spatialreference.org. GML uses the URN syntax for describing coordinate systems.

Alternatively, you could specify "crs": { "type": "link", "properties": { "href": "http://spatialreference.org/ref/epsg/26912/esriwkt/", "type": "esriwkt" } } or

"crs": { "type": "link", "properties": { "href": "http://spatialreference.org/ref/epsg/26912/proj4/", "type": "proj4" } }

The GeoJSON spec is not being silly here. It is trying to take advantage of the most precisely specified coordinate system description specification. That is most likely the URN-style GML SRS description.

I would agree that consumption of this is not so widely available. That's why the alternative derferenceable "link" syntax is available, and I explicitly intended it to link to spatialreference.org links. I know proj4js takes advantage of this feature of the GeoJSON specification. You might look there for inspiration.

share|improve this answer
    
It seems to me that it would be a pain for web map api creators/users to place a point on a map with a urn. Since there is little spec adoption on that front. Especially if it were a link type. you'd have to make an api call to the link url or something in order to figure out the projection? –  Steve Oct 20 '11 at 17:32
    
also woudln't it be urn:ogc:def:crs:EPSG::26912 since there's no version number? –  Steve Oct 20 '11 at 17:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.