Re: [mapserver-users] Premature end of script headers: mapserv

2010-01-09 Thread Shaz N
Hi..

I added the new shapefiles to PostGIS using shp2pgsql etc and it was
successful. After that, in my mapfile, I included a new layer for each of
these shapefiles. What I copy-pasted in my mail was the layer that I added
in my mapfile.

I have included WMS metadata in the beginning of the mapfile:
WEB
IMAGEURL /tmp/
IMAGEPATH /tmp/ms_tmp/
  METADATA
wms_title MOL  ##required
wms_onlineresource .   ##required
wms_srs   EPSG:2060  ##recommended
 END

I was getting a good output using WMS request:
http://../cgi-bin/mapserv?map=/data//tmapSERVICE=WMSVERSION=1.1.1REQUEST=getmaplayers=molSTYLES=SRS=epsg:2060FORMAT=image/jpegWIDTH=600HEIGHT=500BBOX=332271.136,2800048.4565,335043.0915,2803465.287

As I kept adding new layers, I suddenly started getting an Internal server
error on my browser. When I checked the error log, it read: Premature end of
script headers: mapserv.
All the new layers were similar to each other, with only different NAME
and DATA. But the internal server error would just not go unless I reduced
the total number of layers in my mapfile.

shp2img works fine and I get an output. What doesnt work is the WMS. Works
when I reduce the total number of layers in my mapfile. Is there a maximum
number of layers or classes that we can use? I use version 5.0

After reading the latest reply, I added WMS metadata to the layers also,
but WMS still doesnt work.

Please help.
Thanku v much..

On Sun, Jan 10, 2010 at 2:56 AM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:

 Hi,

 You talk about adding a shapefile but the layer definitions below are for
 PostGIS layer. Have you copy-pasted another layer or what? The main problem
 could be that the layer in your mail is missing entries for WMS metadata.
 Try reading and following the document at
 http://mapserver.org/ogc/wms_server.html.

 -Jukka Rahkonen-

 Shaz N wrote:

  Hi users..



  I have been adding a few new shapefiles to my existing map file. I am a
 facing a new problem since last evening. I added 9 shapefiles successfully
 and could view the map in the browser. While adding the 10th shapefile I
 got
 an error. All the new shapefiles are simple point shapefiles.

 Example: LAYER

NAME 'sc'

CONNECTIONTYPE postgis

CONNECTION  

DATA the_geom from sc

TEMPLATE dummy.html

DEBUG ON

TYPE POINT

MAXSCALE 1

MINSCALE 2000

STATUS DEFAULT

LABELITEM name

LABELCACHE ON



CLASS

  MAXSCALE 1

  MINSCALE 2000



STYLE

  ANTIALIAS TRUE

  SYMBOL square

  SIZE 9

  COLOR 153 0 102

  OUTLINECOLOR 255 255 255

END #end style



LABEL

  ANGLE auto

  COLOR 153 0 102

  ANTIALIAS TRUE

  FONT vera_sans-bold

  TYPE TRUETYPE

  SIZE 9

  POSITION auto

  PARTIALS false

  BUFFER 1

END #end label

END#end class

 END #end layer



 This is the error from the error log:



 Premature end of script headers: mapserv



 And this is what I got using WMS get map request on the browser:

 Internal Server Error

 The server encountered an internal error or misconfiguration and was unable
 to complete your request.

 Please contact the server administrator, [no address given] and inform them
 of the time the error occurred, and anything you might have done that may
 have caused the error.

 More information about this error may be available in the server error log.



 I checked the shapefile and map file for errors and couldn't find any. And
 mapserver has been installed correctly and has been working well. The
 problem only arises when I add the extra layer. It works well with all the
 existing ones.

 The map file works on my PHP map display page but when I try it using WMS
 it
 does not work.



 I use MapServer 5.0.



 Any help would be greatly appreciated.

 Thanks in advance.


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


Re: [mapserver-users] about label in mapfile

2010-01-08 Thread Shaz N
Hi..

