[mapserver-users] Re: Styling a mapfile with SLD?

2010-06-02 Thread paalkr

Hi!

Thanks! I really don't understand how that poorly formatted SLD slipped
trough the oxygen XML editor, obviously there are many close-tags that
misses the backslash.

Do you know if there is a ticket regarding the lack of error messages when
MapServer fails to either pick up or parse a SLD document? If not I think
that I will write one, and encourage one of my colleagues to have a look at
the source and maybe write a patch for it.

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.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] Styling a mapfile with SLD?

2010-06-01 Thread paalkr

Hi all!

I'm trying to sett up a MapService that uses OGC SLD to override the regular
MapServer rendering rules (classes and styles). For some reason MapServer
does not seem to pick up the SLD, because the resulting map uses the default
drawing rules defined in the map-file rather then the SLD.

And BTW, is it possible to assign a SLD to a layer internally in a map-file,
or do I need to provide the SLD as a parameter in the WMS GetMap request?

The layer in the mapfile looks like this:

  LAYER
NAME PolbndA
TYPE POLYGON
#TYPE LINE
STATUS OFF
DEBUG 5
MAXSCALEDENOM 190
  CONNECTIONTYPE postgis
  CONNECTION host=xx port=5432 dbname=xx password=xx user=xx
  DATA shape from euroerm.polbnda USING UNIQUE objectid USING
SRID=4326
  PROCESSING CLOSE_CONNECTION=DEFER   
METADATA
  wms_title Administrativie area
  wms_extent-15 28 47 82
  #wms_sld_url http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml;
  #wms_sld_body AUTO 
END
PROJECTION
  init=epsg:4326
END

#LABELITEM f_code
CLASSITEM f_code

CLASS
  NAME F_CODE
  STYLE
OUTLINECOLOR 255 100 0
SIZE 2
  END
  LABEL
COLOR 0 0 0
FONT verdana
TYPE TRUETYPE
SIZE 10
PARTIALS false
POSITION lc
  END
END
  END

The corresponding SLD document that I try to apply:

?xml version=1.0 encoding=utf-8?

  
  
PolbndA

  erm:Style1
  Default Styler
  

PolbndA
title
abstract


  Administrative Area
  Administrative Area
  

  f_code
  FA001

  
  

  #E6
  1

  

  

  


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126372p5126372.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] Styling a mapfile with SLD?

2010-06-01 Thread paalkr

Hi all!

I'm trying to sett up a MapService that uses OGC SLD to override the regular
MapServer rendering rules (classes and styles). For some reason MapServer
does not seem to pick up the SLD, because the resulting map uses the default
drawing rules defined in the map-file rather then the SLD.

And BTW, is it possible to assign a SLD to a layer internally in a map-file,
or do I need to provide the SLD as a parameter in the WMS GetMap request?

The layer in the mapfile looks like this:

  LAYER
NAME PolbndA
TYPE POLYGON
#TYPE LINE
STATUS OFF
DEBUG 5
MAXSCALEDENOM 190
  CONNECTIONTYPE postgis
  CONNECTION host=xx port=5432 dbname=xx password=xx user=xx
  DATA shape from euroerm.polbnda USING UNIQUE objectid USING
SRID=4326
  PROCESSING CLOSE_CONNECTION=DEFER   
METADATA
  wms_title Administrativie area
  wms_extent-15 28 47 82
  #wms_sld_url http://www.geonorge.no/styles/erm/erm_ms_22_ah.xml;
  #wms_sld_body AUTO 
END
PROJECTION
  init=epsg:4326
END

#LABELITEM f_code
CLASSITEM f_code

CLASS
  NAME F_CODE
  STYLE
OUTLINECOLOR 255 100 0
SIZE 2
  END
  LABEL
COLOR 0 0 0
FONT verdana
TYPE TRUETYPE
SIZE 10
PARTIALS false
POSITION lc
  END
END
  END

The corresponding SLD document that I try to apply:

?xml version=1.0 encoding=utf-8?
StyledLayerDescriptor version=1.1.0
 schemaLocation=http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd;
 xmlns=http://www.opengis.net/sld;
 xmlns:ogc=http://www.opengis.net/ogc;
 xmlns:se=http://www.opengis.net/se;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:sld=http://www.opengis.net/sld;
  !--Area features.--
  NamedLayer
NamePolbndAName
UserStyle
  Nameerm:Style1Name
  TitleDefault StylerTitle
  FeatureTypeStyle
!--FeatureTypeNameWFS_ERM:Fcode_FA001_AFeatureTypeName--
NamePolbndAName
TitletitleTitle
AbstractabstractAbstract
!--SemanticTypeIdentifiergeneric:allSemanticTypeIdentifier--
Rule
  TitleAdministrative AreaTitle
  NameAdministrative AreaName
  ogc:Filter
ogc:PropertyIsEqualTo
  ogc:PropertyNamef_code/ogc:PropertyName
  ogc:LiteralFA001/ogc:Literal
/ogc:PropertyIsEqualTo
  /ogc:Filter
  PolygonSymbolizer
Fill
  SvgParameter name=fill#E6SvgParameter
  SvgParameter name=fill-opacity1SvgParameter
Fill
  PolygonSymbolizer
Rule
  FeatureTypeStyle
UserStyle
  NamedLayer
StyledLayerDescriptor

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5126381.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: GDAL WMS

2010-03-15 Thread paalkr

Hi!

I have pointed out the missing documentation of the OVERSAMPLING_RATIO
process directive before, and even made a ticket. As the directive enhances
raster quality a lot in different situations I think it really deserves to
be documented. Hopefully some with committing rights will pick it up soon. 

Se my earlier post with a link to the ticket:
http://n2.nabble.com/Documentation-update-td2396593.html#a2396593 

Regards,
Pål Kristensen

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/GDAL-WMS-tp4735781p4737001.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: Layer scale problem with Mercator (EPSG:900913)

2010-02-23 Thread paalkr

Hi!

This issue is quite important to us, does anybody feel like contracting the
task of fixing this? Please contact me by email if interested,
pal.kristensen at statkart.no

Regards,
Pål Kristensen
The Norwegian Mapping Authority

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Layer-scale-problem-with-Mercator-EPSG-900913-tp2575585p4619516.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] [BUG] MapServer 5.4.2 going into an endless loop!

2009-11-20 Thread paalkr

Hi!

I have discovered a situation where MapServer seems to enter an endless loop
and uses all the CPU power available on a server. I have managed to track
down the specific feature in our postgis database that causes MapServer to
hang. A database dump containing only this feature and a working mapfile are
attached.

The really strange thing is that this feature does not always fail to draw,
the situation does only occur with some specific BBOX's in a WMS GetMap
request. A working and a non working request are posted below. The only
difference between the requests is that the bbox in the working one is
extended with 1000 meters to the east.

