From: Dan L. <da...@fl...> - 2010-12-30 19:33:33
|
On Mon, 27 Dec 2010 21:27:10 -0800 Dan Lyke <da...@fl...> wrote: > I have a bunch of shape files[1] that appear to be in EPSG:2226[2]. > I'm defining a new layer in GeoServer, under "Coordinate Reference > Systems" the "Native SRS" appears as "UNKNOWN" (but see footnote[2] > below), I put "EPSG:2226" in "Declared SRS". I have also tried to > import this data into PostGIS telling shp2pgsql that it's in 2226. Answering my own question, I've got it working now, and I think the magic sauce was to tell my OpenLayers the expected projection: var options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", numZoomLevels: 20, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34) }; map = new OpenLayers.Map('map', options); I haven't run this to ground, but my speculation is that WMS asks for the projection, and barring that GeoServer offers it up in the default for the layer. Dan |