[mapserver-users] mapserver WMS

2011-06-27 Thread Sila Khan
i followed the same pattern of mapfile for accessing maps through wms
and when i start it in browser it gives Error like this
loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47)
when i modify the recommended line it goes to an other line with same Error
plz help me to rectify the Error




NAME WMS-testSTATUS ONSIZE 400 300SYMBOLSET ../etc/symbols.symEXTENT
-220 -712631 3072800 384UNITS METERSSHAPEPATH
../dataIMAGECOLOR 255 255 255FONTSET ../etc/fonts.txt
WEB
  IMAGEPATH /ms4w/tmp/ms_tmp/
  IMAGEURL /ms_tmp/
  METADATA
wms_title WMS Demo Server  ##required
wms_onlineresource http://yourpath/cgi-bin/mapserv.exe?;   ##required
wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326  ##recommended
  ENDEND
PROJECTION
  init=epsg:42304   ##requiredEND
## Start of layer definitions#
LAYER
  NAME park
  METADATA
wms_titleParks   ##required
  END
  TYPE POLYGON
  STATUS OFF
  DATA park
  PROJECTION
init=epsg:42304   ##recommended
  END
  CLASS
NAME Parks
STYLE
  COLOR 200 255 0
  OUTLINECOLOR 120 120 120
END
  ENDEND # Layer
LAYER
  NAME popplace
  METADATA
wms_titleCities  ##required
  END
  TYPE POINT
  STATUS ON
  DATA popplace
  PROJECTION
init=epsg:42304   ##recommended
  END
  CLASS
NAME Cities
STYLE
  SYMBOL 2
  SIZE 8
  COLOR 0 0 0
END
  ENDEND # Layer
END # Map File
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] php-Mapscript and MySQL layer syntax

2011-06-27 Thread Chris Green
Hi to all

 

I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer
which obtains its data from a MySQL database via an OGR connection. This all
works, but I am having trouble with two items of PHP-Mapscript syntax:

 

 

1.   $layer-getExtent() - I can't make this work with my layer: can
someone confirm if it works with a MySQL layer and if so give a syntax
example?

 

 

2.   $query= $layer-queryByAttributes(null, $expression, MS_MULTIPLE); 

 

 

On the 2nd question I came across some advice from Frank Wamerdam dated 2006
which said:

 

The trick with OGR connections to pass the filter through to OGR is to use

a query expression starting with WHERE.  So you might do something like:

 

   expr = 'WHERE ' + $qField + ' = ' + $qValue

   $qLayer-queryByAttributes(null,$expr,MS_MULTIPLE);

 

(forgive my incorrect PHP syntax, I'm just trying to get the idea accross).

 

 

However I can't come up with any expression that gives me any results at
all. Is there any current advice on how to do this kind of query over an OGR
connection?

 

 

Chris

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] using gdal subdataset as datasource

2011-06-27 Thread Jachym Cepicky
Hi,

I use gdal 1.9.0 (trunk), mapserver 6.0.0, ubuntu 11.04

I need to access several gdal subdatasets within gdal dataset as
different tileindexes (need to build time-support on top of this).

Situation:

1) I have GDAL WCS data source file, with temporal information in it
2) I created shapefile with 2 attributes: location AND time. location
cotains the subdataset definition, which can be read by gdal

ogrinfo on 
/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs.tindex/20101014T03_pph.wcs.tindex.shp
(which is the generated time index file):

...
OGRFeature(20101014T03_pph.wcs.tindex):18
  location (String) =
WCS_SDS:time=2010-10-14T21:00:00.000Z,/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs
  time (String) = 2010-10-14T21:00:00.000Z
  POLYGON ((409900 -11700,12900 -11700,12900 0,409900 0,409900 -11700))
...

gdalinfo on tindex location:

gdalinfo 
'WCS_SDS:time=2010-10-14T21:00:00.000Z,/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs'

