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

2009-05-28 Thread Dan Little

Is map.phtml giving the Internal Server Error or is there a  tag being 
rendered by map.phtml that has an internal server error?

Also, what does your error log show? Which OS are you running?



- Original Message 
> From: Gonzalo Lionel Rodriguez 
> To: mapserver-users@lists.osgeo.org
> Sent: Wednesday, May 27, 2009 11:16:59 PM
> Subject: [mapserver-users] MapServer: Premature end of script headers
> 
> Hi everyone,
> 
> I have mapserver:
> 
> mapserv -v
> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
> SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7
> INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE
> 
> With pmapper and i have a Internal Server Error:
> 
> [Thu May 28 01:09:20 2009] [error] [client 190.XXX.XXX.XXX] Premature
> end of script headers: /home/orsep/public_html/gis2/map.phtml
> 
> I find some 'solutions' but dont work, the mapserver permissions is
> 755 and have the right user:group.
> 
> Any Idea?
> 
> Kind regards
> ___
> 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] 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  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 
>>> 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] expressions and threshold color

2009-05-28 Thread Chad Clabaugh
 Hello,

 

I'm attempting to color layers by their threshold values.  When I use the
following mapfile it is only coloring two layers instead of three.  Also the
layer its coloring changes based on the value in the expression but the
areas of each layer never change.  Am I going about this correctly?

 

  LAYER

NAME Coverage

TYPE POLYGON

STATUS DEFAULT

DATA ftwtest

 

PROJECTION

  "init=epsg:4326"

END

 

CLASSGROUP "Coverage group"

  CLASS

EXPRESSION ([THRESHOLD] >= -68)

STYLE

COLOR 255 0 0

END

  END

  CLASS

EXPRESSION ([THRESHOLD] >= -73)

STYLE

COLOR 0 255 0

END

  END

  CLASS

EXPRESSION ([THRESHOLD] >= -100)

STYLE

COLOR 0 0 255

END

  END

 

Thank you.

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


[mapserver-users] expressions and threshold color (solution found)

2009-05-28 Thread Chad Clabaugh
I checked the threshold values contained within my dataset and found that
the ranges were not what I expected and I was outside of that range.
Everything works properly after tweaking the threshold values.  Thanks!

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Chad Clabaugh
Sent: Thursday, May 28, 2009 9:45 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] expressions and threshold color

 

 Hello,

 

I'm attempting to color layers by their threshold values.  When I use the
following mapfile it is only coloring two layers instead of three.  Also the
layer its coloring changes based on the value in the expression but the
areas of each layer never change.  Am I going about this correctly?

 

  LAYER

NAME Coverage

TYPE POLYGON

STATUS DEFAULT

DATA ftwtest

 

PROJECTION

  "init=epsg:4326"

END

 

CLASSGROUP "Coverage group"

  CLASS

EXPRESSION ([THRESHOLD] >= -68)

STYLE

COLOR 255 0 0

END

  END

  CLASS

EXPRESSION ([THRESHOLD] >= -73)

STYLE

COLOR 0 255 0

END

  END

  CLASS

EXPRESSION ([THRESHOLD] >= -100)

STYLE

COLOR 0 0 255

END

  END

 

Thank you.

___
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] Finding the centroid given the feature

2009-05-28 Thread Varun saraf
Hi,

I know mapserver uses a point-in-polygon method to find a feature
given a set of co-ordinates, but can it do the same thing reversed?
For example. Each polygon I draw has a number associated with it which
is in a "dbf" file with the same name as the "shp" file that mapserver
uses to draw the polygons. My current map file allows me to fetch that
unique number whenever I pass the co-ordinates of any point inside
that polygon (mapserver uses the point-in-polygon method to fetch me
the polygonID). The query I use is

http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMap.map&mode=query&mapxy=-77.098617
38.87795

where mapxy keeps changing based on the user's click. The html
template I send just has the variable name [polygonID] which helps me
get the polygon ID of the point I specify in the mapxy variable. Now,
is there a way in which I can send this polygonID to mapserver and get
hold of any point (perhaps the centroid) inside of this polygon? Can
someone point me in the right direction here?

Thanks a lot.

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


[mapserver-users] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
Hello guys...
I know It is a Openlayer question, but maybe someone here can help-me...


I did a simple sample to show my problem... My layer sometimes is 100%
showed, but when I zoom, several pink layers appears... Its absolute
RANDOM...