I have tested this on MapServer 5.4.2 on Linux and Windows, with the same
result. I also tried it on an old MapServer 5.0.0 (windows) that still lays
around, and the error was NOT present on 5.0.0, where both the requests
below did work.

NOT WORKING (5.0.0)
http://localhost/cgi-bin/topo2?LAYERS=topo2_WMSFORMAT=image%2FjpegSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A32632BBOX=513024,6792928,599680,6879584WIDTH=256HEIGHT=256

WORKING:
http://localhost/cgi-bin/topo2?LAYERS=topo2_WMSFORMAT=image%2FjpegSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A32632BBOX=513024,6792928,600680,6879584WIDTH=256HEIGHT=256

Same information are provided in ticket 
http://trac.osgeo.org/mapserver/ticket/3207 #3207 

Mapfile: http://n2.nabble.com/file/n4037146/topo2.zip
db_dump: http://n2.nabble.com/file/n4037146/n2000_arealdekkeflate.zip

Regards,
Pål Kristensen
The Norwegian Mapping Authority


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/BUG-MapServer-5-4-2-going-into-an-endless-loop-tp4037991p4037991.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] Quantize and 8bit/1bit PNG problem

2009-11-02 Thread paalkr

Hi!

Could I please ask for a comment on this issue from one of the developers?



paalkr wrote:
 
 Hi!
 
 I have the following output format defined in my mapfile (MapServer
 5.4.2):
 
OUTPUTFORMAT
   NAME png8bit
   DRIVER AGG/PNG
   MIMETYPE image/png
   EXTENSION png
   FORMATOPTION QUANTIZE_FORCE=ON
   FORMATOPTION QUANTIZE_COLORS=256
   FORMATOPTION QUANTIZE_NEW=ON
   FORMATOPTION INTERLACE=OFF
END
 
 This works very well most of the time, even transparency. But in
 situations where the GetMap request don't contain any data at all
 (returned image should be total transparent) the resulting PNG is 1bit in
 stead of 8bits. If the produced image does contain some data the produced
 image i 8bits, with correctly rendered transparency where there are no
 data.
 
 This behavior are specially troublesome when building a tile cache because
 there are a lot of this request without any valid data. In almost all
 applications I guess that this issue wouldn't do any harm, but we uses
 Bing Maps for some projects and Bing Maps can't handle 1bit PNGs.
 
 What can be done to overcome this issue? 
 
 Regards,
 Pål Kristensen
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Quantize-and-8bit-1bit-PNG-problem-tp3641221p3930988.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] Quantize and 8bit/1bit PNG problem

2009-11-02 Thread paalkr

Hi Frank!

Thanks for the comment! The idea of using Bing Maps and Silverlight was not
mine, I argued quite heavily against it :) The bug is in fact in Sliverlight
and Microsoft has admitted it, but they don't wont to fix it, go figure! I
understand that a 1bit image is a total valid output and I personally don't
have any trouble with it. The request to the list was more like a
documentation thing from my side, so that the Microsoft fanboys can see for
them selves that the problem should be fixed in the broken software (Bing
Maps and Silverlight), not vice versa.

I guess that the best workaround is the suggested python mapscript wrapper,
and check if the output is 1bit or not, if true then change it with a 8bits
image instead. But I'm not totally sure that I really wont to fix this on
the service side anyway ;)



Frank Warmerdam wrote:
 
 paalkr wrote:
 Hi!
 
 Could I please ask for a comment on this issue from one of the
 developers?
 
 Pål,
 
 One bit PNGs are a perfectly valid response.   I would suggest
 two approaches.
 
 1) File a ticket with Microsoft on Bing Maps, and hopefully they will
 roll a fix into their operational build within a couple days.  (ha ha)
 
 2) Manually produce a nice empty tile that works with Bing Maps some
 other way, and write a script to replace the 1bit PNG file (which should
 presumably have a fixed size) with the bing-safe ones.
 
 Perhaps not the sort of answer you were hoping for, but you did
 implore us for comment even when none of us thought we had anything
 particularly bright to say.
 
 Best regards,
 
 paalkr wrote:
 Hi!

 I have the following output format defined in my mapfile (MapServer
 5.4.2):

OUTPUTFORMAT
   NAME png8bit
   DRIVER AGG/PNG
   MIMETYPE image/png
   EXTENSION png
   FORMATOPTION QUANTIZE_FORCE=ON
   FORMATOPTION QUANTIZE_COLORS=256
   FORMATOPTION QUANTIZE_NEW=ON
   FORMATOPTION INTERLACE=OFF
END

 This works very well most of the time, even transparency. But in
 situations where the GetMap request don't contain any data at all
 (returned image should be total transparent) the resulting PNG is 1bit
 in
 stead of 8bits. If the produced image does contain some data the
 produced
 image i 8bits, with correctly rendered transparency where there are no
 data.

 This behavior are specially troublesome when building a tile cache
 because
 there are a lot of this request without any valid data. In almost all
 applications I guess that this issue wouldn't do any harm, but we uses
 Bing Maps for some projects and Bing Maps can't handle 1bit PNGs.

 What can be done to overcome this issue? 
 
 
 -- 
 ---+--
 I set the clouds in motion - turn up   | Frank Warmerdam,
 warmer...@pobox.com
 light and sound - activate the windows | http://pobox.com/~warmerdam
 and watch the world go round - Rush| Geospatial Programmer for Rent
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Quantize-and-8bit-1bit-PNG-problem-tp3641221p3935009.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] add watermark to wms service

2009-10-23 Thread paalkr

Hi!

What's the reason you don't want to use a layer with a label? Anyway I think
that it's doable by intercepting the WMS request in MapScript and adding the
watermark before delivering the final image back to the client. 



Travis Kirstine wrote:
 
 Is there a method for adding a watermark to a wms service (not using a
 layer w/ label).
 
 -- 
 Travis K.
 
 Toronto, Canada
 
 She knows there's no success like failure
 and that failure's no success at all.
 -Bob Dylan-
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/add-watermark-to-wms-service-tp3875987p3878392.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


Automatisk svar ved fravær: [mapserve r-users] add watermark to wms service

2009-10-23 Thread paalkr

Hei!

Jeg er på tjenestereise og er tilbake på kontoret tirsdag 27.okt 2009. 

 
Pål Kristensen
Sjefsingeniør
Statens kartverk
NGIS
Sentralbord 32 11 81 00
Direkte/Mobil 32 11 83 07 / 922 63 016
E-post:pal.kristen...@statkart.no  


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/add-watermark-to-wms-service-tp3875987p3882265.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] MapServer and GeoWebCache in use

2009-10-22 Thread paalkr

Hi!

People wants to see MapServer and GeoWebCache in action at the Norwegian
mapping agency can try out  http://kart.statkart.no http://kart.statkart.no
. There is an option in the upper left part of the application to change the
language to English (there may still be some items that are not translated).

The performance of the application is not that good down at the conventions
center here in Sydney, but that is related to the speed and capacity of the
Internet connection (and that the servers are located in Norway, pretty far
away from Sydney).