Driver: WCS/OGC Web Coverage Service
Files: none associated
Size is 645, 585
Coordinate System is:
PROJCS[GGRS87 / Greek Grid,
GEOGCS[GGRS87,
DATUM[Greek_Geodetic_Reference_System_1987,
SPHEROID[GRS 1980,6378137,298.257222101,
AUTHORITY[EPSG,7019]],
TOWGS84[-199.87,74.79,246.62,0,0,0,0],
AUTHORITY[EPSG,6121]],
PRIMEM[Greenwich,0,
AUTHORITY[EPSG,8901]],
UNIT[degree,0.0174532925199433,
AUTHORITY[EPSG,9122]],
AUTHORITY[EPSG,4121]],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
PROJECTION[Transverse_Mercator],
PARAMETER[latitude_of_origin,0],
PARAMETER[central_meridian,24],
PARAMETER[scale_factor,0.9996],
PARAMETER[false_easting,50],
PARAMETER[false_northing,0],
AUTHORITY[EPSG,2100],
AXIS[Easting,EAST],
AXIS[Northing,NORTH]]
Origin = (409900.000,4503200.000)
Pixel Size = (20.000,-20.000)
Metadata:
  TIME_POSITION=2010-10-14T21:00:00.000Z
Corner Coordinates:
Upper Left  (  409900.000, 4503200.000) ( 22d56' 2.07E, 40d40'29.14N)
Lower Left  (  409900.000, 4491500.000) ( 22d56' 8.10E, 40d34' 9.76N)
Upper Right (  422800.000, 4503200.000) ( 23d 5'11.49E, 40d40'33.86N)
Lower Right (  422800.000, 4491500.000) ( 23d 5'16.66E, 40d34'14.45N)
Center  (  416350.000, 4497350.000) ( 23d 0'39.58E, 40d37'21.89N)
Band 1 Block=645x585 Type=Float64, ColorInterp=Undefined


- works perfectly

BUT when I run GetMap  request (WMS) on that layer, I got

mapscript.MapServerError: msDrawMap(): Image handling error. Failed to
draw layer named '20101014T03_pph'.

msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or
missing file 
'/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs.tindex/WCS_SDS:time=2010-10-14T03:00:00.000Z,/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs'
for layer '20101014T03_pph'. , referer:
http://briseide.localhost/map/index2.php

WMS Mapfile layer definition looks like

  LAYER
METADATA
  wms_timeitemtime
  wms_timeextent  
2010-10-14T03:00:00.000Z,2010-10-14T04:00:00.000Z,2010-10-14T05:00:00.000Z,2010-10-14T06:00:00.000Z,2010-10-14T07:00:00.000Z,2010-10-14T08:00:00.000Z,2010-10-14T09:00:00.000Z,2010-10-14T10:00:00.000Z,2010-10-14T11:00:00.000Z,2010-10-14T12:00:00.000Z,2010-10-14T13:00:00.000Z,2010-10-14T14:00:00.000Z,2010-10-14T15:00:00.000Z,2010-10-14T16:00:00.000Z,2010-10-14T17:00:00.000Z,2010-10-14T18:00:00.000Z,2010-10-14T19:00:00.000Z,2010-10-14T20:00:00.000Z,2010-10-14T21:00:00.000Z
  wms_title   20101014T03_pph
END # METADATA
NAME 20101014T03_pph
PROJECTION
  proj=tmerc
  lat_0=0
  lon_0=24
  k=0.9996
  x_0=50
  y_0=0
  datum=GGRS87
  units=m
  no_defs
END # PROJECTION
STATUS OFF
TEMPLATE foo
TILEINDEX 
/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs.tindex/20101014T03_pph.wcs.tindex.shp
TILEITEM location
TYPE RASTER
UNITS METERS
CLASS
  STYLE
ANGLE 0
OFFSET 0 0
  END # STYLE
END # CLASS
  END # LAYER


