[mapserver-users] Newbie to Mapserver

2013-09-27 Thread shyam megha
Hello Friends, Am a newbie to Map server Windows.I want to use the WMS services of Mapserver. This is what I have done until now referring websites mapserver.org and onegeology. Setup 1. I have unzipped the zip package file to C:\ms4w. 2. Clicked the Setenv.bat to set the environment

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)
If the GDAL on your system is compiled with Oracle support, you could use ogr2ogr to create a shapefile copy of your data from Oracle. http://www.gdal.org/ogr2ogr.html If you want to do it with a GUI, you could probably use the QGIS. I believe that QGIS 2.0 now has Oracle Spatial support out

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*

[mapserver-users] mapcache - logging?

2013-09-27 Thread Mark Volz
Hello, I have a couple applications that are tied to different mapcaches on the same server. One performs fast, the other feeds most of the tiles on the clients screen quickly but then becomes very slow. I think I have the grids between the client and server match so I don't think the tiles

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

Re: [mapserver-users] Old code must be deprecated

2013-09-27 Thread Lime, Steve D (MNIT)
Hi Michael: It should look like: $layer-queryByShape($circle); for($i=0; $i$layer-getNumResults(); $i++) { $shape = $layer-getShape($layer-getResult($i)); # do whatever with the shape } The RFC that describes the changes is here: