Re: Re: [mapserver-users] ShapeObj from WKT help please

2009-10-27 Thread DeDuikertjes
The opensource OpenJUMP GIS can read your WKT format and write shp (And 
what's more, it's a very nice GIS to do spatial processing)


Marco

Josh Hevenor schreef:

http://mapserver.org/mapscript/php/index.html#shapeobj-class

The second constructor will build this for you...

ShapeObj ms_shapeObjFromWkt(string wkt)

Or if you have a spreadsheet you could look at adding the whole thing to your mapfile, or converting it to shapefile (etc.) with ogr2ogr. 


http://mapserver.org/input/vector/VirtualSpatialData.html?highlight=ovf


Josh



touny wrote:
  
POLYGON((x y,x y,x y,x y)) 

Can You help me, where can I display/export data in this format into SHP. 
I have recieved from my boss data in XLS with this geometry.. but I dont
know how to work with it. 
Does anyone know? 

Anthony 
  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.423 / Virus Database: 270.14.32/2460 - Release Date: 10/26/09 08:10:00


  



  

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


Re: Re: [mapserver-users] ShapeObj from WKT help please

2009-10-27 Thread touny

hi Marco, 
Thank YOu for your help. I have allready installed openJump GIS, but Now I
dont know how can I add data into it. The only data I have is storwed in MS
excel. it is tab vith lots of atributes, and wkt geometry is in one column.
any idea?

Antony


deduikertjes wrote:
 
 The opensource OpenJUMP GIS can read your WKT format and write shp (And 
 what's more, it's a very nice GIS to do spatial processing)
 
 Marco
 
 Josh Hevenor schreef:
 http://mapserver.org/mapscript/php/index.html#shapeobj-class

 The second constructor will build this for you...

 ShapeObj ms_shapeObjFromWkt(string wkt)

 Or if you have a spreadsheet you could look at adding the whole thing to
 your mapfile, or converting it to shapefile (etc.) with ogr2ogr. 

 http://mapserver.org/input/vector/VirtualSpatialData.html?highlight=ovf


 Josh



 touny wrote:
   
 POLYGON((x y,x y,x y,x y)) 

 Can You help me, where can I display/export data in this format into
 SHP. 
 I have recieved from my boss data in XLS with this geometry.. but I dont
 know how to work with it. 
 Does anyone know? 

 Anthony 
   
 


 No virus found in this incoming message.
 Checked by AVG - www.avg.com 
 Version: 8.5.423 / Virus Database: 270.14.32/2460 - Release Date:
 10/26/09 08:10:00

   
 

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

-- 
View this message in context: 
http://n2.nabble.com/ShapeObj-from-WKT-help-please-tp3796290p3897795.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: Re: [mapserver-users] ShapeObj from WKT help please

2009-10-27 Thread Rahkonen Jukka
Hi,

From OpenJUMP Edit menu select Add new features from WKT and paste your WKT 
into the window.  But I fear that's not all you want to do but you would 
probably like to get the attributes as well. I am sure that it would be 
possible to make an OpenJUMP plugin or script for that but it would mean some 
programming. Write to OpenJUMP developers mailing list and see if somebody 
would like to do the WKT+attribute reader for you. A little bit of funding 
would speed up things dramatically, I guess.
 