The part 
/tmp/WCS-a7145b1a3d54e8df55f019a136f55f84iYEWBn/20101014T03_pph.wcs.tindex/
of the requested file name should *NOT* be there.

Questions:

1) What did I wrong with the configuration?
2) Is there other way, how to access temporal-enabled time data,
available as GDAL subdataset?

Thanks

Jachym

-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver WMS

2011-06-27 Thread Marco Bagni
Hi,

very likely there is a problem with your DATA declaration since, as far as
I know you have to put the name of the coverage enclosed within quotes and
complete with the extension like:

DATA 'popplace.shp'

On the other side this MAP file looks wery skinny.

Here is an example of a MAP template I am using with my system for a
vector coverage in SHP format:

###START6493f0c28e6856b_VL2
LAYER
  NAME '6493f0c28e6856b_VL2'
  TYPE LINE
  DATA 'absolute path to the location of the shape file like
/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/reg2010_s.shp'
  DUMP true
  HEADER 'this is optional and allows to return the results of an identify
in html format but in order to have this you have to declare
'wms_feature_info_mime_type' 'text/html' in the WEB METADATA section
of the MAP part of the map file, that at the beginning of the file
:/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_header.html'
  TEMPLATE 'this MUST be filled with something also some gibberish like
templatestuff or the absolute path to a real HTML file like:
/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_query.html'
  FOOTER 'applies the same comment of the HEADER token
/usr/local/web/gweb/gis-root/level_2/cartographic_background/administrative_boundaries/district_limit/6493f0c28e6856b/template_footer.html'
  EXTENT 313361.0014 3933878.5013 1312106.7514 5220491.2513
  METADATA
'wfs_title' 'VL_2: Regioni' # this name is the name displayed in the
WMS clients
'ows_title' 'VL_2: Regioni'
'ows_abstract' 'UserData:; ;__System___; Sector: Cartographic
Background; Category: Administrative Boundaries; Table: District
Limit; Date_from: -00-00; Date_to: -00-00; DataType: LINE'
'ows_srs'   'EPSG:4326'
'ows_include_items' 'all'
'ows_types' 'auto'
'gml_featureid' 'ID'   # this stuff is for WFS queries and contains
the list of the coverage fields that must be exported
'gml_include_items' 'all'
'gml_types' 'auto'
'gml_COD_REG_type' 'Integer'
'gml_NOME_REG_type' 'String'

  END
  STATUS OFF
  TRANSPARENCY 100
  PROJECTION
'proj=utm'
'ellps=WGS84'
'datum=WGS84'
'zone=32'
'north'
'units=m'
'no_defs'
  END
#

# In this field the user can insert the commands to display the map

# accordingly with a classification based on the value of one or more fields

# following the MAP Server syntax like in the following example:

#

#

#  CLASSITEM 'Code'

#  CLASS

#  NAME '1.000  Code  13.250'

#  EXPRESSION ( ([Code] = 1.000) AND ([Code] = 13.250) )

#   STYLE

# WIDTH 1

# OUTLINECOLOR 0 0 0

# COLOR 0 255 0

#   END

#  END

#  CLASS

#  NAME '13.250  Code  25.500'

#  EXPRESSION ( ([Code] = 13.250) AND ([Code] = 25.500) )

#   STYLE

# WIDTH 1

# OUTLINECOLOR 0 0 0

# COLOR 0 191 64

#   END

#  END

#


  CLASS
 NAME 'VL_2: Regioni'
 TEXT ([NOME_REG])
 STYLE
   WIDTH 1
   OUTLINECOLOR 0 0 0
   COLOR 127 127 127
 END
LABEL  # the field used to display the label is declared in the TEXT
token few lines before
  FONT 'arial'
  TYPE bitmap
  COLOR 0 0 0
  OUTLINECOLOR 255 255 255
  POSITION auto
  SIZE tiny
  WRAP '@'
