Re: [mapserver-users] reprojection

2010-09-21 Thread Rahkonen Jukka
Hi,

For sure the original image is not in EPSG:4326. You can guess it from the 
coordinates, for example
 Origin = (-8563840.575678950175643,6466755.550653258338571)
EPSG:4326 is naturally between -90,90 and -180,180. There does read 
AUTHORITY["EPSG","4326"]] in one place of the gdalinfo report, but it is in the 
section that tells the datum or the projection. 

I am not sure what the right projection could be, but I found this projection 
wiht the same lookin parametrers 
from my Mapserver proj directory:
# WGS 84 / Antarctic Polar Stereographic
<3031> +proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 
+ellps=WGS84 +datum=WGS84 +units=m +no_defs  <>

If this is correct, you do not need to reproject at all because your image is 
already in EPSG:3031.

-Jukka Rahkonen-

> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Julien Cigar
> Lähetetty: 21. syyskuuta 2010 22:09
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] reprojection
> 
>   Hello,
> 
> I'm trying to re-project a RASTER layer but without success so far.
> I have the following TIFF file:
> 
> m...@mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff
> Driver: GTiff/GeoTIFF
> Files: antarctica_sthn_ocean.tiff
> Size is 12216, 9094
> Coordinate System is:
> PROJCS[" Projection Name = WGS_1984_Stereographic_South_Pole Units = 
> meters GeoTIFF Units = meters",
>  GEOGCS["WGS 84",
>  DATUM["WGS_1984",
>  SPHEROID["WGS 84",6378137,298.257223563,
>  AUTHORITY["EPSG","7030"]],
>  AUTHORITY["EPSG","6326"]],
>  PRIMEM["Greenwich",0],
>  UNIT["degree",0.0174532925199433],
>  AUTHORITY["EPSG","4326"]],
>  PROJECTION["Polar_Stereographic"],
>  PARAMETER["latitude_of_origin",-71],
>  PARAMETER["central_meridian",0],
>  PARAMETER["scale_factor",1],
>  PARAMETER["false_easting",0],
>  PARAMETER["false_northing",0],
>  UNIT["metre",1,
>  AUTHORITY["EPSG","9001"]]]
> Origin = (-8563840.575678950175643,6466755.550653258338571)
> Pixel Size = (1420.390210742724321,-1420.394765779645695)
> Metadata:
>TIFFTAG_XRESOLUTION=900
>TIFFTAG_YRESOLUTION=900
>TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
>AREA_OR_POINT=Area
> Image Structure Metadata:
>INTERLEAVE=PIXEL
> Corner Coordinates:
> Upper Left  (-8563840.576, 6466755.551) ( 52d56'33.71"W,  8d 
> 9'27.23"S)
> Lower Left  (-8563840.576,-6450314.449) (126d59'13.87"W,  
> 8d12'36.90"S)
> Upper Right ( 8787646.239, 6466755.551) ( 53d39'3.45"E,  7d12'35.07"S)
> Lower Right ( 8787646.239,-6450314.449) (126d16'45.99"E,  
> 7d15'38.97"S)
> Center  (  111902.832,8220.551) ( 85d47'54.65"E, 88d58'2.41"S)
> Band 1 Block=256x256 Type=Byte, ColorInterp=Red
>Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
>Metadata:
>  LAYER_TYPE=athematic
> Band 2 Block=256x256 Type=Byte, ColorInterp=Green
>Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
>Metadata:
>  LAYER_TYPE=athematic
> Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
>Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
>Metadata:
>  LAYER_TYPE=athematic
> 
> If I understood well the output of gdalinfo, the projection 
> seems to be 
> EPSG:4326.
> Now I want to re-project this to EPSG:3031.
> I tried with the following MAP file :
> 
> MAP
>  NAME "antarctic"
>  STATUS ON
>  SIZE 600 400
>  EXTENT -8563840.576 -6450314.449 8787646.239 6466755.551
>  IMAGECOLOR 255 255 255
> 
>  PROJECTION
>  "init=epsg:3031"
>  END
> 
>  OUTPUTFORMAT
>  NAME png
>  DRIVER "GD/PNG"
>  MIMETYPE "image/png"
>  IMAGEMODE RGBA
>  EXTENSION "png"
>  END
> 
>  LAYER
>  NAME "ocean"
>  TYPE RASTER
>  STATUS DEFAULT
>  DATA antarctica_sthn_ocean.tiff
>  PROJECTION
>  "init=epsg:4326"
>  END
>  END
> END
> 
> ... but all what I get is a gray 600x400 PNG image ...
> 
> Any idea what could be the problem ?
> 
> Thanks,
> Julien
> 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] reprojection

2010-09-21 Thread Julien Cigar

 Hello,

I'm trying to re-project a RASTER layer but without success so far.
I have the following TIFF file:

m...@mordor:/home/mage/gis % gdalinfo antarctica_sthn_ocean.tiff
Driver: GTiff/GeoTIFF
Files: antarctica_sthn_ocean.tiff
Size is 12216, 9094
Coordinate System is:
PROJCS[" Projection Name = WGS_1984_Stereographic_South_Pole Units = 
meters GeoTIFF Units = meters",

GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]],
PROJECTION["Polar_Stereographic"],
PARAMETER["latitude_of_origin",-71],
PARAMETER["central_meridian",0],
PARAMETER["scale_factor",1],
PARAMETER["false_easting",0],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]]]
Origin = (-8563840.575678950175643,6466755.550653258338571)
Pixel Size = (1420.390210742724321,-1420.394765779645695)
Metadata:
  TIFFTAG_XRESOLUTION=900
  TIFFTAG_YRESOLUTION=900
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (-8563840.576, 6466755.551) ( 52d56'33.71"W,  8d 9'27.23"S)
Lower Left  (-8563840.576,-6450314.449) (126d59'13.87"W,  8d12'36.90"S)
Upper Right ( 8787646.239, 6466755.551) ( 53d39'3.45"E,  7d12'35.07"S)
Lower Right ( 8787646.239,-6450314.449) (126d16'45.99"E,  7d15'38.97"S)
Center  (  111902.832,8220.551) ( 85d47'54.65"E, 88d58'2.41"S)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
  Metadata:
LAYER_TYPE=athematic
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
  Metadata:
LAYER_TYPE=athematic
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  Overviews: 6108x4547, 3054x2274, 1527x1137, 764x569
  Metadata:
LAYER_TYPE=athematic

If I understood well the output of gdalinfo, the projection seems to be 
EPSG:4326.

Now I want to re-project this to EPSG:3031.
I tried with the following MAP file :

MAP
NAME "antarctic"
STATUS ON
SIZE 600 400
EXTENT -8563840.576 -6450314.449 8787646.239 6466755.551
IMAGECOLOR 255 255 255

PROJECTION
"init=epsg:3031"
END

OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
END

LAYER
NAME "ocean"
TYPE RASTER
STATUS DEFAULT
DATA antarctica_sthn_ocean.tiff
PROJECTION
"init=epsg:4326"
END
END
END

... but all what I get is a gray 600x400 PNG image ...

Any idea what could be the problem ?

Thanks,
Julien
<>___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RE: CGI returning a 502 error

2010-09-21 Thread stoli

I do not think it is a string length limit. The IIS returns a separate error
for that. At least it does when you exceed the URL length limit in a GET
request. 

I have been doing some tests and it looks like it might be more of a limit
in the number of parameters in the POST request. I can't find any info
regarding the maximum number of parameters that you can send in one request
(to an IIS server), but again, I would think that IIS would be responding
with a more specific error if the limit was with it. 

Is it possible that the MapServer CGI is limited to 100 POST parameters? 



Fawcett, David (MPCA) wrote:
> 
> According to the docs, starting with MapServer 5.0, there is no limit to
> the number of layers in a mapfile. 
> http://mapserver.org/introduction.html#layer-object
> 
> I am guessing that you are running into a different issue.  
> 
> Have you captured the post request string and examined it to make sure
> that it is valid?  
> 
> Are you running into a string length limit for your post request?  The URL
> for your post request would be limited to ~2k char for IE, but this only
> includes the URL to the server, not the key:value pairs.  There could be a
> size limit for post requests set on your Web server to help prevent DOS
> attacks.  I don't know where this would be set in IIS.
> 
> David.
> 
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of stoli
> Sent: Monday, September 20, 2010 6:18 PM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] CGI returning a 502 error
> 
> 
> I'm using the ms4w binaries (5.6.3) under IIS 7.
> 
> My application sends (via http POST) a lot of parameters to modify the
> .map
> file. Mostly to add features to layers that are turned off by default and
> then make them visible. When my parameters cause the map to show over 50
> layers, the IIS returns a 502 error. 
> 
> I realize that the max layers are set to 100 in the default map.h file,
> but
> like I said, I am using the compiled binaries from ms4w. Does anyone know
> if
> they change that to 50 when they compile, or should I look elsewhere to
> find
> my problem? 
> 
> 
> -- 
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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
> 
> 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p339.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] RE: CGI returning a 502 error

2010-09-21 Thread stoli

I do not think it is a string length limit. The IIS returns a separate error
for that. At least it does when you exceed the URL length limit in a GET
request. 

I have been doing some tests and it looks like it might be more of a limit
in the number of parameters in the POST request. I can't find any info
regarding the maximum number of parameters that you can send in one request
(to an IIS server), but again, I would think that IIS would be responding
with a more specific error if the limit was with it. 

Is it possible that the MapServer CGI is limited to 100 POST parameters?

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p304.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] CGI returning a 502 error

2010-09-21 Thread rstoyle
I do not think it is a string length limit. The IIS returns a separate error 
for that. At least it does when you exceed the URL length limit in a GET 
request. 

I have been doing some tests and it looks like it might be more of a limit in 
the number of parameters in the POST request. I can't find any info regarding 
the maximum number of parameters that you can send in one request (to an IIS 
server), but again, I would think that IIS would be responding with a more 
specific error if the limit was with it. 

Is it possible that the MapServer CGI is limited to 100 POST parameters?


- Original Message -
From: "David Fawcett (MPCA)" 
To: "stoli" , mapserver-users@lists.osgeo.org
Sent: Tuesday, September 21, 2010 9:44:57 AM
Subject: RE: [mapserver-users] CGI returning a 502 error

According to the docs, starting with MapServer 5.0, there is no limit to the 
number of layers in a mapfile.  
http://mapserver.org/introduction.html#layer-object

I am guessing that you are running into a different issue.  

Have you captured the post request string and examined it to make sure that it 
is valid?  

Are you running into a string length limit for your post request?  The URL for 
your post request would be limited to ~2k char for IE, but this only includes 
the URL to the server, not the key:value pairs.  There could be a size limit 
for post requests set on your Web server to help prevent DOS attacks.  I don't 
know where this would be set in IIS.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of stoli
Sent: Monday, September 20, 2010 6:18 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CGI returning a 502 error


I'm using the ms4w binaries (5.6.3) under IIS 7.

My application sends (via http POST) a lot of parameters to modify the .map
file. Mostly to add features to layers that are turned off by default and
then make them visible. When my parameters cause the map to show over 50
layers, the IIS returns a 502 error. 

I realize that the max layers are set to 100 in the default map.h file, but
like I said, I am using the compiled binaries from ms4w. Does anyone know if
they change that to 50 when they compile, or should I look elsewhere to find
my problem? 


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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] Expressions

2010-09-21 Thread Jay Kapalczynski

My major question is can I do this with a String/text field?  Its the only way 
I can see keeping things in a %2Y%2M%2D format   ex. 092110 (Sept 21st 2010), 
otherwise the 0 will get removed in a numeric field
Can I use the format Year, Month, Day?  Or do I have to use Month, Day, Year?

In this example I eliminated two expressions and focused on one Expression to 
see if it is working.

I kept this
  
./maple_grove_datasets/police/Burglaries.map





  

In my map file I used ONLY this
CLASS
NAME 'Last Weeks'
EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%')
STYLE
COLOR 0 100 50
SYMBOL "bike"
SIZE 12
END
END

Now in my data I have these values (below), although every symbol was displayed 
in the map

NOTE THIS IS A TEXT FIELD
081204, 081225,090118

These values (above) for the Year, Month, Day format specified in the map 
source are clearly less than the "last two weeks", Where as they are older than 
the last 14 daysso none of them should show up, but they do

Any thoughts


From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Bob Basques
Sent: Friday, September 17, 2010 9:25 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Expressions

A first stab at seeing more than one class, might be to try and switch them 
around order wise,  one filter may be overwriting the other for example.

bobb




On 9/17/2010 8:20 AM, Jay Kapalczynski wrote:
I am using GeoMoose but feel this is more a question for Map Server.
I am trying to sort my points by dates using the code belowI think that I 
can do this but not sure
Is this a viable format "2Y%2M%2D" ?

As for the field in the shapefile...If I use an integer it removes the 0 from 
the 092110, (sept 21st 2010)

If I use a date then there are "/"  ... 9/21/10

The only way I can see this happening is using a text field with retains the 0 
in 092110

When I use the textfield "dateValues" as seen below I can get the stars to draw 
but only the LASTWEEK...for some reason the LASTTWOWEEKS does not show  and I 
know that I have a few records with dates in the last 14 days...

Thoughts?

THANKSall your help is very appreciated

Main .xml file

  
./maple_grove_datasets/police/Burglaries.map





  



.map file

CLASS
   NAME 'Last Weeks'
   EXPRESSION ('[dateValues]' > '%LASTWEEK%')
   STYLE
  COLOR 0 0 0
  SYMBOL "star"
  SIZE 12
   END
END
CLASS
   NAME 'Last Two Weeks'
   EXPRESSION ('[dateValues]' > '%LASTTWOWEEKS%')
   STYLE
  COLOR 0 100 50
  SYMBOL "star"
  SIZE 12
   END
END






___

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] Re: Output geospatial PDFs

