RE: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 withWFS?

2008-12-02 Thread Kralidis,Tom [Ontario]
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Maarten Plieger
 Sent: Tuesday, 02 December 2008 07:25
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] OUTPUTFORMAT shapefiles instead of 
 GML2/GML3 withWFS?
 
 Hi all,
 Is it possible to configure mapserver in such a way that it 
 returns shapefiles instead of GML from a WFS GetFeature request?

Not that I know of.  Not out of the box.

 I would like to be able to output in GML2, GML3 and 
 shapefiles... GML2 and GML3 work fine.
 
 The problem is that my GML files get very big, up to 60 
 megabytes, and my client applications (like ArcGIS) do not 
 handle that very well.
 

Options:

- would compressing (gzip/zip) help at all?
- you could write a mapscript WxS wrapper (see
http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript) to intercept a
GetFeature request (say, catching outputformat=shape), and transform the
GML response to a shapefile.

I'm guessing folks have done similar things w.r.t. shapefile
clip/download functionality.

..Tom


 Thank you,
 Maarten Plieger
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Postgis query

2008-12-02 Thread Paul Ramsey
If you turn on statement logging in pgsql, you can see what SQL
mapserver is sending to pgsql. That will clarify if there is a way for
you to change your statement to get what you want, or if there's an
error in what mapserver is asking for, or an error in how mapserver is
processing what is returned to it.

P

On Tue, Dec 2, 2008 at 2:37 AM, mark balman [EMAIL PROTECTED] wrote:
 Hi All

 I am trying to output a query from postgis using three tables and it
 is not quite working.

 First table is a quarter degree grid (spatial table)
 Second table is a table with each grid cell id along with many species
 id per grid cell
 Third table is list of species

 My query definition works well as the following (using two tables only)

 select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid
 from spcdensity
 left join spcgrid on spcdensity.fid_1 = spcgrid.fid

 This produces exactly what I want through mapserver, query a grid cell
 and it returns a list of species within that grid cell

 My problem is that I want to return a list of species names so my
 query at present is defined as:

 select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid
 from spcgrid left join species on spcgrid.spcid = species.spcrecid
 inner join spcdensity on spcdensity.fid_1 = spcgrid.fid

 Although the query works when run in pgadmin, when I query a grid cell
 I get a list of one species repeated. I am slightly confused as to
 what I am missing here, can anyone provide me with some pointers?

 Thanks in advance

 Mark
 ___
 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


Re: [mapserver-users] I need ur help (plz urgent)

2008-12-02 Thread Steve Lime
Ques 1: Not sure how you get the regex error with [map]. That tag goes in
the html template (e.g. input type=hidden name=map map=[map]) but
note that it will only work IF you are setting map on the original call to
MapServer. 

Ques 2: SAVEMAP is not switchable, you'd have to edit mapserv.c and recompile.

Steve

 Amiya Patra [EMAIL PROTECTED] 12/02/08 12:30 AM 
Hello..

I am new to Mapserver. I have some raster files(tiff). I cant place the
symbol within the created image. But legend is created. Somewhere I read
that raster layer does not support Symbol. And also [map] tag is not working
within HTML template. Error message is msEvalRegex(): Regular expression
error. String ([map]) failed expression test. .I got that SAVEMAP must be
switched on..But how ? I tried to send it via HTML hidden field but I did
not get.
Also if I write PROCESSING BANDs=1 2 3 then error message is like
msDrawMap(): Image handling error. Failed to draw layer named 'modis'.
drawGDAL(): Unable to access file. Attempt to classify 24bit image, this is
unsupported. I got that by default output image is 8 bit. So I tried to
delare Imagetype JPEG and also Proceesing dither =yes and also via  output
object .But ?? If I commented that line then image quality is very very bad.
And also I need MYSQL connection with raster file notes.


Please I need ur helpAnd I hope I will get response very soon..
Thank you.











MAP
  IMAGETYPE  JPEG
  EXTENT   0.0 0.0 583.0 421.0   # -179.133392 17.674692 179.788208
71.398048  #   # 0.004349 0.006191 312.987904 377.680442
  SIZE   583 421
  SHAPEPATH  /home/nms/MapServerData/data/
  IMAGECOLOR 255 255 255
  STATUS ON
  TRANSPARENT ON
  SYMBOLSET /home/nms/MapServerData/symbol/symbol.sym







  WEB