END
  END
END
###END6493f0c28e6856b_VL2

Hoping that this will be of some help.

Cheers

Marco Bagni

On Mon, June 27, 2011 9:32 am, Sila Khan wrote:
 i followed the same pattern of mapfile for accessing maps through wms
 and when i start it in browser it gives Error like this
 loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47)
 when i modify the recommended line it goes to an other line with same
 Error
 plz help me to rectify the Error




 NAME WMS-testSTATUS ONSIZE 400 300SYMBOLSET ../etc/symbols.symEXTENT
 -220 -712631 3072800 384UNITS METERSSHAPEPATH
 ../dataIMAGECOLOR 255 255 255FONTSET ../etc/fonts.txt
 WEB
   IMAGEPATH /ms4w/tmp/ms_tmp/
   IMAGEURL /ms_tmp/
   METADATA
 wms_title WMS Demo Server  ##required
 wms_onlineresource http://yourpath/cgi-bin/mapserv.exe?;
 ##required
 wms_srs   EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326
 ##recommended
   ENDEND
 PROJECTION
   init=epsg:42304   ##requiredEND
 ## Start of layer definitions#
 LAYER
   NAME park
   METADATA
 wms_titleParks   ##required
   END
   TYPE POLYGON
   STATUS OFF
   DATA park
   PROJECTION
 init=epsg:42304   ##recommended
   END
   CLASS
 NAME Parks
 STYLE
   COLOR 200 255 0
   OUTLINECOLOR 120 120 120
 END
   ENDEND # Layer
 LAYER
   NAME popplace
   METADATA
 wms_titleCities  ##required
   END
   TYPE POINT
   STATUS ON
   DATA popplace
   PROJECTION
 init=epsg:42304   ##recommended
   END
   CLASS
 NAME Cities
 STYLE
   SYMBOL 2
  

Re: [mapserver-users] mapserver WMS

2011-06-27 Thread Jeff McKenna
That is the example mapfile from the docs...maybe you could include your 
small test mapfile.


-jeff


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




On 11-06-27 4:32 AM, Sila Khan wrote:

i followed the same pattern of mapfile for accessing maps through wms
and when i start it in browser it gives Error like this
loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47)
when i modify the recommended line it goes to an other line with same Error
plz help me to rectify the Error




NAME  WMS-test
STATUS  ON
SIZE  400  300
SYMBOLSET  ../etc/symbols.sym
EXTENT  -220  -712631  3072800  384
UNITS  METERS
SHAPEPATH  ../data
IMAGECOLOR  255  255  255
FONTSET  ../etc/fonts.txt

WEB
   IMAGEPATH  /ms4w/tmp/ms_tmp/
   IMAGEURL  /ms_tmp/
   METADATA
 wms_title  WMS Demo Server   ##required
 wms_onlineresource  http://yourpath/cgi-bin/mapserv.exe?;##required
 wms_srsEPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326   
##recommended
   END
END

PROJECTION
   init=epsg:42304##required
END

#
# Start of layer definitions
#

LAYER
   NAME  park
   METADATA
 wms_title Parks##required
   END
   TYPE  POLYGON
   STATUS  OFF
   DATA  park
   PROJECTION
 init=epsg:42304##recommended
   END
   CLASS
 NAME  Parks
 STYLE
   COLOR  200  255  0
   OUTLINECOLOR  120  120  120
 END
   END
END  # Layer

LAYER
   NAME  popplace
   METADATA
 wms_title Cities   ##required
   END
   TYPE  POINT
   STATUS  ON
   DATA  popplace
   PROJECTION
 init=epsg:42304##recommended
   END
   CLASS
 NAME  Cities
 STYLE
   SYMBOL  2
   SIZE  8
   COLOR  0  0  0
 END
   END
END  # Layer

END  # Map File


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] not able to label a feature with concatenated strings (data field + string literal)