-Jukka Rahkonen-

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta touny
 Lähetetty: 27. lokakuuta 2009 11:15
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: Re: Re: [mapserver-users] ShapeObj from WKT help please
 
 
 hi Marco,
 Thank YOu for your help. I have allready installed openJump 
 GIS, but Now I dont know how can I add data into it. The only 
 data I have is storwed in MS excel. it is tab vith lots of 
 atributes, and wkt geometry is in one column.
 any idea?
 
 Antony
 
 
 deduikertjes wrote:
  
  The opensource OpenJUMP GIS can read your WKT format and write shp 
  (And what's more, it's a very nice GIS to do spatial processing)
  
  Marco
  
  Josh Hevenor schreef:
  http://mapserver.org/mapscript/php/index.html#shapeobj-class
 
  The second constructor will build this for you...
 
  ShapeObj ms_shapeObjFromWkt(string wkt)
 
  Or if you have a spreadsheet you could look at adding the 
 whole thing 
  to your mapfile, or converting it to shapefile (etc.) with ogr2ogr.
 
  
 http://mapserver.org/input/vector/VirtualSpatialData.html?highlight=o
  vf
 
 
  Josh
 
 
 
  touny wrote:

  POLYGON((x y,x y,x y,x y))
 
  Can You help me, where can I display/export data in this 
 format into 
  SHP.
  I have recieved from my boss data in XLS with this 
 geometry.. but I 
  dont know how to work with it.
  Does anyone know? 
 
  Anthony

  
 
  
 
 
  No virus found in this incoming message.
  Checked by AVG - www.avg.com
  Version: 8.5.423 / Virus Database: 270.14.32/2460 - Release Date:
  10/26/09 08:10:00
 

  
 

  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
  
 
 --
 View this message in context: 
 http://n2.nabble.com/ShapeObj-from-WKT-help-please-tp3796290p3
 897795.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
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] AGG Rendering problem

2009-10-27 Thread Tony Baylis
Thanks to Rahkonon and and Paul for their responses but neither solved 
the problem.  I eventually moved a map from my existing working 
mapserver/agg instance to the rebuilt one and after doing the required 
bits to point it at the right data IT also did not work in AGG rendering 
mode.


I then removed all layers and started adding them back to the map one by 
one to see if it was a problem with the layer setup somewhere...sure 
enough one of the layers was referencing a symbol in the symbolset that 
AGG obviously dislikes.  Once I removed the 'SIZE' criteria from the 
'STYLE' AGG rendering worked.  Since putting the original map together I 
have created another (better) symbol for this object and using this all 
is working well.


So there you have it...a symbol working with standard rendering but not 
with AGG, the result being the application seemed to lose connection.


Tony

Tony Baylis
Spatial Information Specialist
Resource and Exploration Mapping
Suite 8, 290 Boundary St
Spring Hill QLD 4000
Ph3832 1600
Fax   3832 1603
Mob   0419 759 131
Email tony.bay...@resexmap.com.au
www   resexmap.com.au   



Rahkonen Jukka wrote:

Hi,

Try adding MIMETYPE to outputformat. I guess that without it Mapserver is using default for jpeg requests. If you use, while testing, your own mimetype like 
MIMETYPE image/jpeg2  and in request use FORMAT=image/jpeg2 you should be able to compare what happens with image/jpeg and image/jpeg2.  If jpeg2 works you know that Mapserver if using your own imageformat because otherwise image/jpeg2 would not be recognised. Then rename AGG MIMETYPE to image/jpeg and see if the output now seems to be generated by AGG.


-Jukka Rahkonen-

  

-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Tony Baylis

Lähetetty: 26. lokakuuta 2009 15:15
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] AGG Rendering problem

Hi all,

This is my first post in a long time so be gentle...My 
problem is I have finally updated an old server to use 
MapServer 5.4.2 and want to use AGG rendering  I have done 
this without a problem on another server earlier in the year 
but for some reason whenever I add the 'OUTPUTFORMAT' 
section and remove 'IMAGETYPE' I get a Connection Lost type 
error from the browser.  Replace 'IMAGETYPE' and the 
connection is restored but the map is definitely not anti-aliased.


Below is the relevant section from my mapfile and below that 
the output from a ./mapserv -v.  Both outputs match the 
server that works.


#IMAGETYPE JPEG
OUTPUTFORMAT
  NAME AGG_JPEG
  DRIVER AGG/JPEG
  IMAGEMODE RGB
END

./mapserv -vMapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT 
SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=TIFF

INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Here's hoping you can help.

Tony

--
Tony Baylis
Spatial Information Specialist
Resource and Exploration Mapping
Suite 8, 290 Boundary St
Spring Hill QLD 4000
Ph3832 1600
Fax   3832 1603
Mob   0419 759 131
Email tony.bay...@resexmap.com.au
www   resexmap.com.au   

___
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] AGG Rendering problem

2009-10-27 Thread Stephen Woodbridge

