Hi,

I`m using Geoserver 2.10.1 with tomcat 7.0.59 JVM1.8.0_92-b14.

I try to override the EPSG definition of EPSG:31466 "DHDN / 3-degree 
Gauss-Kruger zone 2" with local towgs84 Parameters to get a better fitting in 
our local area.

In special I like to fit rasterdata who`s Source is EPSG:25832 and postgis 
vector Data source EPSG:31466, in a GetMap Request with CRS=EPSG:31466.

So I created a epsg_overrides.properties File in the userprojections Folder in 
the data Directory of Geoserver 2.10.1.

It looks like this but in one Row.
I changed the towgs84 parameters and deleted the Authority of the Datum 
AUTHORITY["EPSG","6314"].


31446=PROJCS["DHDN / 3-degree Gauss-Kruger zone 2",
  GEOGCS["DHDN",
    DATUM["Deutsches Hauptdreiecksnetz",
      SPHEROID["Bessel 1841", 6377397.155, 299.1528128, 
AUTHORITY["EPSG","7004"]],
      TOWGS84[579.532, 92.7691, 382.3689, 1.064364595, -0.187412714, 
-2.597165518, 12.53626]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Geodetic longitude", EAST],
    AXIS["Geodetic latitude", NORTH],
    AUTHORITY["EPSG","4314"]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["central_meridian", 6.0],
  PARAMETER["latitude_of_origin", 0.0],
  PARAMETER["scale_factor", 1.0],
  PARAMETER["false_easting", 2500000.0],
  PARAMETER["false_northing", 0.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH],
  AUTHORITY["EPSG","31466"]]


Now all GetMap Requests in crs:EPSG:31466 deliver white Pictures with no 
content. Requests with 25832 are working well. The same towgs84 Parameters are 
working well in postgis.

What`s wrong with my epsg_overrides.properties File?


Here is a section of my log:

There are two lines that seem to be strange:
2017-02-17 15:41:32,719 DEBUG [geotools.util] - CRSConverterFactory can be 
applied from Strings to CRS  only.
2017-02-17 15:41:32,719 DEBUG [geotools.util] - InterpolationConverterFactory 
can be applied from Strings to Interpolation  only.


Here is the original log:


2017-02-17 15:41:32,717 INFO [geoserver.wms] -
Request: getMap
        Buffer = 0
        Filter = [Filter.INCLUDE]
        Time = []
        Format = image/png
        Height = 599
        Filters = [Filter.INCLUDE]
        TilesOrigin = null
        Layers = [org.geoserver.wms.MapLayerInfo@d2b1aa72]
        Styles = [StyleImpl[ name=raster]]
        MaxFeatures = null
        Interpolations = []
        RemoteOwsType = null
        RemoteOwsURL = null
        FormatOptions = {}
        CQLFilter = [Filter.INCLUDE]
        Elevation = []
        FeatureId = null
        StartIndex = null
        ViewParams = null
        Palette = null
        FeatureVersion = null
        Sld = null
        BgColor = java.awt.Color[r=255,g=255,b=255]
        SldBody = null
        ValidateSchema = false
        StyleUrl = null
        SRS = urn:x-ogc:def:crs:EPSG:31466
        Crs = PROJCS["DHDN / 3-degree Gauss-Kruger zone 2",
  GEOGCS["DHDN",
    DATUM["Deutsches Hauptdreiecksnetz",
      SPHEROID["Bessel 1841", 6377397.155, 299.1528128, 
AUTHORITY["EPSG","7004"]],
      TOWGS84[579.532, 92.7691, 382.3689, 1.064364595, -0.187412714, 
-2.597165518, 12.53626]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Geodetic longitude", EAST],
    AXIS["Geodetic latitude", NORTH],
    AUTHORITY["EPSG","4314"]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["central_meridian", 6.0],
  PARAMETER["latitude_of_origin", 0.0],
  PARAMETER["scale_factor", 1.0],
  PARAMETER["false_easting", 2500000.0],
  PARAMETER["false_northing", 0.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH],
  AUTHORITY["EPSG","31466"]]
        Bbox = SRSEnvelope[5620035.875452196 : 5621326.124547804, 
2577213.095090439 : 2578804.904909561]
        Env = {}
        Angle = 0.0
        StyleFormat = sld
        Transparent = false
        Exceptions = SE_XML
        StyleBody = null
        SldVersion = null
        StyleVersion = null
        ScaleMethod = null
        Tiled = false
        Width = 739
        Version = 1.3.0
        Request = GetMap
        RawKvp = {QUALITY=middle, CRS=EPSG:31466, FORMAT=image/png, 
BGCOLOR=0xffffff, STYLES=, WIDTH=739, HEIGHT=599, VONSERVER=geodaten.bonn.de, 
LAYERS=luftbilder:luft2015, INTERFACE_ID=1, REQUEST=GetMap, 
BBOX=5620035.875452196,2577213.095090439,5621326.124547804,2578804.904909561, 
VERSION=1.3.0, SERVICE=WMS, TRANSPARENT=FALSE, CQL_FILTER=INCLUDE}
        Get = true
        BaseUrl = http://10.80.0.111:8084/geoserver/
        RequestCharset = UTF-8
2017-02-17 15:41:32,717 DEBUG [wms.map] - Writing png image ...
2017-02-17 15:41:32,718 DEBUG [jdbcconfig.internal] - Original filter: [ 
workspace.id IS NULL ]
2017-02-17 15:41:32,718 DEBUG [jdbcconfig.internal] - Supported filter: [ 
workspace.id IS NULL ]
2017-02-17 15:41:32,718 DEBUG [jdbcconfig.internal] - Unsupported filter: 
Filter.INCLUDE
2017-02-17 15:41:32,718 DEBUG [jdbcconfig.internal] - select id from object 
where type_id in (19) AND (
oid IN (select oid from object_property where property_type in (236) and value 
IS NULL) OR oid NOT  in (select oid from object_property where property_type in 
(236)) /* [ workspace.id IS NULL ] */
)
 ORDER BY oid
2017-02-17 15:41:32,718 DEBUG [jdbcconfig.internal] - query returned 4 records 
in 761.0 ?s
2017-02-17 15:41:32,719 DEBUG [geotools.util] - CRSConverterFactory can be 
applied from Strings to CRS  only.
2017-02-17 15:41:32,719 DEBUG [geotools.util] - InterpolationConverterFactory 
can be applied from Strings to Interpolation  only.
2017-02-17 15:41:32,719 DEBUG [geotools.styling] - number of fts set 1
2017-02-17 15:41:32,758 DEBUG [wms.map] - Writing png image ... done!
2017-02-17 15:41:32,758 DEBUG [geoserver.filters] - Not compressing output for 
mimetype: image/png
2017-02-17 15:41:32,759 DEBUG 
[filter.GeoServerSecurityContextPersistenceFilter$1] - SecurityContextHolder 
now cleared, as request processing completed


Regards,

Guido Blome

Bleiben Sie mit dem mehrmals in der Woche erscheinenden Newsletter 'BonnLive 
online' auf dem Laufenden. Informationen aus dem Rathaus, Veranstaltungstipps 
und aktuelle Nachrichten jetzt im Abo, kostenlos unter 
www.bonn.de<http://www.bonn.de>
Recyclingpapierfreundlichste Stadt Deutschlands 2010 bis 2016.
Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to