Which version of MapServer do u use?

On Wed, Jan 6, 2010 at 1:32 PM, 王连波 happyfor...@gmail.com wrote:

 Hi all,
 I configured my mapfile with label as follows:
 labelitem name
 CLASS
 NAMEriver
STYLE
color 0 200 0
width 3
END

 label
 angle auto
 COLOR 0 255 0
 SHADOWCOLOR 218 0 0
 SHADOWSIZE 1 1
 TYPE truetype
 encoding GB2312
 font simsun
 SIZE 10
 POSITION auto
 PARTIALS FALSE
  #  MINDISTANCE 30
 BUFFER 4
 FORCE true
 END # end of label
  END
 everything is ok except two problems:
 1、some texts did not display wholly, part of the word disapear.
 2、in the river layer, some rivers were labeled two or more times while I
 want that each river is labeled once.
 Anyone can help me to resolve those two problems, thank you very much.

 --
 天道酬勤

 ___
 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] Lines at Tile borders

2009-12-18 Thread Shaz N
Alright.. I will try to install a more recent version..and will check out
the metatiles thingy too.
Thank u.
Regards,
Shaz
On Fri, Dec 18, 2009 at 2:09 AM, Lime, Steve D (DNR) steve.l...@state.mn.us
 wrote:

  You might try a more recent version. Either 5.4.2 or 5.6 to see if the
 bug has been fixed.  I don’t recall off the top of my head…



 Using metatiles (that is, a tile rendered intentionally large and then
 clipped) is one way around problems like this and tiling tools like
 TileCache support that type of processing.



 Steve



 *From:* mapserver-users-boun...@lists.osgeo.org [mailto:
 mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Shaz N
 *Sent:* Wednesday, December 16, 2009 11:35 PM
 *To:* mapserver-users@lists.osgeo.org
 *Subject:* [mapserver-users] Lines at Tile borders



 Dear MapServer users..



 I have an issue with the rendering of lines at tile borders on my map,
 which is exactly like this picture:

 http://crschmidt.net/mapping/mapserverbug.png



 Being a new MapServer user, I checked previous threads related to this
 problem and found some suggestions to use TileCache or OpenLayers etc The
 threads were pretty old (like 2007..2008), so I would like to know if there
 is any other solution to the problem I am facing now.



 More info:

 CLASS
 NAME 'Others'
 EXPRESSION ('[class]' eq 'AU' OR '[class]' eq 'GR' OR '[class]' eq
 'PV' OR '[class]' eq 'TR')
 MAXSCALE 32000
 MINSCALE 16001
 STYLE
   COLOR 255 160 122
   WIDTH 5
   MINWIDTH 5
   MAXWIDTH 6
   ANTIALIAS TRUE

 END

 END



 I use version 5. Please advice me on how to proceed. Thank you very much



 Regards

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


[mapserver-users] Lines at Tile borders

2009-12-16 Thread Shaz N
Dear MapServer users..

I have an issue with the rendering of lines at tile borders on my map, which
is exactly like this picture:
http://crschmidt.net/mapping/mapserverbug.png

Being a new MapServer user, I checked previous threads related to this
problem and found some suggestions to use TileCache or OpenLayers etc The
threads were pretty old (like 2007..2008), so I would like to know if there
is any other solution to the problem I am facing now.

More info:
CLASS
NAME 'Others'
EXPRESSION ('[class]' eq 'AU' OR '[class]' eq 'GR' OR '[class]' eq
'PV' OR '[class]' eq 'TR')
MAXSCALE 32000
MINSCALE 16001
STYLE
  COLOR 255 160 122
  WIDTH 5
  MINWIDTH 5
  MAXWIDTH 6
  ANTIALIAS TRUE
END
END

I use version 5. Please advice me on how to proceed. Thank you very much

Regards
attachment: 2.JPG___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Label problem

2009-12-11 Thread Shaz N
Hi all...

I want to have the street name labels placed within the width of road, in
the proper direction (angle etc) just like how it appears in Google Maps. I
am new to MapServer and I am not sure how I could achieve this.

This is what I tried:




CLASS

NAME 'AP Road'

MAXSCALE 1

MINSCALE 5000

STYLE

   COLOR 85 85 85

 SYMBOL 'circle'

 SIZE 4

 ANTIALIAS TRUE

END

STYLE

   COLOR 255 255 255

 SYMBOL 'circle'

 SIZE 2

 ANTIALIAS TRUE

END

  LABEL

ANGLE follow

COLOR 0 0 0

OUTLINECOLOR 255 255 255

FONT arial

TYPE TRUETYPE

SIZE 8

POSITION auto

BUFFER 10

  END



 END

This did not help. I have 19 classes of roads in my road layer. The labels
are the same in almost all in the classes. Styles vary according to the
scale. What changes do I make..I am very confused. Please kindly advise me
on how to proceed.

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


Re: [mapserver-users] Label problem

2009-12-11 Thread Shaz N
Hi..

Pelin thanks for your reply. I tried to make some changes but I was
unsuccessful.

The labels still run haywire on the map. There is no fixed angle or
orientation. Only a very few labels are correctly placed within the road and
'follow' the road.

Please tell me what more changes I could do to have proper labeling for
street names.

Thanks.

Regards
On Fri, Dec 11, 2009 at 4:36 PM, pelin pelin...@gmail.com wrote:

   hi,this is part of mi map file
 --
 LABELMAXSCALE 9
 LABELMINSCALE 8000
  METADATA
   LAYER_ENCODING UTF-8
  DESCRIPTION Avenidas
  RESULT_FIELDS nombre,desde,hasta
  RESULT_HEADERS Nombre,Desde,Hasta
 END #METADATA
   LABELITEM 'nombre'
   CLASS
 Name 'Avenidas'
 LABEL
 TYPE truetype
 FONT 'FreeSans'
 ANGLE auto
 POSITION auto
 SIZE 5
END #label
 STYLE
 SYMBOL 'Avenidas--0--0'
 SIZE 3
 COLOR 193 62 183
   END  #STYLE
   END  # Class

 --

 Saludos y espero que te sirva

 
 http://blogs.hydras.com.ar/srodriguez/
 
 Atentamente
 Rolando Sergio Rodriguez

 ___
 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] Label problem