TEMPLATE  /home/nms/MapServerData/data/temp1.html
IMAGEPATH /home/nms/MapServerData/img/
IMAGEURL  /img/
LOG /home/nms/MapServerData/logs/mapserver.log
  END

  LEGEND
KEYSIZE 12 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
STATUS ON
  END

  SCALEBAR
IMAGECOLOR 255 255 255
LABEL
  COLOR 0 0 0
  SIZE TINY
END
STYLE 1
SIZE 100 2
COLOR 0 0 0
UNITS METERS
INTERVALS 2
  # TRANSPARENT FALSE
STATUS ON
  END # Scalebar object ends



  # Start of LAYER DEFINITIONS -
LAYER # MODIS raster layer begins here
  NAME modis

  CLASS
 NAME 'I AM ICON'

#KEYIMAGE /home/nms/MapServerData/data/z.png #z.gif'
 SYMBOL '/home/nms/MapServerData/data/z.gif'
 #SYMBOL 'd'

  END

# DATA statesp020
  DATA DRDO.png
  STATUS   OFF
  TYPERASTER
  PROCESSING DITHER=YES
#  PROCESSING SCALE_1=409,1203
 # PROCESSING SCALE_2=203,296
 # PROCESSING SCALE_3=339,1004
#  PROCESSING SCALE=AUTO
#TILEINDEX DRDO.shp
#TILEITEM Location

TRANSPARENCY ALPHA

CONNECTIONTYPE OGR
CONNECTION DRDO.ovf



  PROCESSING   BANDS=1 2 3
#  OFFSITE 255 255 255







JOIN
NAME test
TABLE DRDO.dbf
FROM ipForwarding
TO LOCATION
TYPE ONE-TO-ONE
  END

METADATA
 t x
END




 # CLASSITEM [pixel]

# class using simple string comparison, equivelent to ([pixel])
  CLASS
 NAME CCC
 TEXT 
 EXPRESSION 0
 STYLE
   COLOR 0 0 0
 END
  END

# class using an EXPRESSION using only [pixel].
  CLASS
 NAME AAA
 EXPRESSION ([pixel] = x+64 AND [pixel]  128)
 STYLE
COLOR 255 0 0
 END
  END

# class using the red/green/blue values from the palette
  CLASS
  NAME near white

  EXPRESSION ([red]  200 AND [green]  200 AND [blue]  200)

  STYLE
# SYMBOL 1
 COLOR 0 255 0

  END
   END

  # Class using a regular expression to capture only pixel values ending