Regards,
Pål Kristensen

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/MapServer-and-GeoWebCache-in-use-tp3875110p3875110.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] Documentation update

2009-08-26 Thread paalkr

Hi!

Do I need to do make any changes or something to the ticket, to get a
feedback on this issue?

Regards,
Pål Kristensen



paalkr wrote:
 
 Bump
 
 Pål
 
 
 paalkr wrote:
 
 Done, http://trac.osgeo.org/mapserver/ticket/2909#preview
 
 Pål
 
 
 Jeff McKenna wrote:
 
 paalkr wrote:
 Hi!
 
 I would suggest that someone with the right privileges adds the
 following
 the the documentation
 
 In the LAYER mapfile reference
 (http://mapserver.org/mapfile/layer.html),
 new headline Label directives:
 PROCESSING LABEL_NO_CLIP=True
 
 In the Raster Data, Special Processing Directives
 (http://mapserver.org/input/raster.html#special-processing-directives)
 PROCESSING OVERSAMPLE_RATIO=[int]
 
 Both are quite handy, and information about usage should be easy
 accessible
 in the documentation.
 
 Regards,
 Pål Kristensen
 
 
 Please file any documentation changes you need through the MapServer 
 Issue Tracker, in the MapServer Documentation component.  Thank you. 
 (otherwise mailing list emails are lost and forgotten)
 
 -jeff
 
 
 
 -- 
 Jeff McKenna
 FOSS4G Consulting and Training Services
 http://www.gatewaygeomatics.com/
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Documentation-update-tp2396593p3514320.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] Point lables and tiles

2009-05-29 Thread paalkr

Hi!

OK, thanks! I guess that MapScript is the way to go then. 



Steve Lime wrote:
 
 Not within MapServer proper. The various tiling services use this
 metatile approach so it does work. You'd need
 an intermediary script to do the clipping for you.
 
 Steve
 
 On 5/28/2009 at 8:36 AM, in message
 1243517779820-2987684.p...@n2.nabble.com,
 paalkr pal.kristen...@statkart.no wrote:
 
 Hi!
 
 OK, are there any methods that could be used to let MapServer produce
 a
 bigger image and then chop off excess area before sending the image
 to the
 client? I think that this would be the easiest and most flexible
 solution.
 
 Regards,
 Pål Kristensen
 
 
 
 Thomas Bonfort-2 wrote:
 
 it doesn't put any labels in the 10 outermost pixels surrounding
 the
 generated image (as they are chopped off by tilecache's metabuffer)
 
 thomas
 
 --
 www.camptocamp.com 
 +33 4 79 26 57 97
 
 
 
 On Mon, May 25, 2009 at 16:45, paalkr pal.kristen...@statkart.no
 wrote:

 Hi!

 Thanks for the hint! The problem is that I'm using GeoWebCache and
 not
 tilecache :) Is the
 METADATA
labelcache_map_edge_buffer -10
END
 a MapServer keyword? What does it do exactly?

 Any other possible solutions?

 Regards,
 Pål Kristensen


 Thomas Bonfort-2 wrote:


 http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html
 

 regards,
 thomas

 --
 www.camptocamp.com 
 +33 4 79 26 57 97



 On Mon, May 25, 2009 at 15:00, paalkr
 pal.kristen...@statkart.no
 wrote:

 Hi!

 When creating tiles for my tilecache I have some issues regarding
 point
 labels. Using the PROCESSING label_no_clip=true works for line
 and
 polygon
 labels, but points has not area/size and will therefor newer be
 present
 in
 two neighbouring tiles. The result are clipped labels because
 only one
 tile
 will ever know about the presence of a point. If then the label
 should
 have
 been rendered into the next tile, it will be clipped. Metatiles
 (requesting
 more than one tile at a time and splitting it up on the tile
 server)
 helps,
 but only a little, as the same problem will occur between
 metatiles.

 A solution would be that MapServer rendered each tile (map) some
 percentage
 larger than requested, and then chops of the excess area before
 delivering
 the final map. A setting at the MAP level of the mapfile
 controlling
 this
 grow mechanism would be great, defining the percentage the map
 shall
 be
 extended before rendering.

 Second, is there any other way to solve the issue? Especially if
 there
 are
 already features in MapServer that can be used.

 Regards,
 Pål Kristensen



 -

 Regards,
 Pål Kristensen
 --
 View this message in context:

 http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.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 




 -

 Regards,
 Pål Kristensen
 --
 View this message in context:
 http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.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 
 
 
 
 
 -
 
 Regards,
 Pål Kristensen
 -- 
 View this message in context: 
 http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.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
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2992303.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] Point lables and tiles

2009-05-28 Thread paalkr

Hi!

OK, are there any methods that could be used to let MapServer produce a
bigger image and then chop off excess area before sending the image to the
client? I think that this would be the easiest and most flexible solution.

Regards,
Pål Kristensen



Thomas Bonfort-2 wrote:
 
 it doesn't put any labels in the 10 outermost pixels surrounding the
 generated image (as they are chopped off by tilecache's metabuffer)
 
 thomas
 
 --
 www.camptocamp.com
 +33 4 79 26 57 97
 
 
 
 On Mon, May 25, 2009 at 16:45, paalkr pal.kristen...@statkart.no wrote:

 Hi!

 Thanks for the hint! The problem is that I'm using GeoWebCache and not
 tilecache :) Is the
     METADATA
        labelcache_map_edge_buffer -10
    END
 a MapServer keyword? What does it do exactly?

 Any other possible solutions?

 Regards,
 Pål Kristensen


 Thomas Bonfort-2 wrote:

 http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html

 regards,
 thomas

 --
 www.camptocamp.com
 +33 4 79 26 57 97



 On Mon, May 25, 2009 at 15:00, paalkr pal.kristen...@statkart.no
 wrote:

 Hi!

 When creating tiles for my tilecache I have some issues regarding point
 labels. Using the PROCESSING label_no_clip=true works for line and
 polygon
 labels, but points has not area/size and will therefor newer be present
 in
 two neighbouring tiles. The result are clipped labels because only one
 tile
 will ever know about the presence of a point. If then the label should
 have
 been rendered into the next tile, it will be clipped. Metatiles
 (requesting
 more than one tile at a time and splitting it up on the tile server)
 helps,
 but only a little, as the same problem will occur between metatiles.

 A solution would be that MapServer rendered each tile (map) some
 percentage
 larger than requested, and then chops of the excess area before
 delivering
 the final map. A setting at the MAP level of the mapfile controlling
 this
 grow mechanism would be great, defining the percentage the map shall
 be
 extended before rendering.

 Second, is there any other way to solve the issue? Especially if there
 are
 already features in MapServer that can be used.

 Regards,
 Pål Kristensen



 -

 Regards,
 Pål Kristensen
 --
 View this message in context:
 http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.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




 -

 Regards,
 Pål Kristensen
 --
 View this message in context:
 http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.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
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.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] SV: Clipping out unprojectable area?