--> If I click right on the image, and get the image URL and PASTE on
browser, I CAN SEE THE IMAGE... So It was created fine...
Help? I´m getting crazy ...

ps.: Using Windows XP + IIS

Code:

Javascript :
var map, layer;

function init() {
map = new OpenLayers.Map('map', {
numZoomLevels: 14,
units: "meters",
controls: [
new OpenLayers.Control.ZoomToMaxExtent(),
new OpenLayers.Control.PanZoomBar({ zoomWorldIcon: true
}),
new OpenLayers.Control.LayerSwitcher({ 'ascending':
false }),
new OpenLayers.Control.MousePosition(),
new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.KeyboardDefaults()
]
});
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10;
layer = new OpenLayers.Layer.MapServer("Sample", "
http://localhost/cgi-bin/mapserv.exe";, { map: "C:/Sample/Openlayer/Map.map",
layers: "Test" });

map.addLayer(layer);
map.zoomToMaxExtent();




Mapfile

MAP
EXTENT -79.7892 -34.2426 -24.9958 6.11775
FONTSET "Fonts\Fonts.txt"
IMAGECOLOR 230 254 254
IMAGETYPE png
SIZE 800 600
STATUS ON
UNITS dd
NAME "Test"

OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE "PC256"
TRANSPARENT FALSE
END

PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END

WEB
IMAGEPATH 'C:\map\temp'
IMAGEURL '/tmp/'
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END

QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
END

REFERENCE
EXTENT -79.7892 -34.2426 -24.9958 6.11775
STATUS on
SIZE 221 150
MINBOXSIZE 5
MAXBOXSIZE 150
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MARKERSIZE 8
END

LAYER
NAME Test
GROUP "Tests"
TYPE POLYGON
STATUS default
CONNECTIONTYPE POSTGIS
CONNECTION "user=xpassword=xdbname=x host=x port=5432"
DATA "the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1"
CLASS
COLOR 255 0 255
END
END

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


Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Daniel Morissette

Paul james wrote:


--> If I click right on the image, and get the image URL and PASTE on 
browser, I CAN SEE THE IMAGE... So It was created fine...

Help? I´m getting crazy ...

ps.: Using Windows XP + IIS



Did you check your IIS logs? It could be that you have too many 
connections at the same time when OpenLayers loads the map and IIS 
rejects some of them.


--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Custom CRS/SRS (Malaysia)

2009-05-28 Thread Bruce Foster
All,
Apologies if this has been asked before and cross posting. Well, in dire
situation.

I'm working on a project in Malaysia and the ran into major road block
because of the local projection. All existing datasets are in
older Cassini projection. They have 9 state level Cassini projection for
cadastal work and they have different origin. It uses Everest 1830 Modified
for spheroid.

They are moving to their new projection called GDM2000 and they have EPSG
entries. But the older cassini dont have EPSG entries. this puts me in real
fix.

ArcGIS has the projection parameters for cassini and I dont find any details
in spatialreferece or EPSG.org.

My work involves GeoServer and PostGIS. Can you plesae guide and help me
with this? How do I put a custom projection and how do I work on a
projection that dont have EPSG? Since we work lot on EPSG with GeoServer and
PostGIS, how can we support the non standard one.

This is the CRS parameters;