2010-09-21 Thread Jan Hartmann

 Ah, they are going to support PDF via Cairo. Good. Hadn't understood that.

Jan

On 09/21/10 16:21, Stephen Woodbridge wrote:

On 9/21/2010 10:15 AM, Jan Hartmann wrote:

  Is this so?


Yes, this came across the list a while back:
http://osgeo-org.1803224.n2.nabble.com/SVG-PDF-and-Flash-output-in-MapServer-6-0-td5518649.html 



The dev team is refactoring the rendering engine to make it more 
consistent across renderers and to stream line it and add support for 
some additional rendering solutions. A lot of changes happening in 
this area.


-Steve W


Jan

On 09/21/10 15:58, Sumit Sharma wrote:
One more thing... Stick to Cario renderer instead PDF in Mapserver. 
As I

understand support for PDF may discontinue from 6.0 release.
-Sumit



___
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


RE: [mapserver-users] Symbology

2010-09-21 Thread Jay Kapalczynski
Thank you all for your help here….and I am quite embarrassed as to my 
solution…and more importantly sorry to take up your time, although I did learn 
a few things.
I moved everything into the map section and created a Symbol folder to hold the 
images and .sym files.
I placed the png in the map folder (as requested by David)
And it still didn’t work…looking closer I realized that the symbol name was 
“bike” although the image name was “bikes” one stupid ‘s’ and this results.