2009-05-28 Thread paalkr

Hi!

Does anyone have a clue regarding what I have to do, to sort out this issue?

Regards,
Pål Kristensen



paalkr wrote:
 
 Hi, thanks for the help!
 
 I tried your suggestion, but I didn't manage to get it to work correctly,
 this is what I did:
 
 Entered the following DATA statement:
 
 DATA geometri from ( select geometri, * from general.country where
 ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12
 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326 
 
 but I then got the following error in the MapServer logfile:
 
 [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: select
 encode(AsBinary(force_collection(force_2d(geometri)),'NDR'),'base64') as
 geom,ogc_fid from ( select geometri, * from general.country where
 ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12
 0))',4326)) ) AS country where geometri 
 GeomFromText('POLYGON((-5.89995617157446
 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202
 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446
 59.7658748898858))',4326)
 
 [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query status:
 7
 
 [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query
 error. Error (ERROR:  argument of WHERE must be type boolean, not type
 geometry
 
 Anyone that can help with this?
 
 Regards,
 Pål Kristensen
 
 
 Espen.Messel wrote:
 
 Hi.
 
 You could try something like this:
 
 DATA geometri from ( select geometri, * from general.country where
 ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12
 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326
 
 It's not very nice, but it works.
 
 Regards,
 Espen
 
 --
 Espen Messel
  
 
 -Opprinnelig melding-
 Fra: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] På vegne av paalkr
 Sendt: 12. mai 2009 16:19
 Til: mapserver-users@lists.osgeo.org
 Emne: Re: [mapserver-users] Clipping out unprojectable area?
 
 
 Hi!
 
 I'm trying to achieve the same thing, but I need some hints 
 on how to incorporate the spatial filter in the DATA 
 statement. This is a snippet from my mapfile
 
   DATA geometri from general.country USING UNIQUE 
 ogc_fid USING SRID=4326
 
 and this is the spatial filter i try to apply
 
   ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 
 0,18 84,12
 84,12 0))',4326))
 
 but I don't manage build the right the DATA statement!
 
 Can someone please help with the DATA statement?
 
 Regards,
 Pål Kristensen 
 
 
 Gregor at HostGIS wrote:
  
  With some SQL know-how I did get the EPSG database merged 
 with our own 
  spatial_ref_sys table (it has other mods for our uses, so this was
  trivial) and our program generating 
 ST_Intersection(the_geom) statements.
  
  This does work as expected, which is great. Thanks for 
 another simple 
  and elegant solution, Christopher.
  
  Now to cope with some of our data having self-intersecting polygons 
  which break such operators...
  
  -- 
  Gregor Mosheh / Greg AllensworthBS, A+, Network+, 
 Security+, Server+
  System Administrator, Lead Programmer
  HostGIS development  hosting services, http://www.HostGIS.com/
  
  Remember that no one cares if you can back up,
only if you can restore. - AMANDA
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
  
 
 
 -
 
 Regards,
 Pål Kristensen
 --
 View this message in context: 
 http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984
 7p2869427.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
 
 
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2987697.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] Hiding layers, again ;)

2009-05-28 Thread paalkr

Hi all dev!

I just want to check the status, and if there where any discussion on the
Toronto Code sprint regarding the hiding layers in different OGC services
issue? There was put up a wiki page discussing different approaches and
possible solutions

http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices

and the issue was also on the agenda for the code sprint

http://trac.osgeo.org/mapserver/wiki/TorontoCodeSprint2009Notes
http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009_Agenda#Mapserver

Regards,
Pål Kristensen

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Hiding-layers%2C-again--%29-tp2987925p2987925.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] Point lables and tiles

2009-05-25 Thread paalkr

Hi!

When creating tiles for my tilecache I have some issues regarding point
labels. Using the PROCESSING label_no_clip=true works for line and polygon
labels, but points has not area/size and will therefor newer be present in
two neighbouring tiles. The result are clipped labels because only one tile
will ever know about the presence of a point. If then the label should have
been rendered into the next tile, it will be clipped. Metatiles (requesting
more than one tile at a time and splitting it up on the tile server) helps,
but only a little, as the same problem will occur between metatiles.

A solution would be that MapServer rendered each tile (map) some percentage
larger than requested, and then chops of the excess area before delivering
the final map. A setting at the MAP level of the mapfile controlling this
grow mechanism would be great, defining the percentage the map shall be
extended before rendering.

Second, is there any other way to solve the issue? Especially if there are
already features in MapServer that can be used.

Regards,
Pål Kristensen



-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.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] Clipping out unprojectable area?

2009-05-12 Thread paalkr

Hi!

I'm trying to achieve the same thing, but I need some hints on how to
incorporate the spatial filter in the DATA statement. This is a snippet from
my mapfile

  DATA geometri from general.country USING UNIQUE ogc_fid USING
SRID=4326

and this is the spatial filter i try to apply

  ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12
84,12 0))',4326))

but I don't manage build the right the DATA statement!

Can someone please help with the DATA statement?

Regards,
Pål Kristensen 


Gregor at HostGIS wrote:
 
 With some SQL know-how I did get the EPSG database merged with our own 
 spatial_ref_sys table (it has other mods for our uses, so this was 
 trivial) and our program generating ST_Intersection(the_geom) statements.
 
 This does work as expected, which is great. Thanks for another simple 
 and elegant solution, Christopher.
 
 Now to cope with some of our data having self-intersecting polygons 
 which break such operators...
 
 -- 
 Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+
 System Administrator, Lead Programmer
 HostGIS development  hosting services, http://www.HostGIS.com/
 
 Remember that no one cares if you can back up,
   only if you can restore. - AMANDA
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2869427.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] GetFeatureInfo in XML

2009-05-05 Thread paalkr

Hi!

This is something that I'm interested in as well, could I please ask you to
share your featureinfo_nsg.xml? I would like to have a look at it to get
some hints on how to set up a XML template.

BTW: I think you can expose a new InfoFormat by setting the
wms_feature_info_mime_type keyword in the web metadata section of your
mapfile. 

Regards,
Pål Kristensen



Sven Schroeter wrote:
 
 Hi all,
 I am currently experimenting with Web Map Services and a custom PHP
 wrapper.
 In this script for a GetFeatureInfo-Request with 
 info_format=application/vnd.ogc.wms_xml or  info_format=text/xml a XML 
 document is generated.
 This works well, a XML-template is set in the mapfile dynamically:
 ...
 if($k == 'info_format'  ($v == 'application/vnd.ogc.wms_xml' || $v == 
 'text/xml')){
  $layer = $oMap-getLayerByName($layername);
  $layer-set(template, template/featureinfo_nsg.xml);
 ...
 }
 ...
 
 Two questions:
 1. Is it possible to get a featureInfo-Request in xml native by mapserver 
 (no gml)
 2. How can I tell mapserver to enhance the list of capabilities to xml? At 
 this time there comes only
 ...
 GetFeatureInfo
 Formattext/plain/Format
 Formattext/html/Format
 Formatapplication/vnd.ogc.gml/Format
 DCPType
 ...
 
 Thanks
 Sven
 
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/GetFeatureInfo-in-XML-tp2787413p2806255.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] GIF output with AGG renderer

