<div dir="ltr">Hello all,<div>On my virtualbox linuxmint machine I can view a shp file with MapServer when the shp file is on filesystem.</div><div>When I put it into the database, the browser returns an error message</div><div>but ogrinfo program can read the database well.</div><div>See below </div><div><br></div><div>And thanks for your assistance </div><div>J</div><div><br><div><b>Error</b>: <span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium">msLoadMap(): Unknown identifier. Parsing error near (CONNECTIONTYPE):(line 9)</span></div><div><span style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><b>Petition</b>: </span><a href="http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600">http://localhost:8080/cgi-bin/mapserv?map=/opt/mapfile/mapserver_quickstart.map&SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1&LAYERS=Countries&SRS=EPSG:4326&BBOX=-137,29,-53,88&FORMAT=PNG&WIDTH=800&HEIGHT=600</a></div><div><br></div><div><br></div><div><b>ogrinfo </b>PG:"host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd dbname=news_test_shp port=5432" sample.admintable -summary<br>INFO: Open of `PG:host=127.0.0.1 user=postgres password=StrongAdminP@ssw0rd dbname=news_test_shp port=5432'<br>      using driver `PostgreSQL' successful.<br><br>Layer name: sample.admintable<br>Geometry: Multi Polygon<br>Feature Count: 258<br>Extent: (-180.000000, -90.000000) - (180.000000, 83.634101)<br>Layer SRS WKT:<br>GEOGCRS["WGS 84",<br>    DATUM["World Geodetic System 1984",<br>        ELLIPSOID["WGS 84",6378137,298.257223563,<br>            LENGTHUNIT["metre",1]]],<br>    PRIMEM["Greenwich",0,<br>        ANGLEUNIT["degree",0.0174532925199433]],<br>    CS[ellipsoidal,2],<br>        AXIS["geodetic latitude (Lat)",north,<br>            ORDER[1],<br>            ANGLEUNIT["degree",0.0174532925199433]],<br>        AXIS["geodetic longitude (Lon)",east,<br>            ORDER[2],<br>            ANGLEUNIT["degree",0.0174532925199433]],<br>    ID["EPSG",4326]]<br>Data axis to CRS axis mapping: 2,1<br></div><div>...</div><div><br></div><div>+++++++++++++++++++++++++++++++++++++++++++++++++++<br></div><div><b>MAP</b><br>  NAME "MAPSERVER_QUICKSTART"<br>  EXTENT -137 29 -53 88<br>  UNITS DD<br>  SHAPEPATH "/opt/mapfile"<br>  SIZE 800 600<br>  <br>  IMAGETYPE PNG24<br>  CONNECTIONTYPE postgis <br>  CONNECTION "user=postgres password=StrongAdminP@ssw0rd dbname=news_test_shp host=127.0.0.1 port=5432"<br>  DATA "geom from sample.admintable using unique gid using srid=9000913"<br><br><br>  PROJECTION<br>    "init=epsg:4326"<br>  END<br><br>  WEB<br>    METADATA<br>      ows_title "MapServer Quickstart"<br>      ows_enable_request "*"<br>      ows_srs "EPSG:4326 EPSG:25832 EPSG:25833"<br>    END<br>  END<br><br>  LAYER<br>    NAME "Countries"<br>    STATUS ON<br>    TYPE POLYGON<br>    DATA "ne_10m_admin_0_countries"<br>    CLASS<br>      STYLE<br>        COLOR 246 241 223<br>        OUTLINECOLOR 0 0 0<br>      END<br>    END<br>  END<br><br>END<br></div><div>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br></div></div></div>