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.

I add a Google Street Map layer and a WMS layer to an OpenLayers map

        var gmap = new OpenLayers.Layer.Google(
                "Google Streets", // the default
                {numZoomLevels: 20}
                );
        var wms = new OpenLayers.Layer.WMS(
                "School Districts",
                "http://www.petalumaopen.com:8080/geoserver/wms";,
                {layers: "Sonoma-County-GIS:File_ADM_BAYAREA",
                transparent: "true"}
                );

        map.addLayers([gphy, wms]);

The WMS map overlaps the county I'm hoping to find, but isn't aligned,
and the alignment changes with zoom level (ie: at zoomed way in it's a
city block or so off, zoomed out it's miles and miles, but it's not a
fixed pixel offset).

I've tried adding "transform: "EPSG:4326"" and "transform:
"EPSG:900913"" to the WMS layer options, that doesn't seem to change
anything.

(And my attempts so far to merge OpenStreetMap data with anything
in OpenLayers shows me that I clearly don't understand enough about
projections...)

This is probably something based on my ignorance, and may be more
appropriate to the OpenLayers users list, but anyone want to point me
in the right direction?

Thanks,

Dan

----------------
[1] Downloaded from https://gis.sonoma-county.org/catalog.asp, happy to
send a sample

[2] the field after "Native SRS" reads:

PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", 
  GEOGCS["GCS_North_American_1983", 
    DATUM["D_North_American_1983", 
      SPHEROID["GRS_1980", 6378137.0, 298.257222101]], 
    PRIMEM["Greenwich", 0.0], 
    UNIT["degree", 0.017453292519943295], 
    AXIS["Longitude", EAST], 
    AXIS["Latitude", NORTH]], 
  PROJECTION["Lambert_Conformal_Conic_2SP"], 
  PARAMETER["central_meridian", -122.0], 
  PARAMETER["latitude_of_origin", 37.666666666666664], 
  PARAMETER["standard_parallel_1", 39.833333333333336], 
  PARAMETER["false_easting", 6561666.666666667], 
  PARAMETER["false_northing", 1640416.666666667], 
  PARAMETER["scale_factor", 1.0], 
  PARAMETER["standard_parallel_2", 38.333333333333336], 
  UNIT["foot_survey_us", 0.3048006096012192], 
  AXIS["X", EAST], 
  AXIS["Y", NORTH]]

------------------------------------------------------------------------------
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

Reply via email to