2009-04-21 Thread paalkr

Hi!

Got any answers on this issue? I have the exact same problem. As you say,
AGG can quantize to 8bits and it should be possible and serve this as a GIF,
not only 8bits PNG (my personal opinion :) )

Regards,
Pål Kristensen


Eichner, Andreas - SID-NLK wrote:
 
 
 Hi all,
 
 I wanted to configure MS 5.2.0 to use the AGG renderer when generating
 GIF output. The web site doesn't mention the AGG renderer at all on the
 general output format page. The AGG rendering specifics page only tells
 about PNG and JPEG.
 So I'm wondering if it is possible at all. Since AGG can quantize the
 image it should be no problem to put it out as GIF. I use the graphic
 stroke but that only works with AGG...
 Any ideas about that?
 
 Thanks.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/GIF-output-with-AGG-renderer-tp2156835p2669189.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] Layer scale problem with Mercator (EPSG:900913)

2009-04-02 Thread paalkr

Hi!

Theres seems like there are some troubles with layers at different scales when 
requesting a map in EPSG:900913). I have set up the mapfile in EPSG:32633 
(WGS84, UTM zone 33), and all the layers are as well sett to be in EPSG:32633. 
When requesting maps in in UTM zone 31 to 36 the layers switches at the right 
scales. The scale intervals could be is like this:

LAYER 1
   MINSCALE 200

LAYER 2
   MAXSCALE 200
   MINSCALE 80

LAYER 3
   MAXSCALE 80
   MINSCALE 10

LAYER 4
   MAXSCALE 10

When requesting a map covering approx the same area (see attached images), 
different layers are turned on in mapserver (shows as different level of detail 
in the maps).

Is there a workaround for this? I guess that the issue has something to do with 
how scales are calculated in mapserver.

PS! The same issue is present when requesting maps in geographic coordinate 
systems like EPSG:4326. The maps are generated with WMS GetMap requests.

UTM33


Mercator


-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Layer-scale-problem-with-Mercator-%28EPSG%3A900913%29-tp2575585p2575585.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] Documentation update

2009-04-01 Thread paalkr

Bump

Pål


Done, http://trac.osgeo.org/mapserver/ticket/2909#preview

Pål


paalkr wrote:
 Hi!
 
 I would suggest that someone with the right privileges adds the following
 the the documentation
 
 In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html),
 new headline Label directives:
 PROCESSING LABEL_NO_CLIP=True
 
 In the Raster Data, Special Processing Directives
 (http://mapserver.org/input/raster.html#special-processing-directives)
 PROCESSING OVERSAMPLE_RATIO=[int]
 
 Both are quite handy, and information about usage should be easy accessible
 in the documentation.
 
 Regards,
 Pål Kristensen


Please file any documentation changes you need through the MapServer 
Issue Tracker, in the MapServer Documentation component.  Thank you. 
(otherwise mailing list emails are lost and forgotten)

-jeff



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


___
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/Documentation-update-tp2396593p2568788.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] Two questions about WMS and outputformats

2009-03-20 Thread paalkr

Hi!

Thanks! The patch works great, just the way I expected. I guess that the
same logic has to be implemented on GetLegendGraphics as well.

Regards,
Pål Kristensen


Yewondwossen Assefa wrote:
 
 ticket is updated with a possible patch.
 
 best regarads
  
 Yewondwossen Assefa wrote:
 Hi,

 There was a ticket opened for that years ago with a path to implement
 it, but was never addressed:
   (http://trac.osgeo.org/mapserver/ticket/455)
 It seems to be less controversial in functionality than the recent
 Hiding/Enabling/Ignoring Layers in OGC Web Services thread, but
 introduces another  new metadata and that by it self may be 
 controversial.  I am willing to provide a patch for now following what 
 is discussed in the bug and depending on how the OGC metadata 
 organization evolves in the coming months, we would adapt that patch. 
 Please add yourself in cc to this bug.

 Best Regards


 paalkr wrote:
 Hi!

 Is there a way to prevent the default outputformats to be exposed in
 the
 capabilities document? I have a map service where I have used AGG
 specific
 rendering capabilities, and requesting e.g a GIF image then makes a bad
 looking map and does not make sense. I would like the opportunity to
 only
 expose explicit defined formats specified with one or more OUTPUTFORMAT
 blocks.

 I don't want to disable the different drivers though, only control the
 outputformat list in the GetCapabilities response. If the only way to
 achieve this is to patch the source code, I would be glade if any of
 the
 devs could point me in the right direction.

 Regards,
 Pål Kristensen



 Frank Warmerdam wrote:
 Rahkonen Jukka wrote:
 Hi,

 By default, without having any OUTPUTFORMAT sections in the mapfile,
 Mapserver is advertising following imageformats in WMS
 GetCapabilities
 document:

  GetMap
   Formatimage/gif/Format
   Formatimage/png/Format
   Formatimage/png; mode=24bit/Format
   Formatimage/jpeg/Format
   Formatimage/vnd.wap.wbmp/Format
   Formatimage/tiff/Format
   Formatimage/svg+xml/Format 


 -- 
 
 Assefa Yewondwossen
 Software Analyst

 Email: ass...@dmsolutions.ca
 http://www.dmsolutions.ca/

 Phone: (613) 565-5056 (ext 14)
 Fax:   (613) 565-0925
 


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


 
 
 
 -- 
 
 Assefa Yewondwossen
 Software Analyst
 
 Email: ass...@dmsolutions.ca
 http://www.dmsolutions.ca/
 
 Phone: (613) 565-5056 (ext 14)
 Fax:   (613) 565-0925
 
 
 ___
 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/Re%3A-Two-questions-about-WMS-and-outputformats-tp2486969p2508701.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] Two questions about WMS and outputformats

2009-03-17 Thread paalkr

Hi!

Is there a way to prevent the default outputformats to be exposed in the
capabilities document? I have a map service where I have used AGG specific
rendering capabilities, and requesting e.g a GIF image then makes a bad
looking map and does not make sense. I would like the opportunity to only
expose explicit defined formats specified with one or more OUTPUTFORMAT
blocks.

I don't want to disable the different drivers though, only control the
outputformat list in the GetCapabilities response. If the only way to
achieve this is to patch the source code, I would be glade if any of the
devs could point me in the right direction.

Regards,
Pål Kristensen