Although your help allowed me to move the files into the correct location, 
understand the connection between map file and sym file and images etc.

I thank you for all your help..much appreciated

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Fawcett, David 
(MPCA)
Sent: Tuesday, September 21, 2010 9:20 AM
To: mapserver-users@lists.osgeo.org
Subject: FW: [mapserver-users] Symbology

Apologies for the dup, my original response got embargoed due to the large 
image included…

From: Fawcett, David (MPCA)
Sent: Tuesday, September 21, 2010 9:13 AM
To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I think that someone else pointed out that the path to your symbol image is 
relative to the location of your map file.

A quick test would be to drop bike.png in the same folder as your map file.

Looking at your dir tree, I would move your symbol stuff out of the htdocs 
branch and into the area where your map files are.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I added a few things to my sym file and got a few  to work

I can now call circle and get a circle….BUT for some reason the image will not 
work, maybe an issue with the image?  You have any test images that are known 
to work?
I have the image like this IMAGE 'bike.png' because the images are in the same 
folder as the .sym file

Any other thoughts….greatly appreciated….thanks

THIS WORKS
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL "circle"
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
THIS DOES NOT WORK
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL "bike"
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
.SYM FILE

Symbol
Name 'circle'
Type ELLIPSE
FILLED TRUE
Points
1 1
END
END

