If I had to guess, it would be that you are not properly pointing to the full path to the MSSQL plugin: for example, see http://ms4w.com/README_INSTALL.html#microsoft-sql-server-2008

I am happy to hear that MS4W is doing so well for sharing your organization's spatial needs. Please feel free to help fund MS4W, to make sure that the MS4W product remains so innovative and reliable for your organization in the long term. You can contact me directly at any time to offer that help. Thank you,

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 2016-05-18 3:17 PM, Vogt, Robert   (RCIS) wrote:
Good afternoon I’m trying to set up x64 MapServer on Windows 2012 server.



I’ve been partially successful in that the MapServer dll’s are all there
but when I run my .map file through shp2img.exe



The process is failing on a .map file that worked previously.



This is what the map file looks like …



MAP

  NAME USA1

  SYMBOLSET "e:\arcgisserver\basedata\symbols.txt"

  FONTSET "e:\arcgisserver\basedata\fonts.txt"

  STATUS ON

  IMAGETYPE PNG8

  RESOLUTION 72

  IMAGECOLOR 255 255 255

  SHAPEPATH "e:\arcgisserver\basedata"

  UNITS METERS

  PROJECTION "proj=lcc" "lat_1=20" "lat_2=60" "lat_0=40"
"lon_0=-112.52116185" "x_0=0" "y_0=0" "ellps=GRS80" "units=m"
"datum=NAD83" END

  SIZE 1500 1500

  EXTENT -45292.7219576058 780481.616003812 45290.5126012127 871065.05991903

  LAYER

    STATUS DEFAULT

    CONNECTIONTYPE PLUGIN CONNECTION "server=Left Blank on purpose, I’ve
tested the connection with a .udl file on the server"

    PLUGIN "msplugin_mssql2008.dll"

    DATA "shape(geography) from FARMMAPS.GIS.STATE USING INDEX S7_idx
USING UNIQUE OBJECTID USING SRID=4269"

    NAME "States"

    TYPE POLYGON

    STATUS DEFAULT

    PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END

    LABELITEM "state"

    CLASS

      NAME "States"

      STYLE

        SYMBOL 0

        WIDTH 2 OUTLINECOLOR 255 0 0

      END

      LABEL TYPE truetype

        FONT arial

        PRIORITY 2

        ALIGN center

        SIZE 10

        COLOR 255 0 0

        OUTLINECOLOR 255 255 255

        OUTLINEWIDTH 2

        MINDISTANCE 300

        ANGLE AUTO

        WRAP "~"

      END

    END

  END

END





I have tested the SQL connection string with a .udl file on the server
and it is working.

The out put of shp2img.exe looks like this…



PS E:\rcis\web\MapServerDlls> ./shp2img.exe -m
E:\RCIS\Web\MapServerDlls\MapServerTest\map4.map -o E:\RCIS\Web\MapServer

Dlls\MapServerTest\image1.png -all_debug 5

msLoadMap(): 0.000s

msDrawMap(): rendering using outputformat named png8 (AGG/PNG8).

msDrawMap(): WMS/WFS set-up and query, 0.000s

msDrawMap(): Image handling error. Failed to draw layer named 'States'.

msDrawMap(): Image handling error. Failed to draw layer named 'States'. <br>

msFreeMap(): freeing map at 00000067B88C2DE0.





_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to