Frank Warmerdam wrote:
 
 Rahkonen Jukka wrote:
 Hi,
 
 By default, without having any OUTPUTFORMAT sections in the mapfile,
 Mapserver is advertising following imageformats in WMS GetCapabilities
 document:
 
  GetMap
   Formatimage/gif/Format
   Formatimage/png/Format
   Formatimage/png; mode=24bit/Format
   Formatimage/jpeg/Format
   Formatimage/vnd.wap.wbmp/Format
   Formatimage/tiff/Format
   Formatimage/svg+xml/Format 
 
 

-- 
View this message in context: 
http://n2.nabble.com/Re%3A-Two-questions-about-WMS-and-outputformats-tp2486969p2493151.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] Problems with Google 900913 Projection and WMS Layers

2009-03-17 Thread paalkr

Hi!

Which file did you add the 900913 coordinate system block to? You have to
add it to the epsg file, I have done that my self and has no trouble
(regarding coordinate system support) when adding a WMS service from
MapServer in Google Maps.

Regards,
Pål Kristensen



Bill Thoen wrote:
 
 ..
 I did put the definition for the Google CRS in /usr/share/proj/defs as:
 
 # Google's spherical mercator projection
 900913 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs 
 ...
 

-- 
View this message in context: 
http://n2.nabble.com/Problems-with-Google-900913-Projection-and-WMS-Layers-tp2494052p2494106.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] WFS and PostGIS newbie question

2009-03-17 Thread paalkr

Hi!

CONNECTIONTYPE WFS is used when MapServer acts as a WFS client, i.e
consuming a WFS service. If I understood you correctly, you are trying to
serve out a WFS service with data stored in PostgreSQL/PostGIS. I think the
following documents should be of great help to you:

WFS server howto: http://mapserver.org/ogc/wfs_server.html
Data input/PostGIS: http://mapserver.org/input/vector/postgis.html

Regards,
Pål Kristensen


SeeJay wrote:
 
 I'm trying to learn Mapserver/OpenLayers/PostGIS and have made slow but
 steady progress so far.  But I'm pretty stuck now.  
 
 I'm trying to create my first WFS using point data stored in PostGIS. 
 From the examples I have seen on the web it seems that CONNECTIONTYPE has
 to be WFS, but I can't figure out where I specifiy the PostGIS connection
 parameters?  Can someone post an example of what this should look like?
 
 Thanks,
 CJ
 

-- 
View this message in context: 
http://n2.nabble.com/WFS-and-PostGIS-newbie-question-tp2493398p2494148.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] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing

2009-03-07 Thread paalkr

Hi!

Have you set the ows_onlineresource parameter in the WEB element in the
mapfile?

Regards,
Pål Kristensen



Cassiel wrote:
 
 I must say that this issue arised when I moved the website to another
 webserver... same OS, debian lenny, but different arch 32bit - amd64.
 The 32 bit machine was hosting only one website.
 
 Te new amd64 webserver hosts two sites (name based virtual host) so the
 wms
 request is served by a virtual host (Apache 2.2), same ip address for two
 dns. Could it be a dns related issue? does mapserv bin complains about
 virtual hosts?
 
 Since I switched from the old machine to the new I can't get no wms layer
 with QGis even with the version request variable (it was there from the
 start).
 
 This is my WMS link:
 
 http://193.206.192.55/cgi-bin/rf_mapserv?SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities
 
 www.catastocen.apat.it is the dns name.
 
 If you substitute the numeric address with the dns one mapserver returns a
 binary file...
 
 thanks for responding
 regards
 
 raffaele
 
 
 
 2009/3/6 paalkr pal.kristen...@statkart.no
 

 Hi!

 This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is
 a
 optional parameter in the GetCapabilities request, as described in the
 WMS
 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of
 MapServer
 the version parameter was treated as mandatory.

 You can resolve your issue in to different ways:
 1) Add a version=1.1.1 to your service URL in Qgis
 2) Upgrade to MapServer 5.2.0 or later.

 Regards,
 Pål Kristensen


 Cassiel wrote:
 
  Hi you all,
 
  I am getting this error using Mapserver 5.0.3 on debian lenny when
  querying
  for WMS available layers on Qgis.
 
  Querying with iceweasel on debian works , i.e. the proper xml file is
  returned, while it does not on Mac OS X.
 
  Any hints?
 
  Regards
  Raffaele
 
  ___
  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/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.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://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2442129.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] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing

2009-03-06 Thread paalkr

Hi!

This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is a
optional parameter in the GetCapabilities request, as described in the WMS
1.1.1 specification, chapter 7.1.2, table 4. In earlier version of MapServer
the version parameter was treated as mandatory.

You can resolve your issue in to different ways:
1) Add a version=1.1.1 to your service URL in Qgis
2) Upgrade to MapServer 5.2.0 or later.

Regards,
Pål Kristensen


Cassiel wrote:
 
 Hi you all,
 
 I am getting this error using Mapserver 5.0.3 on debian lenny when
 querying
 for WMS available layers on Qgis.
 
 Querying with iceweasel on debian works , i.e. the proper xml file is
 returned, while it does not on Mac OS X.
 
 Any hints?
 
 Regards
 Raffaele
 
 ___
 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/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.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] Documentation update

2009-02-27 Thread paalkr

Hi!

I would suggest that someone with the right privileges adds the following
the the documentation

In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html),
new headline Label directives:
PROCESSING LABEL_NO_CLIP=True

In the Raster Data, Special Processing Directives
(http://mapserver.org/input/raster.html#special-processing-directives)
PROCESSING OVERSAMPLE_RATIO=[int]

Both are quite handy, and information about usage should be easy accessible
in the documentation.

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/Documentation-update-tp2396593p2396593.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] Status on ticket 2582?

2009-02-23 Thread paalkr

Great!

Regards,
Pål Kristensen