2011-06-27 Thread Ralf Trier
I' am updated to PHP-Script Version 6.0. 

I older version I labeled features with concatenated strings (data field
+ string literal). 

The documentation of the class section says that Text can be set like:  
Text ([FIRSTNAME],[LASTNAME])
According to the Migration Guide I can use
TEXT ([area] + ' acres')
TEXT '[area] acres'
None of these 3 versions work. 

Mostly I get an error like:
yyparse(): Expression parser error. syntax error
msShapeGetAnnotation: Expression parser error. Failed to process text
expression: 

Any idea, what I can do.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver WMS

2011-06-27 Thread Daniel Morissette

Which version of MapServer?

Line 47 in the map that you pasted is the end of the first layer 
definition. Are you sure that you copied the right mapfile?


The error suggests an error loading a hashtable, which would be the 
METADATA block just before the TYPE keyword (as if something was wrong 
with your metadata block). Perhaps try removing the ##required comment 
in the metadata block. I'm not aware of any version of MapServer 
suffering of this kind of problem with comments inside METADATA blocks, 
but ya never know...


Oh wait... I think I found it... it must be a combination of the comment 
at the end of the line, combined with incorrect line ends for your 
platform... (Windows CRLF vs Linux/Unix CR) the result is that the END 
delimiter of the metadata block is not seen (it's considered part of the 
comment on the previous line) Removing the comments at the end of the 
lines, or cleaning up the line breaks should fix the problem.



On 11-06-27 03:32 AM, Sila Khan wrote:

i followed the same pattern of mapfile for accessing maps through wms
and when i start it in browser it gives Error like this
loadHashTable(): Unknown identifier. Parsing error near (TYPE):(line 47)
when i modify the recommended line it goes to an other line with same Error
plz help me to rectify the Error




NAME  WMS-test
STATUS  ON
SIZE  400  300
SYMBOLSET  ../etc/symbols.sym
EXTENT  -220  -712631  3072800  384
UNITS  METERS
SHAPEPATH  ../data
IMAGECOLOR  255  255  255
FONTSET  ../etc/fonts.txt

WEB
   IMAGEPATH  /ms4w/tmp/ms_tmp/
   IMAGEURL  /ms_tmp/
   METADATA
 wms_title  WMS Demo Server   ##required
 wms_onlineresource  http://yourpath/cgi-bin/mapserv.exe?;##required
 wms_srsEPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326   
##recommended
   END
END

PROJECTION
   init=epsg:42304##required
END

#
# Start of layer definitions
#

LAYER
   NAME  park
   METADATA
 wms_title Parks##required
   END
   TYPE  POLYGON
   STATUS  OFF
   DATA  park
   PROJECTION
 init=epsg:42304##recommended
   END
   CLASS
 NAME  Parks
 STYLE
   COLOR  200  255  0
   OUTLINECOLOR  120  120  120
 END
   END
END  # Layer

LAYER
   NAME  popplace
   METADATA
 wms_title Cities   ##required
   END
   TYPE  POINT
   STATUS  ON
   DATA  popplace
   PROJECTION
 init=epsg:42304##recommended
   END
   CLASS
 NAME  Cities
 STYLE
   SYMBOL  2
   SIZE  8
   COLOR  0  0  0
 END
   END
END  # Layer

END  # Map File



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] numeric sort of query results?

2011-06-27 Thread Lime, Steve D (DNR)
I've used the javascript push() method to build arrays from MapServer templates.
Steve
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Eric Weisbender
Sent: Friday, June 24, 2011 10:53 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] numeric sort of query results?

Hello,

I would like to an on the fly sort a list of numeric values return when 
querying a layer in MapServer.  I've been looking at the javascript .sort() 
function but can't seem to get my returned query values all in one array.  Any 
idea's and or help would be greatly appreciated.

Thanks
EW
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Rendering artefacts when serving raster via WMS * SOLVED * Sort of