Tony,

This sounds like a nasty bug because it is very subtle. Can you pleas 
create a ticket with the symbol and a mapfile that will reproduce this 
problem.


Thanks,
  -Steve W

Tony Baylis wrote:
Thanks to Rahkonon and and Paul for their responses but neither solved 
the problem.  I eventually moved a map from my existing working 
mapserver/agg instance to the rebuilt one and after doing the required 
bits to point it at the right data IT also did not work in AGG rendering 
mode.


I then removed all layers and started adding them back to the map one by 
one to see if it was a problem with the layer setup somewhere...sure 
enough one of the layers was referencing a symbol in the symbolset that 
AGG obviously dislikes.  Once I removed the 'SIZE' criteria from the 
'STYLE' AGG rendering worked.  Since putting the original map together I 
have created another (better) symbol for this object and using this all 
is working well.


So there you have it...a symbol working with standard rendering but not 
with AGG, the result being the application seemed to lose connection.


Tony

Tony Baylis
Spatial Information Specialist
Resource and Exploration Mapping
Suite 8, 290 Boundary St
Spring Hill QLD 4000
Ph3832 1600
Fax   3832 1603
Mob   0419 759 131
Email tony.bay...@resexmap.com.au
www   resexmap.com.au   




Rahkonen Jukka wrote:

Hi,

Try adding MIMETYPE to outputformat. I guess that without it Mapserver 
is using default for jpeg requests. If you use, while testing, your 
own mimetype like MIMETYPE image/jpeg2  and in request use 
FORMAT=image/jpeg2 you should be able to compare what happens with 
image/jpeg and image/jpeg2.  If jpeg2 works you know that Mapserver if 
using your own imageformat because otherwise image/jpeg2 would not be 
recognised. Then rename AGG MIMETYPE to image/jpeg and see if the 
output now seems to be generated by AGG.


-Jukka Rahkonen-

 

-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Tony Baylis

Lähetetty: 26. lokakuuta 2009 15:15
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] AGG Rendering problem

Hi all,

This is my first post in a long time so be gentle...My problem is I 
have finally updated an old server to use MapServer 5.4.2 and want to 
use AGG rendering  I have done this without a problem on another 
server earlier in the year but for some reason whenever I add the 
'OUTPUTFORMAT' section and remove 'IMAGETYPE' I get a Connection Lost 
type error from the browser.  Replace 'IMAGETYPE' and the connection 
is restored but the map is definitely not anti-aliased.


Below is the relevant section from my mapfile and below that the 
output from a ./mapserv -v.  Both outputs match the server that works.


#IMAGETYPE JPEG
OUTPUTFORMAT
  NAME AGG_JPEG
  DRIVER AGG/JPEG
  IMAGEMODE RGB
END

./mapserv -vMapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI 
SUPPORTS=GEOS INPUT=TIFF

INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

Here's hoping you can help.

Tony

--
Tony Baylis
Spatial Information Specialist
Resource and Exploration Mapping
Suite 8, 290 Boundary St
Spring Hill QLD 4000
Ph3832 1600
Fax   3832 1603
Mob   0419 759 131
Email tony.bay...@resexmap.com.au
www   resexmap.com.au   


___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] FW: Character symbology to follow line direction

2009-10-27 Thread Todd Harris
Hello list,

 

A little problem, I hope someone can help.

 

Using Mapserver 5.2 - I am attempting to use a character symbol: | as
a STYLE for the outline of a polygon class. However, I cannot get the
symbol to remain perpendicular to the polygon boundaries ie: the symbol
is always vertical. Can this be done or should I be using a vector or
point symbol somehow?

 

Symbol file:

SYMBOL

  NAME rawmat

  TYPE truetype

  FONT arial

  CHARACTER |

  GAP 20 # distance between symbols

END

 

Mapfile

CLASS

NAME 'Extraction Areas'

STYLE

OUTLINECOLOR 0 0 0

WIDTH 1

ANTIALIAS TRUE

END #STYLE

STYLE

SYMBOL 'rawmat'

OUTLINECOLOR 0 0 0