PROJCS["Malaysia_Cassini_Kelantan",GEOGCS["GCS_Kertau",DATUM["D_Kertau",SPHEROID["Everest_1830_Modified",6377304.063,300.8017]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Cassini"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",102.8952083],PARAMETER["Scale_Factor",1],PARAMETER["Latitude_Of_Origin",4.946141667],UNIT["Meter",1]]

any guru out there help me?

another question, can this be reprojected to WGS84 using on the fly
reprojection in GeoServer and PostGIS?

Thanks a lot

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


RE: [mapserver-users] Problems getting a JP2 or TIFF raster layerdrawen

2009-05-28 Thread Pano Voudouris
You are right Jukka. It DOES work. Not sure what I was doing there! Just
retried it and its fine.
Pano

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: 27 May 2009 11:45
To: Pano Voudouris; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF raster
layerdrawen

Hi,

I just tried, and for me Mapserver 5.2.1 with mode=map does show rasters as
well. Have you selected the layers to be shown with "&layers=..."? Naturally
if their status is DEFAULT this is not needed.

-Jukka Rahkonen-
 

> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
> Pano Voudouris
> Lähetetty: 27. toukokuuta 2009 11:23
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: RE: [mapserver-users] Problems getting a JP2 or TIFF 
> raster layerdrawen
> 
> How are you trying to display the mapfile? Just by using cgi-bin? E.g.
> .../mapserv.exe?map=&mode=map ...etc?
> I have found- and I am not sure if this is a bug or not that 
> the mode=map ignores any raster layers. If you use 
> mode=browse or mapscript it works w/out a problem. Anyone? Is 
> this a known issue??
> 
> Pano
> 
> 
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
> Michael Da Silva Pereira
> Sent: 27 May 2009 10:15
> To: David Martinez Morata
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF 
> raster layer drawen
> 
> Hi,
> 
> I've tried by even disabling my shapefile all together and 
> only trying to display the raster and still no luck.
> 
> Thanks
> 
> 2009/5/27 David Martinez Morata :
> > Hello.
> > Try to change the palcement of your layers and configure 
> your shape  
> > with TRANSPARENT TRUE varible..
> > Something like
> >
> > LAYER
> >        NAME '2627D'
> >        TYPE RASTER
> >        STATUS ON
> >        DATA "/var/www/ms-tmp/2627D.JP2"
> > END
> > LAYER
> >        NAME vereenigingroads
> >        STATUS ON
> >        DATA vereenigingroads/
> > vereenigingroads.shp
> >        TYPE LINE
> > TRANSPARENT TRUE
> >        CLASS
> >                NAME 'the world'
> >                COLOR 0 0 0
> >        END
> > END
> >
> > 2009/5/27 Michael Da Silva Pereira
> 
> >>
> >> Hi,
> >>
> >> I am having a problem displaying a JP2 / TIFF image in 
> mapserver, it 
> >> draws my shape files. However I can not get it to draw my RASTER 
> >> layer :(
> >>
> >> Any Suggestions?
> >>
> >>
> >>
> >>
> >> MAP
> >>        SIZE 1300 600
> >>        DEBUG 5
> >>
> >>        EXTENT 23.5 -34 23.6 -25
> >>        IMAGECOLOR 180 180 250
> >>        UNITS DD
> >>        SCALEBAR
> >>                STATUS EMBED
> >>                UNITS KILOMETERS
> >>                INTERVALS 3
> >>                TRANSPARENT TRUE
> >>                OUTLINECOLOR 0 0 0
> >>        END
> >> LEGEND
> >>        STATUS EMBED
> >>        POSITION LR
> >>        TRANSPARENT TRUE
> >> END
> >> WEB
> >>        TEMPLATE global.html
> >>        IMAGEPATH "/var/www/ms-tmp/"
> >>        IMAGEURL "/ms-tmp/"
> >> END
> >> LAYER
> >>        NAME vereenigingroads
> >>        STATUS ON
> >>        DATA vereenigingroads/vereenigingroads.shp
> >>        TYPE LINE
> >>        CLASS
> >>                NAME 'the world'
> >>                COLOR 0 0 0
> >>        END
> >> END
> >> LAYER
> >>        NAME '2627D'
> >>        TYPE RASTER
> >>        STATUS ON
> >>        DATA "/var/www/ms-tmp/2627D.JP2"
> >> END
> >> END
> >>
> >> r...@michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v 
> >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
> OUTPUT=WBMP 
> >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV 
> >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE
> >>
> >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27 
> >> 08:47:04 2009].845677 msDrawMap(): Layer 0 
> (vereenigingroads), 0.039s 
> >> [Wed May 27 08:47:04 2009].845729 
> msDrawRasterLayerLow(2627D): entering.
> >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 
> >> 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap(): 
> Drawing Label 
> >> Cache,
> 0.000s
> >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 
> 1.326s [Wed 
> >> May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s [Wed 
> >> May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8.
> >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at
> 0x911d508.
> >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at
> 0x911e1d0.
> >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at
> 0x9246188.
> >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at
> 0x92fea48.
> >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s
> >>
> >>
> >> r...@michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M    
> >> 2627D.JP2
> >>
> >>

Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
Hi Daniel!
I ckecked the IIS Log...
And I´m getting 403 to the pink tiles :
16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403

The IIS specification :

*403 *- Forbidden. IIS defines a number of different 403 errors that
indicate a more specific cause of the error:

*403.1* - Execute access forbidden.
*403.2* - Read access forbidden.
*403.3* - Write access forbidden.
*403.4* - SSL required.
*403.5* - SSL 128 required.
*403.6* - IP address rejected.
*403.7* - Client certificate required.
*403.8* - Site access denied.
*403.9* - Too many users.
*403.10* - Invalid configuration.
*403.11* - Password change.
*403.12* - Mapper denied access.
*403.13* - Client certificate revoked.
*403.14* - Directory listing denied.
*403.15* - Client Access Licenses exceeded.
*403.16* - Client certificate is untrusted or invalid.
*403.17* - Client certificate has expired or is not yet valid.
*403.18* - Cannot execute requested URL in the current application pool.
This error code is specific to IIS 6.0.
*403.19* - Cannot execute CGIs for the client in this application pool. This
error code is specific to IIS 6.0.
*403.20* - Passport logon failed. This error code is specific to IIS 6.0.


Do you know how to "fix" that?

Thanks

On Thu, May 28, 2009 at 12:12 PM, Daniel Morissette <
dmorisse...@mapgears.com> wrote:

> Paul james wrote:
>
>>
>> --> If I click right on the image, and get the image URL and PASTE on
>> browser, I CAN SEE THE IMAGE... So It was created fine...
>> Help? I´m getting crazy ...
>>
>> ps.: Using Windows XP + IIS
>>
>>
> Did you check your IIS logs? It could be that you have too many connections
> at the same time when OpenLayers loads the map and IIS rejects some of them.
>
> --
> Daniel Morissette
> http://www.mapgears.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] problems with 'MapServer Itasca Application (ms v5.0)'

2009-05-28 Thread Pano Voudouris
Which version of MapServer are you using? You can find it by running in a
command prompt: mapserv -v
Think that in the latest versions all Mapserver templates must have in their
first line the string "MapServer Template" even if it is as a comment. In
your case this would be the itasca_basic.html file...

Pano

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andre
Steenveld sr
Sent: 28 May 2009 00:56
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms
v5.0)'

Hi,

I try to install mapserver and to get it going but I run into some
problems.
Can someone advise me on what I'm doing wrong?

This is what I have (and have done).

Systems: 
1) Windows Vista, dutch version.
2) Windows XP, dutch version.