SYMBOL
NAME 'circle-dashed'
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
STYLE 5 5 END
  END

SYMBOL
   NAME 'bike'
   TYPE pixmap
   IMAGE 'bike.png'
END



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


Re: [mapserver-users] Re: Output geospatial PDFs

2010-09-21 Thread Stephen Woodbridge

On 9/21/2010 10:15 AM, Jan Hartmann wrote:

  Is this so?


Yes, this came across the list a while back:
http://osgeo-org.1803224.n2.nabble.com/SVG-PDF-and-Flash-output-in-MapServer-6-0-td5518649.html

The dev team is refactoring the rendering engine to make it more 
consistent across renderers and to stream line it and add support for 
some additional rendering solutions. A lot of changes happening in this 
area.


-Steve W


Jan

On 09/21/10 15:58, Sumit Sharma wrote:

One more thing... Stick to Cario renderer instead PDF in Mapserver. As I
understand support for PDF may discontinue from 6.0 release.
-Sumit



___
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


FW: [mapserver-users] Symbology

2010-09-21 Thread Fawcett, David (MPCA)
Apologies for the dup, my original response got embargoed due to the large 
image included…

From: Fawcett, David (MPCA)
Sent: Tuesday, September 21, 2010 9:13 AM
To: 'Jay Kapalczynski'; 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I think that someone else pointed out that the path to your symbol image is 
relative to the location of your map file.

