Hi,
It looks like a Windows path with single backslashes is being
interpreted as having escape characters.
Any \b and \r in the path are being replaced.
E:\uildselease-1800-x64inprojSHARE\proj_def.dat comes from
E:\Builds\release-1800-x64\bin\proj\SHARE\proj_def.dat
Is this path anywhere in your config, or in your Windows Environment
settings? Probably CONFIG "PROJ_LIB"
Try doubling the backslashes or using forward slashes in the path to
resolve it.
Regards,
Seth
On 20/05/2016 16:57, Vogt, Robert (RCIS) wrote:
Good morning all, I'm trying to set Mapserver up in a x64 environment and test
a map file that previously worked with shp2img
Shp2img crashes with an error saying it can't draw the layer...when I put a
process monitor on it I notice this path in Operation CreateFile with
A Result of NAME INVALID...does anyone know where this path may be coming from?
E:\uildselease-1800-x64inprojSHARE\proj_def.dat
All help is greatly appreciated!!
-Bob
-----Original Message-----
From: mapserver-users [mailto:[email protected]] On
Behalf Of Vogt, Robert (RCIS)
Sent: Wednesday, May 18, 2016 4:33 PM
To: Jeff McKenna; [email protected]
Subject: Re: [mapserver-users] Testing x64 MapServer
I've changed the path to msplugin_mssql2008.dll to be an absolute path and
verified that it's getting loaded
But I'm still getting the error "Image handling error. Failed to draw layer"
I'm not sure how to debug this going forward? Any help is appreciated!!
Thanks!
-----Original Message-----
From: mapserver-users [mailto:[email protected]] On
Behalf Of Jeff McKenna
Sent: Wednesday, May 18, 2016 2:36 PM
To: [email protected]
Subject: Re: [mapserver-users] Testing x64 MapServer
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
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users