in 1
   CLASS
   NAME BBB
   EXPRESSION /*1/
   STYLE
  COLOR 0 0 255
   END
END








END # States polygon layer ends here
# End of LAYER DEFINITIONS ---

END # All map files must come to an end just as all other things must come
to...



html
head
titleMapServer Workshop/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
l!nk type=text/css rel=stylesheet /
/head

body bgcolor=#FF text=#00



!-- START OF MAPSERVER FORM --
form name=mapserv method=GET action=/cgi-bin/mapserv

!-- HIDDEN MAPSERVER CGI VARIABLES --

input type=hidden name=map value=[map]
input type=hidden name=imgext value=0.0 0.0 583.0 421.0
   input type=hidden name=layer value=modis
 input type=hidden name=imgxy value=290 210
input type=hidden name=mode value=browse
input type=hidden name=ICON value=modis,0
input type=hidden name=savemap value=true

!-- FORM SUBMIT BUTTON --
  div align=center

Re: [mapserver-users] OUTPUTFORMAT shapefiles instead of GML2/GML3 with WFS?

2008-12-02 Thread bartvde
Hi Maarten,

no unfortunately not, there used to be talk about an OGR output driver, so
that any OGR (write) format could be written, but this was never
implemented.

Geoserver does have this functionality.

Would be nice to have this in Mapserver though.

Best regards,
Bart

 Hi all,
 Is it possible to configure mapserver in such a way that it returns
 shapefiles instead of GML from a WFS GetFeature request?
 I would like to be able to output in GML2, GML3 and shapefiles... GML2
 and GML3 work fine.

 The problem is that my GML files get very big, up to 60 megabytes, and
 my client applications (like ArcGIS) do not handle that very well.

 Thank you,
 Maarten Plieger

 Maarten Plieger
 KNMI, RD Information and Observation Technology, De Bilt
 (t) +31 30 2206330

 ___
 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


Re: [mapserver-users] Postgis query

2008-12-02 Thread Carlos Ruiz
I guess the problem resides in the use of INNER and LEFT joins. Also, the order 
of the 
tables is important. The first tables specified in a query within the 
joins must be the ones 
which stablish the records agrupation or discrimination.

IC Carlos Ruiz
 

--- On Tue, 12/2/08, mark balman [EMAIL PROTECTED] wrote:

From: mark balman [EMAIL PROTECTED]
Subject: [mapserver-users] Postgis query
To: mapserver-users@lists.osgeo.org
Date: Tuesday, December 2, 2008, 4:37 AM

Hi All

I am trying to output a query from postgis using three tables and it
is not quite working.

First table is a quarter degree grid (spatial table)
Second table is a table with each grid cell id along with many species
id per grid cell
Third table is list of species

My query definition works well as the following (using two tables only)

select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid
from spcdensity
left join spcgrid on spcdensity.fid_1 = spcgrid.fid

This produces exactly what I want through mapserver, query a grid cell
and it returns a list of species within that grid cell

My problem is that I want to return a list of species names so my
query at present is defined as:

select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid
from spcgrid left join species on spcgrid.spcid = species.spcrecid
inner join spcdensity on spcdensity.fid_1 = spcgrid.fid

Although the query works when run in pgadmin, when I query a grid cell
I get a list of one species repeated. I am slightly confused as to
what I am missing here, can anyone provide me with some pointers?

Thanks in advance

Mark
___
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] Postgis query

2008-12-02 Thread mark balman
Hi All

I am trying to output a query from postgis using three tables and it
is not quite working.

First table is a quarter degree grid (spatial table)
Second table is a table with each grid cell id along with many species
id per grid cell
Third table is list of species

My query definition works well as the following (using two tables only)

select fid_1, the_geom AS the_geom, spcgrid.id as gid, spcid
from spcdensity
left join spcgrid on spcdensity.fid_1 = spcgrid.fid

This produces exactly what I want through mapserver, query a grid cell
and it returns a list of species within that grid cell

My problem is that I want to return a list of species names so my
query at present is defined as:

select spcid, spccommonname, fid_1, spcdensity.the_geom, spcid as gid
from spcgrid left join species on spcgrid.spcid = species.spcrecid
inner join spcdensity on spcdensity.fid_1 = spcgrid.fid

Although the query works when run in pgadmin, when I query a grid cell
I get a list of one species repeated. I am slightly confused as to
what I am missing here, can anyone provide me with some pointers?

Thanks in advance

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


Re: [mapserver-users] ICON Placing co-ordinates.....

2008-12-02 Thread Steve Lime
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message
[EMAIL PROTECTED], Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and placed an ICON on that...
 but the thing i can't get the icon placed at the required co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image
 SIZE 1900 1200
 EXTENT 0.0 0.0 1920.0 1200.0
 SHAPEPATH /home/nms/mapserverdemo/tif/data/
 IMAGETYPE JPEG
 
 WEB
 TEMPLATE /home/nms/mapserverdemo/tif/tif.html
 IMAGEPATH /home/nms/mapserverdemo/tif/
 IMAGEURL  /tif/
 END
 
 LAYER
 STATUS default
 TYPE RASTER
 DATA 1.tif
 END#END LAYER
 
 LAYER
 STATUS default
 TYPE RASTER
   /// size of the icon is 800,500
 DATA 2.gif
 END#END LAYER
 
 END#END MAPFILE
 
 
 how to I place an icon at x,y given position on the reference map... that
 is  1.tif 
 
 
 --
 Regards
 
 Vikas KM

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


Re: [mapserver-users] ICON Placing co-ordinates.....

2008-12-02 Thread Robert Sanson
I am having some trouble too. I want to pass in the x y as variables. Here is 
the section in my map file:
 
 LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS %gpsx% %gpsy% END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
Here is the section in my symbols.sym, file:
 
#21
SYMBOL
  NAME marker
  TYPE PIXMAP
  IMAGE marker.png
  #TRANSPARENT 8
END
 
and here is my mapserver URL:
 
http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200
 

Unfortunately I get an error: 
 
loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) 
 
How can I pass in the x y?
 
Many thanks,
 
Robert Sanson

 Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. 
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message
[EMAIL PROTECTED], Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and placed an ICON on that...
 but the thing i can't get the icon placed at the required co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image
 SIZE 1900 1200
 EXTENT 0.0 0.0 1920.0 1200.0
 SHAPEPATH /home/nms/mapserverdemo/tif/data/
 IMAGETYPE JPEG
 
 WEB
 TEMPLATE /home/nms/mapserverdemo/tif/tif.html
 IMAGEPATH /home/nms/mapserverdemo/tif/
 IMAGEURL  /tif/
 END
 
 LAYER
 STATUS default
 TYPE RASTER
 DATA 1.tif
 END#END LAYER
 
 LAYER
 STATUS default
 TYPE RASTER
   /// size of the icon is 800,500
 DATA 2.gif
 END#END LAYER
 
 END#END MAPFILE
 
 
 how to I place an icon at x,y given position on the reference map... that
 is  1.tif 
 
 
 --
 Regards
 
 Vikas KM

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

--
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
--


This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] ICON Placing co-ordinates.....

2008-12-02 Thread Fawcett, David
Robert, 
 
I thought that I remembered posting an example to fix a similar issue
and went back into the archives to find it.  Funny thing, it was a
thread that you started!  The solution was to create the feature on the
fly through a URL configuration.  
 
http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h
tml
 
If you can use the URL vars in the points obj, that would be nice and
clean...
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Sanson
Sent: Tuesday, December 02, 2008 2:36 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] ICON Placing co-ordinates.


I am having some trouble too. I want to pass in the x y as
variables. Here is the section in my map file:
 
 LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS %gpsx% %gpsy% END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
Here is the section in my symbols.sym, file:
 
#21
SYMBOL
  NAME marker
  TYPE PIXMAP
  IMAGE marker.png
  #TRANSPARENT 8
END
 
and here is my mapserver URL:
 

http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.9
9793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.1398
5MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+
1200

Unfortunately I get an error: 
 
loadFeaturePoints(): Unknown identifier. Parsing error near
(%gpsx%):(line 727) 
 
How can I pass in the x y?
 
Many thanks,
 
Robert Sanson

 Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20
a.m. 
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message
[EMAIL PROTECTED],
Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and placed an
ICON on that...
 but the thing i can't get the icon placed at the required
co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image
 SIZE 1900 1200
 EXTENT 0.0 0.0 1920.0 1200.0
 SHAPEPATH /home/nms/mapserverdemo/tif/data/
 IMAGETYPE JPEG
 
 WEB
 TEMPLATE /home/nms/mapserverdemo/tif/tif.html
 IMAGEPATH /home/nms/mapserverdemo/tif/
 IMAGEURL  /tif/
 END
 
 LAYER
 STATUS default
 TYPE RASTER
 DATA 1.tif
 END#END LAYER
 
 LAYER
 STATUS default
 TYPE RASTER
   /// size of the icon is 800,500
 DATA 2.gif
 END#END LAYER
 
 END#END MAPFILE
 
 
 how to I place an icon at x,y given position on the reference
map... that
 is  1.tif 
 
 
 --
 Regards
 
 Vikas KM

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





--
The contents of this email are confidential to AsureQuality. If you have
received this communication in error please notify the sender
immediately and delete the message and any attachments. The opinions
expressed in this email are not necessarily those of AsureQuality. This
message has been scanned for known viruses before delivery. AsureQuality
supports the Unsolicited Electronic Messages Act 2007. If you do not
wish to receive similar communications in future, please notify the
sender of this message.
--  



This message has been scanned for malware by SurfControl plc.
www.surfcontrol.com http://www.surfcontrol.com/ 

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


RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED

2008-12-02 Thread Robert Sanson
Thanks very much David. I was just about to post a message that I had solved 
it. Last time I was dealing with annotation. This time a GPS point reprojected 
into x,y. This is what works:
 
Map file:
 
LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map - using a default value
POINTS 1748411 5427899 END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
URL:
 
http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_parcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.58606MAXY=5440001.11023mapsize=1200+1200
 
regards,
 
Robert 
 Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01 a.m. 
Robert, 

I thought that I remembered posting an example to fix a similar issue and went 
back into the archives to find it.  Funny thing, it was a thread that you 
started!  The solution was to create the feature on the fly through a URL 
configuration.  

http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html

If you can use the URL vars in the points obj, that would be nice and clean...

David.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson
Sent: Tuesday, December 02, 2008 2:36 PM
To: mapserver-users@lists.osgeo.org 
Subject: Re: [mapserver-users] ICON Placing co-ordinates.


I am having some trouble too. I want to pass in the x y as variables. Here is 
the section in my map file:
 
 LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS %gpsx% %gpsy% END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
Here is the section in my symbols.sym, file:
 
#21
SYMBOL
  NAME marker
  TYPE PIXMAP
  IMAGE marker.png
  #TRANSPARENT 8
END
 
and here is my mapserver URL:
 
http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200
 

Unfortunately I get an error: 
 
loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) 
 
How can I pass in the x y?
 
Many thanks,
 
Robert Sanson

 Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. 
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message
[EMAIL PROTECTED], Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and placed an ICON on that...
 but the thing i can't get the icon placed at the required co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image
 SIZE 1900 1200
 EXTENT 0.0 0.0 1920.0 1200.0
 SHAPEPATH /home/nms/mapserverdemo/tif/data/
 IMAGETYPE JPEG
 
 WEB
 TEMPLATE /home/nms/mapserverdemo/tif/tif.html
 IMAGEPATH /home/nms/mapserverdemo/tif/
 IMAGEURL  /tif/
 END
 
 LAYER
 STATUS default
 TYPE RASTER
 DATA 1.tif
 END#END LAYER
 
 LAYER
 STATUS default
 TYPE RASTER
   /// size of the icon is 800,500
 DATA 2.gif
 END#END LAYER
 
 END#END MAPFILE
 
 
 how to I place an icon at x,y given position on the reference map... that
 is  1.tif 
 
 
 --
 Regards
 
 Vikas KM

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





--
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
--



This message has been scanned for malware by SurfControl plc. 
www.surfcontrol.com ( http://www.surfcontrol.com/ )


Click here ( 
https://www.mailcontrol.com/sr/IRYj+ENRsNjTndxI!oX7Ul1c07CFB6vt3ifm3envFewlh8ABdpMRbcn9WIii7DFNLEE2u8gV0TCh35PDdlVduQ==
 ) to report this email as spam.
--
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of 

RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED

2008-12-02 Thread Fawcett, David
If you set the layer status to ON or OFF, your 'gps_point' layer won't
show up on the map (at the default, unintended location) until you add
the layer name explicitly in your URL call.  
 
David.

-Original Message-
From: Robert Sanson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 02, 2008 3:06 PM
To: mapserver-users@lists.osgeo.org; David Fawcett
Subject: RE: [mapserver-users] ICON Placing
co-ordinates.SOLVED


Thanks very much David. I was just about to post a message that
I had solved it. Last time I was dealing with annotation. This time a
GPS point reprojected into x,y. This is what works:
 
Map file:
 
LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map - using a
default value
POINTS 1748411 5427899 END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
URL:
 

http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_p
arcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+54390
01.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.5860
6MAXY=5440001.11023mapsize=1200+1200

regards,
 
Robert 
 Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01
a.m. 

Robert, 

I thought that I remembered posting an example to fix a similar
issue and went back into the archives to find it.  Funny thing, it was a
thread that you started!  The solution was to create the feature on the
fly through a URL configuration.  


http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h
tml

If you can use the URL vars in the points obj, that would be
nice and clean...

David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Sanson
Sent: Tuesday, December 02, 2008 2:36 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] ICON Placing
co-ordinates.


I am having some trouble too. I want to pass in the x y
as variables. Here is the section in my map file:
 
 LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS %gpsx% %gpsy% END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
Here is the section in my symbols.sym, file:
 
#21
SYMBOL
  NAME marker
  TYPE PIXMAP
  IMAGE marker.png
  #TRANSPARENT 8
END
 
and here is my mapserver URL:
 

http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.9
9793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.1398
5MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+
1200

Unfortunately I get an error: 
 
loadFeaturePoints(): Unknown identifier. Parsing error
near (%gpsx%):(line 727) 
 
How can I pass in the x y?
 
Many thanks,
 
Robert Sanson

 Steve Lime [EMAIL PROTECTED] 3/12/2008
6:20 a.m. 
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message

[EMAIL PROTECTED], Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and
placed an ICON on that...
 but the thing i can't get the icon placed at the
required co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image

RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED

2008-12-02 Thread Robert Sanson
Thanks - I hadn't spotted that. Mapfile section now has STATUS OFF.
 
Robert

 Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:12 a.m. 
If you set the layer status to ON or OFF, your 'gps_point' layer won't show up 
on the map (at the default, unintended location) until you add the layer name 
explicitly in your URL call.  

David.


-Original Message-
From: Robert Sanson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 02, 2008 3:06 PM
To: mapserver-users@lists.osgeo.org; David Fawcett
Subject: RE: [mapserver-users] ICON Placing co-ordinates.SOLVED


Thanks very much David. I was just about to post a message that I had solved 
it. Last time I was dealing with annotation. This time a GPS point reprojected 
into x,y. This is what works:
 
Map file:
 
LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map - using a default value
POINTS 1748411 5427899 END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
URL:
 
http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_parcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.58606MAXY=5440001.11023mapsize=1200+1200
 
regards,
 
Robert 
 Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01 a.m. 
Robert, 

I thought that I remembered posting an example to fix a similar issue and went 
back into the archives to find it.  Funny thing, it was a thread that you 
started!  The solution was to create the feature on the fly through a URL 
configuration.  

http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html

If you can use the URL vars in the points obj, that would be nice and clean...

David.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson
Sent: Tuesday, December 02, 2008 2:36 PM
To: mapserver-users@lists.osgeo.org 
Subject: Re: [mapserver-users] ICON Placing co-ordinates.


I am having some trouble too. I want to pass in the x y as variables. Here is 
the section in my map file:
 
 LAYER
  NAME 'gps_point'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS %gpsx% %gpsy% END
  END
  CLASS
STYLE
  SYMBOL marker
END
  END
 END
 
Here is the section in my symbols.sym, file:
 
#21
SYMBOL
  NAME marker
  TYPE PIXMAP
  IMAGE marker.png
  #TRANSPARENT 8
END
 
and here is my mapserver URL:
 
http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200
 

Unfortunately I get an error: 
 
loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) 
 
How can I pass in the x y?
 
Many thanks,
 
Robert Sanson

 Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. 
You'd use the icon as a symbol like so:

LAYER
  NAME 'TheIcon'
  STATUS DEFAULT
  TYPE POINT
  FEATURE
# This is where you specify position on the map
POINTS x y END
  END
  CLASS
STYLE
  SYMBOL 2.gif
END
  END
END

Steve

 On 12/1/2008 at 11:08 PM, in message
[EMAIL PROTECTED], Vikas KM
[EMAIL PROTECTED] wrote:
 Hi.. i have loaded a tiff image on mapserver and placed an ICON on that...
 but the thing i can't get the icon placed at the required co-ordinates its
 taking the extent as its reference..?
 
 
 my Map File
 ---
 MAP
 
 NAME Tiff Image
 SIZE 1900 1200
 EXTENT 0.0 0.0 1920.0 1200.0
 SHAPEPATH /home/nms/mapserverdemo/tif/data/
 IMAGETYPE JPEG
 
 WEB
 TEMPLATE /home/nms/mapserverdemo/tif/tif.html
 IMAGEPATH /home/nms/mapserverdemo/tif/
 IMAGEURL  /tif/
 END
 
 LAYER
 STATUS default
 TYPE RASTER
 DATA 1.tif
 END#END LAYER
 
 LAYER
 STATUS default
 TYPE RASTER
   /// size of the icon is 800,500
 DATA 2.gif
 END#END LAYER
 
 END#END MAPFILE
 
 
 how to I place an icon at x,y given position on the reference map... that
 is  1.tif 
 
 
 --
 Regards
 
 Vikas KM

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





--
The contents of this email are confidential to AsureQuality. If you have 
received this communication in error please notify the sender immediately and 
delete the message and any attachments. The opinions expressed in this email 
are not necessarily those of AsureQuality. This message has been scanned for 
known viruses before delivery. AsureQuality supports the Unsolicited Electronic 
Messages Act 2007. If you do not wish to receive similar communications in 
future, please notify the sender of this message.
--



This message has been scanned for malware by