A quick test would be to drop bike.png in the same folder as your map file.

Looking at your dir tree, I would move your symbol stuff out of the htdocs 
branch and into the area where your map files are.

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jay Kapalczynski
Sent: Tuesday, September 21, 2010 8:53 AM
To: 'Bob Basques'; mapserver-users@lists.osgeo.org; 'adams'
Subject: RE: [mapserver-users] Symbology

I added a few things to my sym file and got a few  to work

I can now call circle and get a circle….BUT for some reason the image will not 
work, maybe an issue with the image?  You have any test images that are known 
to work?
I have the image like this IMAGE 'bike.png' because the images are in the same 
folder as the .sym file

Any other thoughts….greatly appreciated….thanks

THIS WORKS
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL "circle"
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
THIS DOES NOT WORK
 CLASS
   NAME 'Last Week'
   STYLE
  SYMBOL "bike"
  COLOR 0 0 0
  OUTLINECOLOR 0 0 0
  #SIZE 12
 END  # STYLE
 END # CLASS
.SYM FILE

Symbol
Name 'circle'
Type ELLIPSE
FILLED TRUE
Points
1 1
END
END

SYMBOL
NAME 'circle-dashed'
TYPE ELLIPSE
FILLED TRUE
POINTS 1 1 END
STYLE 5 5 END
  END

SYMBOL
   NAME 'bike'
   TYPE pixmap
   IMAGE 'bike.png'
END



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


Re: [mapserver-users] Re: Output geospatial PDFs

2010-09-21 Thread Jan Hartmann

 Is this so?

Jan

On 09/21/10 15:58, Sumit Sharma wrote:

One more thing... Stick to Cario renderer instead PDF in Mapserver. As I
understand support for PDF may discontinue from 6.0 release.
-Sumit
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Output PDF files with layers

2010-09-21 Thread Rahkonen Jukka
Hi,

The recent PDF discussion reminded me about layered PDF files.  There is
some discussion about this in Geoserver jira
http://jira.codehaus.org/browse/GEOS-3640 and there is also a sample pdf
with selectable layers 
http://jira.codehaus.org/secure/attachment/45741/SkyJUMP.pdf

Layers are selectable only with Adobe Acrobat viewer. Selectable layers
could be a nice feature to have sometimes. Even better if vector layers
were real vectors, I believe that in this sample image lineworks are
also images.

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


[mapserver-users] Re: Output geospatial PDFs

2010-09-21 Thread Sumit Sharma

One more thing... Stick to Cario renderer instead PDF in Mapserver. As I
understand support for PDF may discontinue from 6.0 release.
-Sumit
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5554828.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] Re: Output geospatial PDFs

2010-09-21 Thread Sumit Sharma

Hi Kristian,
Mapserver dont support GeoPDF as of now. Maybe you would like to speak to
devs about their plans to do so. 
However, I have written my own routines for creating GeoPDF. I use Mapserver
to generate raster/vector PDF with good quality and eventually using I text
library I merge them layer by layer to create GeoPDF. Same way I add map
surrounds like north arrow, legend scale bar etc. Finally I write some
projection parameters and attributes. However I was not able to exploit
measure tool. Trust me its time taking process but worth trying. 

-Sumit
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Output-geospatial-PDFs-tp5541843p5554825.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] CGI returning a 502 error

2010-09-21 Thread Fawcett, David (MPCA)
According to the docs, starting with MapServer 5.0, there is no limit to the 
number of layers in a mapfile.  
http://mapserver.org/introduction.html#layer-object

I am guessing that you are running into a different issue.  

Have you captured the post request string and examined it to make sure that it 
is valid?  

Are you running into a string length limit for your post request?  The URL for 
your post request would be limited to ~2k char for IE, but this only includes 
the URL to the server, not the key:value pairs.  There could be a size limit 
for post requests set on your Web server to help prevent DOS attacks.  I don't 
know where this would be set in IIS.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of stoli
Sent: Monday, September 20, 2010 6:18 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] CGI returning a 502 error


I'm using the ms4w binaries (5.6.3) under IIS 7.

My application sends (via http POST) a lot of parameters to modify the .map
file. Mostly to add features to layers that are turned off by default and
then make them visible. When my parameters cause the map to show over 50
layers, the IIS returns a 502 error. 

I realize that the max layers are set to 100 in the default map.h file, but
like I said, I am using the compiled binaries from ms4w. Does anyone know if
they change that to 50 when they compile, or should I look elsewhere to find
my problem? 


-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/CGI-returning-a-502-error-tp5552675p5552675.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] Font encoding

2010-09-21 Thread Dejan Gambin
Hi,

I usually use some hex editor to find out the real encoding of dbf files. I 
look for special characters and identify the encoding somehow...

regards, dejan
On 20. ruj. 2010., at 17:16, Bennos wrote:

> 
> Hi,
> 
> I want to display labels of attributes of my shapefile which i exported from
> ArcMap 9.3. These attributes have special characters like Š, Č and Ž which
> are part of every Latin1 or ISO-8859-2 encoded font. The problem is, that
> mapserver doesnt show the right characters but something like [?]. The funny
> thing is, that I also use other special characters, like Ç, which are
> generated without problem.
> In the mapfile I allready tried different encodings, even when i change the
> encoding of the font there is no difference. I tried to use different fonts,
> too. Maybe the problem is that i generated the shapefile on WinXP and the
> Mapserver runs on UNIX? Another thing i would like to check is the encoding
> of the shapefile, but i have no idea how to do this, anyone else? 
> I really have tried a lot and I hope someone of you can help me.
> 
> Cheers,
> Benjamin
> -- 
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Font-encoding-tp5550875p5550875.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