SIZE 5

ANTIALIAS TRUE

END #STYLE

END #CLASS

 

Regards

Todd

 


This e-mail and any files transmitted with it are intended only for the use of 
the addressee(s). It may contain information that is confidential and 
privileged, in which case neither is intended to be waived or lost by mistaken 
delivery to you. If you are not an intended recipient, any use, interference 
with, disclosure, distribution or copying of this material is unauthorised and 
prohibited. If you receive this e-mail in error, please notify the sender by 
return e-mail and delete the message and any attachments from your system. 
Unless specifically indicated, this e-mail does not constitute formal advice or 
commitment by the sender or the Western Australian Land Information Authority 
(Landgate).  Information in this message not relating to the official business 
of Landgate shall be understood as neither given nor endorsed by it. It is your 
responsibility to check any attachments for viruses and defects before opening 
or sending them on.  Landgate’s liability is limited to re-supplying affected 
attachments. 



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


[mapserver-users] Mapserver error: Web application error. Missing magic string, ...

2009-10-27 Thread pcreso
I have an html template that worked fine with an earlier version of Mapserver, 
but not with v5.4.1

The error mesage is: 

Content-type: text/html isValidTemplate(): Web application error. Missing magic 
string, /srv/www/htdocs/mapdata/linz_topo/linz_250_template.html doesn't look 
like a MapServer template.

I can't find any docs to help identify what the error is  how to fix it.

Any advice appreciated

  Brent Wood


The (short) html template I was using is:

HTML
 HEAD
   TITLE Mapserver LINZ250 prototype/TITLE
 HEAD
 CENTER
   H2 Mapserver demonstration of LINZ250 data/H2
   FORM method=get action=/cgi-bin/mapserv
 TABLE border=0 cellspacing=0 cellpadding=4
 TR
 TD
 BU

 INPUT name=img type=image SRC=[img] width=600 height=480 border=0
 ALT=Map ImageBR
 INPUT type=hidden name=map 
value=/srv/www/htdocs/linz_topo/linz250.map
 INPUT type=hidden name=imgxy value=[center_x] [center_y] 
 INPUT type=hidden name=imgextvalue=[mapext] 
 INPUT type=hidden name=map   value=[map] 
 INPUT type=hidden name=savequery value=true 
 INPUT type=hidden name=mapextvalue=shapes 
 INPUT type=submit value=Redraw/Update

 Zoom In   INPUT type=radio name=zoomdir value=1 [zoomdir_1_check]
 nbsp;nbsp;nbsp;nbsp;
 Re-center INPUT type=radio name=zoomdir value=0 [zoomdir_0_check]
 nbsp;nbsp;nbsp;nbsp;
 Zoom Out  INPUT type=radio name=zoomdir value=-1 [zoomdir_-1_check]
 nbsp;nbsp;nbsp;nbsp;
 Zoom size INPUT type=text name=zoomsize size=3 value=[zoomsize]

 /TD
 /TR
   /TABLE
   /FORM

 /CENTER
 /BODY
/HTML

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


Re: [mapserver-users] FW: Character symbology to follow line direction

2009-10-27 Thread Bob Basques

You can do this within a LABEL block, see here for more info:

http://mapserver.org/mapfile/label.html?highlight=follow%20auto

HINT: use ANGLE auto or ANGLE follow

bobb



Todd Harris wrote:


Hello list,

 


A little problem, I hope someone can help.

 

Using Mapserver 5.2 - I am attempting to use a character symbol: | 
as a STYLE for the outline of a polygon class. However, I cannot get 
the symbol to remain perpendicular to the polygon boundaries ie: the 
symbol is always vertical. Can this be done or should I be using a 
vector or point symbol somehow?


 


/Symbol file:/

SYMBOL

  NAME rawmat

  TYPE truetype

  FONT arial

  CHARACTER |

  GAP 20 # distance between symbols

END

 


/Mapfile/

CLASS

NAME 'Extraction Areas'

STYLE

OUTLINECOLOR 0 0 0

WIDTH 1

ANTIALIAS TRUE

END #STYLE

STYLE

SYMBOL 'rawmat'

