Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
Changing to: GEOMTRANSFORM (buffer([shape], 0.0) ...has the same error result. There are a total of 5 mapserver calls to load the web page (I'm using leaflet in the browser). The error occurs on the very first call to mapserver from an ajax request which is requesting the un-buffered parcel

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Fawcett, David (MNIT)
of the box. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of tday Sent: Friday, September 27, 2013 8:16 AM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] GEOMTRANSFORM definition

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Stephen Woodbridge
On 9/27/2013 9:16 AM, tday wrote: Changing to: GEOMTRANSFORM (buffer([shape], 0.0) ...has the same error result. There are a total of 5 mapserver calls to load the web page (I'm using leaflet in the browser). The error occurs on the very first call to mapserver from an ajax request which is

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
Here is what the shptoimage did: ... ~]$ shp2img -map_debug 5 -m /.../wfs.map -o test.png [Fri Sep 27 08:44:36 2013].926937 loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) [Fri Sep 27 08:44:36 2013].927117 msFreeMap(): freeing map at 0x9a152f0. loadLayer(): Unknown

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
Thanks, the admin tells me it was created using ArcView, so I've requested an export using ESRI tool chain. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080565.html Sent from the Mapserver - User mailing list archive

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
Yes, you are correct about the php...here is the entire php code: $request = ms_newowsrequestobj(); $request-loadparams(); $request-setParameter(VERSION,1.1.0); $request-setParameter(SERVICE,WFS); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj(mapfiles/wfs.map);

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Stephen Woodbridge
On 9/27/2013 9:56 AM, tday wrote: Here is what the shptoimage did: ... ~]$ shp2img -map_debug 5 -m /.../wfs.map -o test.png [Fri Sep 27 08:44:36 2013].926937 loadLayer(): Unknown identifier. Parsing error near (GEOMTRANSFORM):(line 131) [Fri Sep 27 08:44:36 2013].927117 msFreeMap(): freeing

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog: http://mapserver.org/trunk/development/changelog/changelog-6-4.html ...and it is confirmed we are using 6.2.1 So that is a very basic requirement - looks like my server admin will get to reinstall newest

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Alan Boudreault
tday, Note that the *LAYER* geomstransform has been added in 6.4. You can still use the buffer GEOMSTRANSFORM in you style definition. Give it a try. Alan On 13-09-27 10:53 AM, tday wrote: It appears that layer level GEOMTRANSFORM was added in 6.4 according to the changelog:

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Alan Boudreault
Better with an example: LAYER NAME my_layer TYPE LINE STATUS DEFAULT DATA lines.shp CLASS STYLE GEOMTRANSFORM (buffer([shape], 5) ## In pixels WIDTH 2 COLOR 255 0 0 END END END On 13-09-27 10:55 AM, Alan Boudreault wrote: tday, Note that the *LAYER*

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
H...My assumption has been that the style GEOMTRANSFORM will be shown if I am producing an image with mapserver. If all I'm getting is geojson from mapserver, will the style GEOMTRANSFORM be applied? -- View this message in context:

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread Alan Boudreault
Ah, right. You will need the layer geomtransform for that. On 13-09-27 11:11 AM, tday wrote: H...My assumption has been that the style GEOMTRANSFORM will be shown if I am producing an image with mapserver. If all I'm getting is geojson from mapserver, will the style GEOMTRANSFORM be

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-27 Thread tday
Postscript: Although the upgrade to version 6.4 was necessary, the solution to the error message was happening because the server needed to access X-Requested-With headers. IE, in php... header(Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept); It seems that the

[mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread tday
Hello, I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file: GEOMTRANSFORM (buffer([shape], 150)) After adding this line, Mapserver throws an error: Mapserver response:undefined - Status:error -

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread Fawcett, David (MNIT)
] GEOMTRANSFORM definition causing an error Hello, I'm trying to implement a buffer layer using layer GEOMTRANSFORM. I am adding this line to the second LAYER definition in the following map file: GEOMTRANSFORM (buffer([shape], 150)) After adding this line, Mapserver throws an error

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread Stephen Woodbridge
So according to this: http://mapserver.org/development/rfc/ms-rfc-89.html Section 2.2 You GEOMTRANSFORM at the LAYER level is expecting your buffer value in ground units, do you really want to buffer your parcel by 150 degrees? Maybe you want to do something like Section 2.3? -Steve W On

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread tday
I wish to create a 150 foot buffer and MAP UNITs are set to FEET. Are you implying that buffer units must be specified another way? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GEOMTRANSFORM-definition-causing-an-error-tp5080269p5080306.html Sent from the Mapserver -

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread tday
Thanks for all the quick replies. At this point, I don't care what units it is in - I'd like to get a working prototype. I've made some changes to the map file to see if I can find the cause of my issue. No matter what I do, I get the same error. Again, if I add... GEOMTRANSFORM

Re: [mapserver-users] GEOMTRANSFORM definition causing an error

2013-09-26 Thread Stephen Woodbridge
tday, Lets try to see if we can eliminate if the value is the problem of the call is the problem. Try this: GEOMTRANSFORM (buffer([shape], 0.0) This should call the buffer and return the same object. If this works then we can assume that buffer is working and the issue is setting a valid