Installed mapserver as suggested in
http://www.mapserver.org/introduction.html#introduction
Om 1) in E:\usr\local\OSGeo4W
On 2) in c:\OSGeo4W

On both systems 'MapServer v. 5.0'

Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get
the expected result 
'No query information to decode. QUERY_STRING is set, but empty.' (on
both systems)

Installed 'mapserver demo', added an alias in the apache configuration
file, added another section with access rights for /workshop/ (was
undocumented), restarted apache and changed the index.html file.

The two aliasses in the apache configuration and the section on rights
are:
Alias /ms_tmp/ "E:\usr\local\OSGeo4W/tmp/ms_tmp/"
Alias /workshop/   "E:\usr\local\OSGeo4W/apps/workshop-5.0/"
...

AllowOverride None
Options None
Order allow,deny
Allow from all


When I open http://127.0.0.1/workshop/ I get a page with a form which
looks normal.
In that form I select 'Basic Application' and click on the [Initialize]
button. The result is an error message. (on both systems)

Content-type: text/html isValidTemplate(): Web application error.
Missing magic string, itasca_basic.html doesn't look like a MapServer
template.

I have no idea what is going wrong. Tried to find it in the
documentation and archive of this list but nothing came up. 
The problems might have to do with the changes needed in index.html, it
is not completely clear to me what kind of information is needed. This
is what I have filled in.

...
08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
09: var snippet = "IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'"; // "IMAGEPATH
'/usr/local/www/docs_maps/tmp/'";
10: snippet += " IMAGEURL '/tmp/'";

Assuming that on line 09 an absolute path on the server is needed and on
line 10 an absolute URL.
Note that in the apache configuration there is no alias for /tmp/.
Changing line 10 to '/ms_tmp/ does not make any difference.

...
33: 
34: 
35:   

Assuming that on line 35 an absolute URL is needed.

...
42:   
43:   
44:  
45:   
46:  
47:   
48:   

Assuming that on line 43 an absolute path on the server is needed and on
lines 45 and 47 an absolute URL.