OUTLINECOLOR 0 0 0

SIZE 5

ANTIALIAS TRUE

END #STYLE

END #CLASS

 


Regards

Todd

 

This e-mail and any files transmitted with it are intended only for 
the use of the addressee(s). It may contain information that is 
confidential and privileged, in which case neither is intended to be 
waived or lost by mistaken delivery to you. If you are not an intended 
recipient, any use, interference with, disclosure, distribution or 
copying of this material is unauthorised and prohibited. If you 
receive this e-mail in error, please notify the sender by return 
e-mail and delete the message and any attachments from your system. 
Unless specifically indicated, this e-mail does not constitute formal 
advice or commitment by the sender or the Western Australian Land 
Information Authority (Landgate). Information in this message not 
relating to the official business of Landgate shall be understood as 
neither given nor endorsed by it. It is your responsibility to check 
any attachments for viruses and defects before opening or sending them 
on. Landgate's liability is limited to re-supplying affected attachments.


 

 

 




___
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] FW: Character symbology to follow line direction

2009-10-27 Thread Todd Harris
Thanks Bobb, but I believe this will only work for LINE layers (linear
features)?

 

I need the symbol to follow the boundary of a polygon, hence the reason
for creating the symbol.

 

Todd

 

 

-Original Message-
From: Bob Basques [mailto:bo...@gritechnologies.com] 
Sent: Wednesday, 28 October 2009 7:36 AM
To: Todd Harris
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] FW: Character symbology to follow line
direction

 

You can do this within a LABEL block, see here for more info:

http://mapserver.org/mapfile/label.html?highlight=follow%20auto

HINT: use ANGLE auto or ANGLE follow

bobb



Todd Harris wrote: 

Hello list,

 

A little problem, I hope someone can help.

 

Using Mapserver 5.2 - I am attempting to use a character symbol: | as
a STYLE for the outline of a polygon class. However, I cannot get the
symbol to remain perpendicular to the polygon boundaries ie: the symbol
is always vertical. Can this be done or should I be using a vector or
point symbol somehow?

 

Symbol file:

SYMBOL

  NAME rawmat

  TYPE truetype

  FONT arial

  CHARACTER |

  GAP 20 # distance between symbols

END

 

Mapfile

CLASS

NAME 'Extraction Areas'

STYLE

OUTLINECOLOR 0 0 0

WIDTH 1

ANTIALIAS TRUE

END #STYLE

STYLE

SYMBOL 'rawmat'

OUTLINECOLOR 0 0 0

SIZE 5

ANTIALIAS TRUE

END #STYLE

END #CLASS

 

Regards

Todd

 

This e-mail and any files transmitted with it are intended only for the
use of the addressee(s). It may contain information that is confidential
and privileged, in which case neither is intended to be waived or lost
by mistaken delivery to you. If you are not an intended recipient, any
use, interference with, disclosure, distribution or copying of this
material is unauthorised and prohibited. If you receive this e-mail in
error, please notify the sender by return e-mail and delete the message
and any attachments from your system. Unless specifically indicated,
this e-mail does not constitute formal advice or commitment by the
sender or the Western Australian Land Information Authority (Landgate).
Information in this message not relating to the official business of
Landgate shall be understood as neither given nor endorsed by it. It is
your responsibility to check any attachments for viruses and defects
before opening or sending them on. Landgate's liability is limited to
re-supplying affected attachments. 

 

 

 

 







 
___
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] FW: Character symbology to follow line direction

2009-10-27 Thread Stephen Woodbridge

Todd,

You have to set the gap to a negative number to keep the symbol 
perpendicular to the edge.


GAP -20

-Steve W

Todd Harris wrote:



Hello list,

 


A little problem, I hope someone can help.

 

Using Mapserver 5.2 - I am attempting to use a character symbol: “|” as 
a STYLE for the outline of a polygon class. However, I cannot get the 
symbol to remain perpendicular to the polygon boundaries ie: the symbol 
is always vertical. Can this be done or should I be using a vector or 
point symbol somehow?


 


/ Symbol file: /

