[mapserver-users] 16 bit (rgb 565) output format

2012-05-15 Thread Ian Walberg
Is it possible to output in old fashioned true colour 16 bit rgb 565 format? I have been looking through the output format settings and cannot see anything. If not does anyone know of a util to convert from 24 bit to 16 bit. Thanks Ian ___ mapserver-u

RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Alberto Najera
Well, we spend a few hours debugging a 900 plus lines mapfile. We missed a few ends, had a few extra of them plus some other errors like typos in the source file calls. So a tool like this would be extremely useful. I use UltraEdit version 14.00a and have was not aware of such a template. How can

Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Josh Hevenor
What's the state of the XML mapfile? Could one create their mapfile in an XML editor to generate a syntactically valid mapfile (through xslt) then use shp2img to verify data connections? On 5/15/2012 11:57 AM, Lime, Steve D (DNR) wrote: > Shp2img already provides this capability and is more port

Re: [mapserver-users] Some Doubts in WMS Time Documentation

2012-05-15 Thread Paolo Corti
On Tue, May 15, 2012 at 3:41 PM, abhishek bansal wrote: > Thank You very much for your reply.. I have read that document for like > thousand times but could never understand that. I am still confused because > the layer "time_idx" is polygon type(which is vector type) layer, So how I > will be abl

RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Bob Basques
Oops, sorry about the typo below, I meant to say "I know this isn't exactly . . ." bobb >>> "Bob Basques" wrote: All, I've approached this topic over the years by having a nice Syntax editor available for MapFiles. Both VI and UltraEdit have proven to have good syntax templates for

RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Bob Basques
All, I've approached this topic over the years by having a nice Syntax editor available for MapFiles. Both VI and UltraEdit have proven to have good syntax templates for highlighting of edited MAPFILEs. I know this is exactly what was being asked about. But upon further thought, I wonder

RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Lime, Steve D (DNR)
Shp2img already provides this capability and is more portable than MapScript. I think ideally we'd develop a validator that spits out all errors but that's probably not possible either since many common error states (like a missing END or quote) will trigger a whole bunch of false positives. B

Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Ivan Mincik
I mean something like this: import sys import mapscript try: m = mapscript.mapObj(sys.argv[1]) print 'VALID (%s layers found)' % m.numlayers except: print 'INVALID' I did some tests and it seems working. Even it outputs detailed parsing error message (for example: loadP

Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Ivan Mincik
> I don't think this will work because the mapfile is read all at once and > parsed into an internal data structure. You can't access it in mapscript > until the parser has read it and the parser will error out on any errors. Understand, but i mean only valid/invalid output from test script. If so

Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Stephen Woodbridge
On 5/15/2012 11:02 AM, Ivan Mincik wrote: On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote: Other than using shp2img or one of the other command-line executables I'm afraid there isn't a validator. What about writing some trivial mapscript script which will loop over all layers in mapfile.

Re: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Ivan Mincik
On 05/15/2012 03:56 PM, Lime, Steve D (DNR) wrote: > Other than using shp2img or one of the other command-line executables I'm > afraid there isn't a validator. > What about writing some trivial mapscript script which will loop over all layers in mapfile. If some syntax error would be found some

RE: [mapserver-users] Mapfile verification tool

2012-05-15 Thread Lime, Steve D (DNR)
Other than using shp2img or one of the other command-line executables I'm afraid there isn't a validator. Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Alberto Najera Sent: Monday, May 14, 2012 8:35 P

Re: [mapserver-users] Some Doubts in WMS Time Documentation

2012-05-15 Thread abhishek bansal
Thank You very much for your reply.. I have read that document for like thousand times but could never understand that. I am still confused because the layer "time_idx" is polygon type(which is vector type) layer, So how I will be able to render raster based upon time. I have my rasters (with tilin

Re: [mapserver-users] Some Doubts in WMS Time Documentation

2012-05-15 Thread Paolo Corti
Hi > 1.) No database table is specified in the raster layer configuration. Does > that mean my table name would be equal to layer name ? no, the tiles are fetched from the query in the DATA attribute of the time_idx layer: DATA "the_geom from nexrad_n0r_tindex" where the_geom is the geometry co

[mapserver-users] Some Doubts in WMS Time Documentation

2012-05-15 Thread abhishek bansal
hi all, I am trying to setup a WMS MAP Server for time based query of raster images. In the given last example (PostGIS One) of this wms time documentation I had some doubts: 1.) No database table is specified in the raster layer configuration. Does that me