Can somebody point out to me what is wrong?

Kind regards,

Andre Steenveld.


___
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] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Daniel Morissette

Paul james wrote:

Hi Daniel!
I ckecked the IIS Log...
And I´m getting 403 to the pink tiles :
16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403

The IIS specification :

*403 *- Forbidden. IIS defines a number of different 403 errors that 
indicate a more specific cause of the error:



[...]



Do you know how to "fix" that?



You mean, other than using Apache?  ;)  ;)

Seriously, you probably need to increase the number of concurrent 
connections that your IIS will accept, but I have no clue how to do it.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Finding the centroid given the feature

2009-05-28 Thread Adam Eskreis
I'm not sure if this is what you are doing, but I have done something
similar I think.

When I want to use the centroid geometry of a polygon, what I do is load the
layer into postgis, create a new geometry field called "points_geom" or
something like that, and write a stand alone program to find the centroid of
each feature, adn insert that geometry into the new geometry field.  I
usually use Java since it has a really nice PostGIS object library

Hope this helps

-Adam

On Thu, May 28, 2009 at 11:01 AM, Varun saraf  wrote:

> Hi,
>
> I know mapserver uses a point-in-polygon method to find a feature
> given a set of co-ordinates, but can it do the same thing reversed?
> For example. Each polygon I draw has a number associated with it which
> is in a "dbf" file with the same name as the "shp" file that mapserver
> uses to draw the polygons. My current map file allows me to fetch that
> unique number whenever I pass the co-ordinates of any point inside
> that polygon (mapserver uses the point-in-polygon method to fetch me
> the polygonID). The query I use is
>
>
> http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMap.map&mode=query&mapxy=-77.098617
> 38.87795
>
> where mapxy keeps changing based on the user's click. The html
> template I send just has the variable name [polygonID] which helps me
> get the polygon ID of the point I specify in the mapxy variable. Now,
> is there a way in which I can send this polygonID to mapserver and get
> hold of any point (perhaps the centroid) inside of this polygon? Can
> someone point me in the right direction here?
>
> Thanks a lot.
>
> -Varun
> ___
> 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] Mapserver layer + Openlayers = Random pink tiles...

2009-05-28 Thread Paul james
You are right :P
To increase number connections on XP : http://www.dslreports.com/faq/10253

Thanks Daniel!

On Thu, May 28, 2009 at 2:29 PM, Daniel Morissette  wrote:

> Paul james wrote:
>
>> Hi Daniel!
>> I ckecked the IIS Log...
>> And I´m getting 403 to the pink tiles :
>> 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403
>>
>> The IIS specification :
>>
>> *403 *- Forbidden. IIS defines a number of different 403 errors that
>> indicate a more specific cause of the error:
>>
>>  [...]
>
>
>> Do you know how to "fix" that?
>>
>>
> You mean, other than using Apache?  ;)  ;)
>
> Seriously, you probably need to increase the number of concurrent
> connections that your IIS will accept, but I have no clue how to do it.
>
> Daniel
>
> --
> Daniel Morissette
> http://www.mapgears.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] Finding the centroid given the feature

2009-05-28 Thread Steve Lime
What version are you using? What data source?

Steve

>>> On 5/28/2009 at 10:01 AM, in message
<6db14d250905280801q3660a6a7ycbcd5f5a238c5...@mail.gmail.com>, Varun saraf
 wrote:
> Hi,
> 
> I know mapserver uses a point-in-polygon method to find a feature
> given a set of co-ordinates, but can it do the same thing reversed?
> For example. Each polygon I draw has a number associated with it which
> is in a "dbf" file with the same name as the "shp" file that mapserver
> uses to draw the polygons. My current map file allows me to fetch that
> unique number whenever I pass the co-ordinates of any point inside
> that polygon (mapserver uses the point-in-polygon method to fetch me
> the polygonID). The query I use is
> 
> http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMa
>  
> p.map&mode=query&mapxy=-77.098617
> 38.87795
> 
> where mapxy keeps changing based on the user's click. The html
> template I send just has the variable name [polygonID] which helps me
> get the polygon ID of the point I specify in the mapxy variable. Now,
> is there a way in which I can send this polygonID to mapserver and get
> hold of any point (perhaps the centroid) inside of this polygon? Can
> someone point me in the right direction here?
> 
> Thanks a lot.
> 
> -Varun
> ___
> 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] Point lables and tiles