2011-06-27 Thread John Westwood
Hi

After testing with shp2img I have just realised what is causing this
problem. It is all my fault :) Some of the map sheets overlap and I am
using the OFFSITE command with 255 255 255 to make white transparent,
hence some of the sheet behind is showing through.

Unfortunately, I need the OFFSITE command to make white transparent so
that the white 'border' around the sheet does not obscure the map sheet
it is overlapping.

I'm not sure what would be the easiest / best way around this. Does
anybody have any ideas? Thanks.

Regards,

John W.

Great Britain Historical GIS Project



 Frank Warmerdam  15/06/11 4:05 PM 
On 11-06-10 12:25 PM, John Westwood wrote:
 Does anybody have any ideas what the problem could be? I know it is
something
 to do with the fact that I boosted the images and MapServer doesn't
like them,
 but I would like to fix it. Suggestions greatly appreciated.

John,

I'm afraid I don't have much to offer.  I just wanted you to know that
someone had looked at your post and had no bright ideas about why it is
happening.  If this is quite important to you, you could file a ticket
on the issue, reducing it to a simple map file with one input GeoTIFF
and a request (ideally with shp2img) that produces the artifacted
output.
Then I could dig into this from my end.

If you do that, you can directly assign the MapServer ticket to
warmerdam.

Best regards,
-- 
---+--
I set the clouds in motion - turn up   | Frank Warmerdam,
warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] not able to label a feature with concatenated strings (data field + string literal)

2011-06-27 Thread Lime, Steve D (DNR)
Hi Ralf: There looks to be an error in the migration guide with one of
the examples. Specifically: 

  TEXT ([area] + ' acres') should be TEXT ('[area]' + ' acres')

You have to explicitly cast the attribute area to a string. That said
TEXT '[area] acres' should work. What output/error do you get with that?
The new expression parsing isn't used at all in that case so I would 
expect something different that what's below.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Ralf Trier
Sent: Monday, June 27, 2011 8:33 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] not able to label a feature with concatenated 
strings (data field + string literal)

I' am updated to PHP-Script Version 6.0. 

I older version I labeled features with concatenated strings (data field
+ string literal). 

The documentation of the class section says that Text can be set like:  
Text ([FIRSTNAME],[LASTNAME])
According to the Migration Guide I can use
TEXT ([area] + ' acres')
TEXT '[area] acres'
None of these 3 versions work. 

Mostly I get an error like:
yyparse(): Expression parser error. syntax error
msShapeGetAnnotation: Expression parser error. Failed to process text
expression: 

Any idea, what I can do.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] NITF and World Files

2011-06-27 Thread SixDegrees
We have a collection of NITF files that are missing coordinate system
information; they are essentially pixel-based. Elsewhere we have information
on the projections used. We are reluctant to modify the original NITF files,
but would like to display them through MapServer with the correct projection
information. If we provide a world file containing this information for each
NITF file, can we associate the two in the mapfile and have MapServer use
the world file information instead of fruitlessly pawing through the NITF
for it?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/NITF-and-World-Files-tp6521391p6521391.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] NITF and World Files

2011-06-27 Thread Frank Warmerdam

On 11-06-27 01:14 PM, SixDegrees wrote:

We have a collection of NITF files that are missing coordinate system
information; they are essentially pixel-based. Elsewhere we have information
on the projections used. We are reluctant to modify the original NITF files,
but would like to display them through MapServer with the correct projection
information. If we provide a world file containing this information for each
NITF file, can we associate the two in the mapfile and have MapServer use
the world file information instead of fruitlessly pawing through the NITF
for it?


Six Degrees,

Yes, you should be able to drop a .wld or .nfw file next to the nitf file
to provide georeferencing.  If that doesn't work for some reason you
could provide a similar effect with a VRT file (email me directly for details
if needed).

Best regards,
--
---+--
I set the clouds in motion - turn up   | Frank Warmerdam, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users