2009-12-11 Thread Shaz N
Hi All..

Is my error due to my label file or due to some error in my layer file?
Shall I attach a snapshot of my map..the labeling is terrible.
Please advise me on how to proceed.

Thanks.

On Sat, Dec 12, 2009 at 10:43 AM, Shaz N geo.engineer...@gmail.com wrote:


 Hi..

 Pelin thanks for your reply. I tried to make some changes but I was
 unsuccessful.

 The labels still run haywire on the map. There is no fixed angle or
 orientation. Only a very few labels are correctly placed within the road and
 'follow' the road.

 Please tell me what more changes I could do to have proper labeling for
 street names.

 Thanks.

 Regards
   On Fri, Dec 11, 2009 at 4:36 PM, pelin pelin...@gmail.com wrote:

hi,this is part of mi map file
 --
 LABELMAXSCALE 9
 LABELMINSCALE 8000
  METADATA
   LAYER_ENCODING UTF-8
  DESCRIPTION Avenidas
  RESULT_FIELDS nombre,desde,hasta
  RESULT_HEADERS Nombre,Desde,Hasta
 END #METADATA
   LABELITEM 'nombre'
   CLASS
 Name 'Avenidas'
 LABEL
 TYPE truetype
 FONT 'FreeSans'
 ANGLE auto
 POSITION auto
 SIZE 5
END #label
 STYLE
 SYMBOL 'Avenidas--0--0'
 SIZE 3
 COLOR 193 62 183
   END  #STYLE
   END  # Class

 --

 Saludos y espero que te sirva

 
 http://blogs.hydras.com.ar/srodriguez/
 
 Atentamente
 Rolando Sergio Rodriguez

 ___
 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