2009-05-28 Thread Steve Lime
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  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 
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

 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


[mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)'

2009-05-28 Thread Andre Steenveld sr
Hi Pano,

I'm using version 5.0 and I've received another mail suggesting the same
thing. 
Adding "MapServer Template" did solve my problems.

Tanks,

Andre Steenveld.



-Original Message-
From: Pano Voudouris [mailto:pvoudou...@gaiocorp.com] 
Sent: donderdag 28 mei 2009 19:06
To: Andre Steenveld sr; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] problems with 'MapServer Itasca
Application (ms v5.0)'

Which version of MapServer are you using? You can find it by running in
a
command prompt: mapserv -v
Think that in the latest versions all Mapserver templates must have in
their
first line the string "MapServer Template" even if it is as a comment.
In
your case this would be the itasca_basic.html file...

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


[mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query?

2009-05-28 Thread Peter Willis


Hello,

I am using mapserver as a WFS server.

When I query getCapabilities I get he following capabilities:

- GetCapabilities
- DescribeFeatureType
- GetFeature

I also get a list of features.

If I then make 'describeFeatureType' or 'getFeature' requests for
one of the features on the list I get a non verbose description
of the feature, or the GML for the feature.

There doesn't appear to be anything that discloses if the feature
is a POINT, LINE, or POLYGON type feature.

The map file layers are defined properly as POINT, LINE, POLYGON
as the case may be.

Am I querying mapserver correctly?

What am I overlooking in the XML?

Thanks,

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


[RESOLVED:] [mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query?

2009-05-28 Thread Peter Willis

O.K., that was brief and non-productive

The 'getFeature' query XML results have ms:msGeometry entries.

ie:


-
  <

[mapserver-users] Upgrading 5.2 -> 5.4 generating CGI error...

2009-05-28 Thread Paul james
I got that error when try to enter :
http://localhost/cgi-bin/mapserv.exe?map=C:/map.map
CGI ErrorThe specified CGI application misbehaved by not returning a
complete set of HTTP headers. The headers it did return are:


My Map:

MAP
EXTENT -79.7892 -34.2426 -24.9958 6.11775
FONTSET "Fonts\Fonts.txt"
IMAGECOLOR 230 254 254
IMAGETYPE png
SIZE 800 600
STATUS ON
UNITS dd
NAME "Test"

OUTPUTFORMAT
NAME "png"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE "PC256"
TRANSPARENT FALSE
END

PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END

WEB
IMAGEPATH 'C:\map\temp'
IMAGEURL '/tmp/'
QUERYFORMAT text/html
LEGENDFORMAT text/html
BROWSEFORMAT text/html
END

QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS ON
STYLE hilite
END

REFERENCE
EXTENT -79.7892 -34.2426 -24.9958 6.11775
STATUS on
SIZE 221 150
MINBOXSIZE 5
MAXBOXSIZE 150
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
MARKERSIZE 8
END

LAYER
NAME Test
GROUP "Tests"
TYPE POLYGON
STATUS default
CONNECTIONTYPE POSTGIS
CONNECTION "user=xpassword=xdbname=x host=x port=5432"
DATA "the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1"
CLASS
COLOR 255 0 255
END
END

END
___
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 Ben Madin

Pâl,

On 28/05/2009, at 9:38 PM, paalkr wrote:

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


there is a clue in the log file :



[Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query
error. Error (ERROR:  argument of WHERE must be type boolean, not type
geometry



but if you look at your query in the log file (trying to make it look  
a bit nice for legibility) :



FROM (
SELECT  geometri, *
FROMgeneral.country
	WHERE	ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18  
84,12 84,120))',4326))

) AS country


You have a WHERE clause that returns a geometry (here is the manual  
entry)


	ST_Intersection(geometry, geometry) Returns a geometry that  
represents the point set intersection of the Geometries.
	In other words - that portion of geometry A and geometry B that is  
shared between the two geometries.


So you need to actually compare something with the geometry to make  
the where clause work.


I hope this helps to steer you in the right direction...  I have no  
idea what you are trying to compare!


Ben



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




--

Ben Madin
REMOTE INFORMATION

t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome   WA   6725

b...@remoteinformation.com.au



Out here, it pays to 
know...


___
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, 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  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 
> 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
> 
> 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-tp29695