SYMBOL

  NAME rawmat

  TYPE truetype

  FONT arial

  CHARACTER |

  GAP 20 # distance between symbols

END

 


/ Mapfile /

CLASS

NAME 'Extraction Areas'

STYLE

OUTLINECOLOR 0 0 0

WIDTH 1

ANTIALIAS TRUE

END #STYLE

STYLE

SYMBOL 'rawmat'

OUTLINECOLOR 0 0 0

SIZE 5

ANTIALIAS TRUE

END #STYLE

END #CLASS

 


Regards

Todd

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


RE: [mapserver-users] FW: Character symbology to follow line direction

2009-10-27 Thread Todd Harris
Ah...that's it, thanks Steve!!

Todd

-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Sent: Wednesday, 28 October 2009 11:41 AM
To: Todd Harris
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] FW: Character symbology to follow line
direction

Todd,

You have to set the gap to a negative number to keep the symbol 
perpendicular to the edge.

GAP -20

-Steve W

Todd Harris wrote:
 
 
 Hello list,
 
  
 
 A little problem, I hope someone can help.
 
  
 
 Using Mapserver 5.2 - I am attempting to use a character symbol: |
as 
 a STYLE for the outline of a polygon class. However, I cannot get the 
 symbol to remain perpendicular to the polygon boundaries ie: the
symbol 
 is always vertical. Can this be done or should I be using a vector or 
 point symbol somehow?
 
  
 
 / Symbol file: /
 
 SYMBOL
 
   NAME rawmat
 
   TYPE truetype
 
   FONT arial
 
   CHARACTER |
 
   GAP 20 # distance between symbols
 
 END
 
  
 
 / Mapfile /
 
 CLASS
 
 NAME 'Extraction Areas'
 
 STYLE
 
 OUTLINECOLOR 0 0 0
 
 WIDTH 1
 
 ANTIALIAS TRUE
 
 END #STYLE
 
 STYLE
 
 SYMBOL 'rawmat'
 
 OUTLINECOLOR 0 0 0
 
 SIZE 5
 
 ANTIALIAS TRUE
 
 END #STYLE
 
 END #CLASS
 
  
 
 Regards
 
 Todd

This e-mail and any files transmitted with it are intended only for the use of 
the addressee(s). It may contain information that is confidential and 
privileged, in which case neither is intended to be waived or lost by mistaken 
delivery to you. If you are not an intended recipient, any use, interference 
with, disclosure, distribution or copying of this material is unauthorised and 
prohibited. If you receive this e-mail in error, please notify the sender by 
return e-mail and delete the message and any attachments from your system. 
Unless specifically indicated, this e-mail does not constitute formal advice or 
commitment by the sender or the Western Australian Land Information Authority 
(Landgate).  Information in this message not relating to the official business 
of Landgate shall be understood as neither given nor endorsed by it. It is your 
responsibility to check any attachments for viruses and defects before opening 
or sending them on.  Landgate’s liability is limited to re-supplying affected 
attachments. 



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


Re: [mapserver-users] Mapserver error: Web application error. Missing magic string, ...

2009-10-27 Thread P Kishor
On Tue, Oct 27, 2009 at 6:24 PM,  pcr...@pcreso.com wrote:
 I have an html template that worked fine with an earlier version of 
 Mapserver, but not with v5.4.1

 The error mesage is:

 Content-type: text/html isValidTemplate(): Web application error. Missing 
 magic string, /srv/www/htdocs/mapdata/linz_topo/linz_250_template.html 
 doesn't look like a MapServer template.

 I can't find any docs to help identify what the error is  how to fix it.

 Any advice appreciated

