AW: [Mapserver-users] displaying lat/long maps

Brachmann, Ellen Ellen.Brachmann at LVERMAP.brandenburg.de
Tue May 6 05:01:45 PDT 2003


Christina,

thanks for your help.
After changing the PROJECTION parameter, we got problems with the Projection
(famous error no. 2).
So we use the system-wrapper wms110 (with PROJ_LIB=YES) to call the
mapserver. He demands the files
proj_def.dat, EPSG (lib_proj itself) and epsg (mapserver), see error_log.
After clearing this problems the result file is empty too (see access_log,
result 200).
If we delete the PROJECTION entries completly the result is the same.
A shell-wrapper with different arguments tells us, that the mapserv
terminates correctly.
The mapserv-version 3.6.1 and 3.6.5 tells the same result, so it seems that
we made the mistake.

We only want to use SHAPE-files with geographic coordinates (they work with
ArcView), and displaying
them in ETRS89 (EPSG:25833) or alternatively geographic coordinates
(EPSG:4326).

Did you have an idea what's going wrong ?

Regards
Ellen

GEOdnm100.map:
-------------
NAME BRANDENBURG

  STATUS      ON
  SIZE        200 200
  SYMBOLSET   "symbols/line.sym"
  FONTSET     "fonts/fonts.txt"
  EXTENT      3240000.0 5679000.0 3490000.0 5946000.0
# EXTENT      11.25 51.30 14.80 53.60
  UNITS       meters
  SHAPEPATH   "geo"

  PROJECTION
    "init=EPSG:25833"
  END

  WEB
    TEMPLATE  map.html
    MINSCALE  1
    MAXSCALE  150000000
    IMAGEPATH "...
    IMAGEURL  "...

    METADATA
      "wms_title"           "...
      "wms_abstract"        "...
      "wms_onlineresource"
"http://10.133.4.212:81/cgi-bin-wms/wms110?map=wms/GEOdnm100.map"
      "wms_srs"             "EPSG:4326,EPSG:25833"
      "wms_fees"            "...
      "wms_keywordlist"     "...
    END
  END

  LAYER
    METADATA
      "wms_title"   "Brandenburg"
      "wms_srs"     "EPSG:4326"
    END
    NAME      state
    MINSCALE  1
    MAXSCALE  150000000
    TYPE      POLYGON
    DATA      geo_dnmvg_kreis
    STATUS    default
    CLASSITEM 'GN'
    CLASS
      NAME       "Brandenburg"
      EXPRESSION /./
      COLOR      255 255 224
      OUTLINECOLOR 0   0   0
    END
    PROJECTION
      "init=EPSG:4326"
    END
  END
....


wms110:
------
#!/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib
export PROJ_DEBUG=YES
export PROJ_LIB=/usr/local/httpd/cgi-bin-wms
../mapserv $*

error_log:
---------
....
pj_open_lib(proj_def.dat): call
fopen(/usr/local/httpd/cgi-bin-wms/proj_def.dat).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(EPSG): call fopen(/usr/local/httpd/cgi-bin-wms/EPSG).
pj_open_lib(epsg): call fopen(/usr/local/httpd/cgi-bin-wms/epsg).

access_log:
----------
10.133.4.999 - - [06/May/2003:12:44:18 +0200] "GET
/cgi-bin-wms/wms110?map=wms/GEOdnm100.map&SERVICE=WMS&V
ERSION=1.1.0&REQUEST=GetMap&LAYERS=state&STYLES=default&TRANSPARENT=FALSE&FO
RMAT=image/png&EXCEPTIONS=appl
ication/vnd.ogc.se_inimage&SRS=EPSG:4326&WIDTH=200&HEIGHT=200&BBOX=13.205910
0,52.2080300,13.2436100,52.222
6100 HTTP/1.0" 200 144

shell_wrapper:
-------------
export LD_LIBRARY_PATH=/usr/local/lib
export PROJ_LIB=/usr/local/httpd/cgi-bin-wms
export
QUERY_STRING=$'map=wms/GEOdnm100.map&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMa
p&LAYERS=state&STYLES=d
efault&TRANSPARENT=FALSE&FORMAT=image/png&EXCEPTIONS=application/vnd.ogc.se_
inimage&SRS=EPSG:4326&WIDTH=20
0&HEIGHT=200&BBOX=13.2059100,52.2080300,13.2436100,52.2226100'
export REQUEST_METHOD=GET
mapserv > ms.out 2> ms.err
echo $? > ms.result
-------------------------------------------------------------------------



More information about the MapServer-users mailing list