Alan Boudreault wrote:
 
 I'll make the RFC in the next days.
 
 Alan
 
 On February 23, 2009 01:09:36 pm Steve Lime wrote:
 Hi guys: I think we need a small RFC on this issue. The impacts are too
 broad to handle
 without a formal plan. Anyone care to take the lead?

 Steve

  On 2/22/2009 at 4:51 PM, in message

 1235343099022-2369505.p...@n2.nabble.com,

 paalkr pal.kristen...@statkart.no wrote:
  Hi!
 
  Good idea, this could even make the dump == false / true for OWS

 redundant.

  Adding wfs_disable_request 'all' would effectively prevent wfs

 support.

  Adding wms_disable_request 'GetFeatureinfo' would be the same as dump

 ==

  false on a WMS layer.
 
  I think the following situations are the most common where this

 hiding

  functionality would be needed:
 
  1) Adding a copyright statement to a map. Hiding the layer and

 setting

  status to default will insure that the label is rendered regardless

 of

  requested layers.
  2) Exposing different raster resolution layers as one logical

 layer. This

  can be achieved in two different ways
  a) adding all the raster layers (status == default) to a group as

 hidden

  layers (the group will (should) then become hidden as well), then add

 a

  dummy layer (which don't draws anything) with the same name as the

 group.

  Requesting the dummy layer would actually also request the group

 because the

  name is identical.
  b) adding all the layers as hidden single layers (status == default)

 and use

  the requires mechanism to set dependencies to a dummy layer.
  3) Hiding tileindex layers. Setting up the tileindex as a separate

 layer is

  the only way of adding a tileindex to e.g PostgreSQL atm.
  4) Enable / expose some layers only for certain service types (wms,

 wfs,

  sos, wcs)
  5) Limit the users ability to interact and change the map

 appearance.

  Anyway. I hope that either Martins patch is added to 5.4 or that we

 agree on

  something similar, in time to reach the 5.4 release.
 
  Regards,
  Pål Kristensen
 
  Martin Kofahl wrote:
  Hi,
  it becomes apparent that we try to solve different issues with

 hiding,

  ignoring and so on. We should try to find an implementation which

 also

  solves related tickets but is open for future requirements.
 
  So couldn't we use a metadata like [service]_disable_request which

 lists

  all request type (per service) MapServer shouldn't support for a

 layer?

  Maybe expanded with the request type 'all'. Possible examples:
 
   wms_disable_request 'all'
   wms_disable_request 'getcapabilities getfeatureinfo'
 
  This should solve tickets 337, 1952, 2582.
  What do you think?
 
  Martin
 
  --
  View this message in context:
  http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.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
 
 ___
 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/Status-on-ticket-2582--tp2337548p2374868.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] Status on ticket 2582?

2009-02-21 Thread paalkr

Hi all!

See my comments in italic below


Martin Kofahl wrote:
 
 Hi,
 I think the second patch for ticket 1952 already covers some of these
 issues for the wms service (one can easily change ows_service to 
 ows_hidden_layer -- I think 'hidden' makes even more sense than 'ignore'):
 
 I agree, and I have actually used your patch with great success in many
 cases.
 
 1) The hiding mechanism must not interfere with which layers that 
 actually are rendered (turned on).
 ... only suppresses the capabilities output.
 
 Perfect
 
 2) What will happen if the hidden layer is inside a GROUP?
 ... the single layer is hidden
 
 As expected
 
 3) What will happen if all layers inside a GROUP is hidden?
 ... as far I remember, the mentioned patch currently hides the whole
 group and its layers. In order to support grouped layers for different
 resolutions, my workaround was to hide any layer in this group (hence no
 capabilities) and to have a single not-grouped, not-hidden layer with
 the name identical to the group name.
 When all grouped layers are hidden and we decide to expose it as a sigle
 layer as Pål suggests, the question is which metadata to use.
 
 I did not think of the opportunity to have single layer with the same name
 as the group, but this sounds like a more sensible solution then
 transforming a group layer to a single layer. Specially when it comes to
 decide which metadata to expose.
 
 4) What will happen if the hidden layer is part of a group defined 
 with the wms_layer_group metadata tag?
 ... should work similar to 2 und 3. But currently I have no idea what 
 the patch does with wms_layer_group layers.
 
 Me neither :-)
 
 Regards,
 Pål Kristensen
 
 paalkr wrote:
 Hi All!
 
 I glad this issue got some focus, and I must say that I was kind of 
 surprised realizing that ticket 2582 only addressed the MapScript 
 part. Anyway, I'm very glad that Jeff now proposes a final solution 
 for this issue, that of course should be fixed in both cgi and 
 MapScript, and for every service type.
 
 Jeffs proposal for a boolean metadata keyword, like ignore_layer 
 sound OK, but maybe ows_ignore_layer is more appropriate as the layer
  obviously shall not be ignored, only the exposure in the 
 GetCapabilities document. I think the following aspects are important
  to have in mind when resolving the issue:
 
 1) The hiding mechanism must not interfere with which layers that 
 actually are rendered (turned on) . This has to be controlled as 
 before by the STATUS, SCALE and DEPENDENCIES keywords. 2) What will 
 happen if the hidden layer is inside a GROUP? 3) What will happen if
  all layers inside a GROUP is hidden? I would suggest that the group
  layer is exposed as a single layer, in this way you could have 
 different resolution layers inside a GROUP and expose this as a 
 single layer to the end user. Often the different resolution layers 
 are only present to optimize rendering speed, and are not intended 
 for the end user. 4) What will happen if the hidden layer is part of
  a group defined with the wms_layer_group metadata tag?
 
 Regards, Pål Kristensen
 
 
 Jeff McKenna wrote:
 Alan Boudreault wrote:
 It could. By the fact that a status MS_DELETE can only be set 
 through Mapscript, i've only added this part. I think the ticket
  have been open for that ? You could add a comment in the ticket
  to propose a specific mapfile setting.
 
 Alan
 I've made a comment in that ticket, and I am proposing we finally 
 fix this through an old existing ticket 
 (http://trac.osgeo.org/mapserver/ticket/337).
 
 -jeff
 
 
 ___
 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/Status-on-ticket-2582--tp2337548p2363221.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] Status on ticket 2582?

2009-02-17 Thread paalkr

Hi!

Thanks Daniel for taking responsibility for this issue, which has been
around for far to long :-) I agree that ticket 1952 discusses a more
flexible functionality, but I don't think we need to make this more
complicated than it is already. I can't see a situation where you would like
to hide a layer from one service type, but not in an other (but thats my
opinion). Fixing the 2582 bug would satisfy many of the user needs on this
issue.

Taking the GROUP functionality into consideration seems to be important, as
this possibly could cause some mixup if a hidden layer is inside a group
layer. What if all layers inside a GROUP is hidden? Should the group layer
still be exposed in the capabilities document? I'd say yes, but other may
have a different opinion.

Regards,
Pål Kristensen


Martin Kofahl wrote:
 
 Perfect! Although the solution described in ticket 1952 might be more 
 flexible for future use.
 
 Daniel Morissette wrote:
 paalkr wrote:
 Hi all devs!

 What is the status on ticket 
 http://trac.osgeo.org/mapserver/ticket/2582
 2582 ? Is this going to be included in 5.4?

 
 Yes, we'll take care of it for 5.4.
 
 Daniel
 ___
 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/Status-on-ticket-2582--tp2337548p2341220.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] Status on ticket 2582?

2009-02-16 Thread paalkr

Hi all devs!

What is the status on ticket  http://trac.osgeo.org/mapserver/ticket/2582
2582 ? Is this going to be included in 5.4?


Regards,
Pål Kristensen 
-- 
View this message in context: 
http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2337548.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] Full CADRG and VPF support

2009-02-12 Thread paalkr

Hi!

I would guess that there is a mismatch in the location attribute path in
conjunction with the shapepath in the mapfile. These values are concatenated
at runtime to build up the full path to each raster cell. Have you turned om
logging in the mapfile, do you get any error messages?

One way to find out if the geometry in the tileindex is correct, is to
render the tileindex as a vector layer and visually see if the raster
footprints are located as expected. If the are, the error is most likely to
be the path issue.

Regards,
Pål Kristensen