http://www.mapserver.org/development/rfc/ms-rfc-56.html?highlight=magic



  Brent Wood


 The (short) html template I was using is:

 HTML
  HEAD
   TITLE Mapserver LINZ250 prototype/TITLE
  HEAD
  CENTER
   H2 Mapserver demonstration of LINZ250 data/H2
   FORM method=get action=/cgi-bin/mapserv
     TABLE border=0 cellspacing=0 cellpadding=4
     TR
     TD
     BU

     INPUT name=img type=image SRC=[img] width=600 height=480 border=0
     ALT=Map ImageBR
     INPUT type=hidden name=map 
 value=/srv/www/htdocs/linz_topo/linz250.map
     INPUT type=hidden name=imgxy     value=[center_x] [center_y] 
     INPUT type=hidden name=imgext    value=[mapext] 
     INPUT type=hidden name=map       value=[map] 
     INPUT type=hidden name=savequery value=true 
     INPUT type=hidden name=mapext    value=shapes 
     INPUT type=submit value=Redraw/Update

     Zoom In   INPUT type=radio name=zoomdir value=1 [zoomdir_1_check]
     nbsp;nbsp;nbsp;nbsp;
     Re-center INPUT type=radio name=zoomdir value=0 [zoomdir_0_check]
     nbsp;nbsp;nbsp;nbsp;
     Zoom Out  INPUT type=radio name=zoomdir value=-1 [zoomdir_-1_check]
     nbsp;nbsp;nbsp;nbsp;
     Zoom size INPUT type=text name=zoomsize size=3 value=[zoomsize]

     /TD
     /TR
   /TABLE
   /FORM

  /CENTER
  /BODY
 /HTML

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




-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
---
Assertions are politics; backing up assertions with evidence is science
===
Sent from Madison, WI, United States
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapserver error: Web application error. Missingmagic string, ...

2009-10-27 Thread pcreso
Thanks guys...

That was most certainly it :-)

Cheers,

  Brent

--- On Wed, 10/28/09, Bob Basques bob.basq...@ci.stpaul.mn.us wrote:

 From: Bob Basques bob.basq...@ci.stpaul.mn.us
 Subject: Re: [mapserver-users] Mapserver error: Web application error. 
 Missingmagic string, ...
 To: pcr...@pcreso.com
 Date: Wednesday, October 28, 2009, 12:39 PM
 Brent,
 
 This should help:
 
 http://mapserver.org/development/rfc/ms-rfc-56.html?highlight=magic%20string
 
 bobb
 
 
 
  pcr...@pcreso.com
 10/27/09 6:25 PM 
 I have an html template that worked fine with an earlier
 version of Mapserver, but not with v5.4.1
 
 The error mesage is: 
 
 Content-type: text/html isValidTemplate(): Web application
 error. Missing magic string,
 /srv/www/htdocs/mapdata/linz_topo/linz_250_template.html
 doesn't look like a MapServer template.
 
 I can't find any docs to help identify what the error is
  how to fix it.
 
 Any advice appreciated
 
   Brent Wood
 
 
 The (short) html template I was using is:
 
 HTML
  HEAD
    TITLE Mapserver LINZ250
 prototype/TITLE
  HEAD
  CENTER
    H2 Mapserver demonstration of
 LINZ250 data/H2
    FORM method=get
 action=/cgi-bin/mapserv
      TABLE border=0
 cellspacing=0 cellpadding=4
      TR
      TD
      BU
 
      INPUT name=img type=image
 SRC=[img] width=600 height=480 border=0
      ALT=Map ImageBR
      INPUT type=hidden name=map
 value=/srv/www/htdocs/linz_topo/linz250.map
      INPUT type=hidden
 name=imgxy     value=[center_x]
 [center_y] 
      INPUT type=hidden
 name=imgext    value=[mapext] 
      INPUT type=hidden
 name=map       value=[map]
 
      INPUT type=hidden
 name=savequery value=true 
      INPUT type=hidden
 name=mapext    value=shapes 
      INPUT type=submit
 value=Redraw/Update
 
      Zoom In   INPUT
 type=radio name=zoomdir value=1 [zoomdir_1_check]
          
      Re-center INPUT type=radio
 name=zoomdir value=0 [zoomdir_0_check]
          
      Zoom Out  INPUT
 type=radio name=zoomdir value=-1 [zoomdir_-1_check]
          
      Zoom size INPUT type=text
 name=zoomsize size=3 value=[zoomsize]
 
      /TD
      /TR
    /TABLE
    /FORM
 
  /CENTER
  /BODY
 /HTML
 
 ___
 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