On Mon, 27 Dec 2010 21:27:10 -0800
Dan Lyke <[email protected]> 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
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users