purnomod wrote:
 
 Hi paalkr,
 
 I have tried as per your suggestion. The gdaltindex is working fine and it
 created the tile index shape file with location attribute. the issue is
 when I open the layer in the GAIA it did not show anything. is there
 anything else that I need to do to make it work. The below is my mapserver
 configudation. 
 
 Thank you very much in advance for your help
 
 LAYER
   NAME 'WMTS-006'
   STATUS ON
   DEBUG 5
   TILEINDEX rpf_job.shp
   TILEITEM location
   GROUP JOG 
   TYPE RASTER
   MAXSCALE 100
   #MINSCALE 1 
   PROCESSING RESAMPLE=AVERAGE 
 #PROCESSING RESAMPLE=BILINEAR 
 PROCESSING OVERSAMPLE_RATIO=8 # 8 improves the output image greatly,
 could try other values 
 GROUP JOG 
 METADATA 
  wms_title JOG Mosaic 
  wms_group_title JOG 
  wms_style Default 
  END 
 PROJECTION 
 init=epsg:4326 
 END 
 END # Layer
 

-- 
View this message in context: 
http://n2.nabble.com/Full-CADRG-and-VPF-support-tp1972100p2317029.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] exclude layer from wms capabilities

2009-02-04 Thread paalkr

Hi!

This issue has been discussed several times in the past. Se the links below
for some more information: 
http://n2.nabble.com/Hiding-overviews-tt1970417.html#a1970417
http://n2.nabble.com/GetCapabilities-for-a-specific-layer%2C-not-the-entire-mapfile--tt1970666.html#a1970668

There is also a patch available which I have used with great success.
http://trac.osgeo.org/mapserver/ticket/1952
This patch has to be considered a quickfix, as long as the ticket below is
not resolved.
http://trac.osgeo.org/mapserver/ticket/2582

I really hope that this issue will be fixed for the 5.4 release. Some
people, you and me included, requests this functionality from time to time.
The issue is recognized as a bug and therefore should be fixed. I think the
best approach would be to take the MS_DELETE keyword into consideration when
requesting capabilities (as described in ticket 2582)

Regards,
Pål Kristensen
 

Martin Kofahl wrote:
 
 I've got a copyright layer in a map file, status is default. Is there a 
 way to hide this annotation layer in the capabilities output?
 
 Martin
 ___
 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/exclude-layer-from-wms-capabilities-tp2259954p2268004.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] FORMATOPTION PALETTE_FORCE=TRUE problem

2009-01-06 Thread paalkr

Hi!

I have tried to use the FORMATOPTION PALETTE_FORCE=TRUE with no luck. I've
goth this error message all the time:

[Tue Jan  6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag),
0.161s
[Tue Jan  6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jan  6 15:26:05 2009].410010 msDrawMap() total time: 0.170s
[Tue Jan  6 15:26:05 2009].416062 Invalid number of colors in palette:
Unable to access file. libpng error ()
[Tue Jan  6 15:26:05 2009].416108 ms_png_write_image_init(): General error
message. error writing png header (via longjmp)
[Tue Jan  6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error
message. error in png header writing
[Tue Jan  6 15:26:05 2009].416122 msSaveImage() total time: 0.006s
[Tue Jan  6 15:26:05 2009].416170 mapserv request processing time (msLoadMap
not incl.): 0.177s

My ouputformat is defined like this:

   OUTPUTFORMAT
  NAME png8bit
  DRIVER AGG/PNG
  MIMETYPE image/png
  EXTENSION png
  FORMATOPTION PALETTE_FORCE=TRUE
  FORMATOPTION PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt
  FORMATOPTION INTERLACE=OFF
   END

The palette.txt file is attached
http://n2.nabble.com/file/n2117781/palette.txt palette.txt 

Does anyone know whats wrong?
BTW: This is MapServer 5.2.1 on RedHat.

Regards,
Pål Kristensen
-- 
View this message in context: 
http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.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] FORMATOPTION PALETTE_FORCE=TRUE problem

2009-01-06 Thread paalkr

Hi Thomas,

thanks for the quick answer! Applying ,255 at the end of every record in
the palette.txt file worked, but when I made the WMS GetMap request I got an
image in return where all the areas that should have been transparent where
black (transparent=true). When using transparent=false I got an image in
return where the nodata areas were filled with the bgcolor parameter
value, which is of course the right response.

The original palette.txt file with only r,g,b values caused the mentioned
error message with both transparent=true and transparent=false, but I
suspected it to work in the latter case.

Adding imagemode rgba didn't do any difference in any way. What exactly
should the effect of adding this to the outputformat be? 


Regards,
Pål Kristensen


thomas bonfort wrote:
 
 are you calling this with a transparent=true ??
 in that cas, your palette file should be a list of quadruplets
 (r,g,b,a) (and it would be better to have an outputformat with
 imagemode rgba, and use that one instead of passing transparent=true)
 
 thomas
 
 On Tue, Jan 6, 2009 at 15:56, paalkr pal.kristen...@statkart.no wrote:

 Hi!

 I have tried to use the FORMATOPTION PALETTE_FORCE=TRUE with no luck.
 I've
 goth this error message all the time:

 [Tue Jan  6 15:26:05 2009].409786 msDrawMap(): Layer 3 (N500Hoydelag),
 0.161s
 [Tue Jan  6 15:26:05 2009].409998 msDrawMap(): Drawing Label Cache,
 0.000s
 [Tue Jan  6 15:26:05 2009].410010 msDrawMap() total time: 0.170s
 [Tue Jan  6 15:26:05 2009].416062 Invalid number of colors in palette:
 Unable to access file. libpng error ()
 [Tue Jan  6 15:26:05 2009].416108 ms_png_write_image_init(): General
 error
 message. error writing png header (via longjmp)
 [Tue Jan  6 15:26:05 2009].416115 msSaveImageRGBAPalette(): General error
 message. error in png header writing
 [Tue Jan  6 15:26:05 2009].416122 msSaveImage() total time: 0.006s
 [Tue Jan  6 15:26:05 2009].416170 mapserv request processing time
 (msLoadMap
 not incl.): 0.177s

 My ouputformat is defined like this:

   OUTPUTFORMAT
  NAME png8bit
  DRIVER AGG/PNG
  MIMETYPE image/png
  EXTENSION png
  FORMATOPTION PALETTE_FORCE=TRUE
  FORMATOPTION PALETTE=/opt/maps/kartdata2/mapfiles/palette.txt
  FORMATOPTION INTERLACE=OFF
   END

 The palette.txt file is attached
 http://n2.nabble.com/file/n2117781/palette.txt palette.txt

 Does anyone know whats wrong?
 BTW: This is MapServer 5.2.1 on RedHat.

 Regards,
 Pål Kristensen
 --
 View this message in context:
 http://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2117781.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://n2.nabble.com/FORMATOPTION-%22PALETTE_FORCE%3DTRUE%22-problem-tp2117781p2118972.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