SV: [mapserver-users] Clipping out unprojectable area?
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
Re: [mapserver-users] 'OSGeo.MapServer' doesn't contain any public member
Meenu, I'm not sure about this problem, mapscript_csharp.dll should always expose all of the classes of the MapScript API. You can use the object browser or the .NET reflector ( http://www.red-gate.com/products/reflector/) to inspect the classes exposed by this dll. Best regards, Tamas 2009/5/14 meenu > > hi i am getting an error in mapserver as follows > > Namespace or type specified in the Imports 'OSGeo.MapServer' doesn't > contain > any public member or cannot be found. Make sure the namespace or the type > is > defined and contains at least one public member. Make sure the imported > element name doesn't use any aliases. > > can anybody help to solve this issue? > > - > Meenu > -- > View this message in context: > http://n2.nabble.com/%27OSGeo.MapServer%27-doesn%27t-contain-any-public-member-tp2889333p2889333.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] Actual coverage data+colormap
Is it possible to include the colormap from an image being served as a coverage through mapserver? In other words, definining BYTE or INT16 for the IMAGEMODE will provide the actual data from the raster (which is what I am after), but the colormap is discarded when the data is requested through a GetCoverage request. Then I tried PC256 for the IMAGEMODE but I lost the actual data. Is there currently a way to allow me to include a colormap in the OUTPUTFORMAT definition, while providing the actual data through a GetCoverage request? I have defined the output format as follows: OUTPUTFORMAT NAME "GTIFF" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "BYTE" TRANSPARENT TRUE FORMATOPTION "COMPRESS=PACKBITS" END Thanks in advance, Alex ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers
kapil manoj wrote: i have received the following error after changing the status of the layers to both DEFAULT or ON Warning: [MapServer Error]: msGetLabelSize(): Requested font (arial-bold) not found. in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 6 If you haven't solved this already, then I'd suggest you make sure font "arial-bold" is defined in your fontset and that the path to the corresponding TTF file is valid. 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] coding for pan the map
hi all can anybody help me to do the coding for pan the map? i did one website using the help of TutorialMapServerSolution.zip(VS2005) advance thanks regards - Meenu -- View this message in context: http://n2.nabble.com/coding-for-pan-the-map-tp2889881p2889881.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] UMN and SVG output
Till Adams wrote: Dear list, we have a problem with (old but working) Mapserver 4.10 version and svg output transparency: On one system (solaris 10) everything works fine. On the other system (solaris 10) with exactly the same mapfile, the originally as transparent defined polygons (COLOR -1 -1 -1) come out in black. I guess that GD library is responsible for creating the SVG. Did anybody had this problem before or does anybody have an idea which component may cause this error? Till, Did you really mean SVG? SVG is a vector format which is rendered by the browser, are you using the same browser to access both servers? I'd suggest you start by comparing the SVG output from both to try to figure the difference (it's XML-ish) between the output from your two servers, and then we can go from there. 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] parsing error about setting debug level
Peisheng Zhao wrote: Hi all I set debug level in map file as "DEBUG 5". But I always get the error message: getSymbol(): Symbol definition error. Parsing error near (5):(line 88) What's wrong with it? Which version of MapServer are you using? To use the "DEBUG 5" syntax and other stuff in RFC-28, you need MapServer 5.0.0 or more recent. (see http://mapserver.org/development/rfc/ms-rfc-28.html) Before 5.0, you could only use DEBUG ON/OFF (or TRUE/FALSE)... so if you're using MapServer 4.x that could explain the error. 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] 'OSGeo.MapServer' doesn't contain any public member
hi i am getting an error in mapserver as follows Namespace or type specified in the Imports 'OSGeo.MapServer' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. can anybody help to solve this issue? - Meenu -- View this message in context: http://n2.nabble.com/%27OSGeo.MapServer%27-doesn%27t-contain-any-public-member-tp2889333p2889333.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] UMN and SVG output
Dear list, we have a problem with (old but working) Mapserver 4.10 version and svg output transparency: On one system (solaris 10) everything works fine. On the other system (solaris 10) with exactly the same mapfile, the originally as transparent defined polygons (COLOR -1 -1 -1) come out in black. I guess that GD library is responsible for creating the SVG. Did anybody had this problem before or does anybody have an idea which component may cause this error? Thanks in advance, regards, Till -- -- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Geschäftsführung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 ad...@terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 - Komplementärin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver rendering with 24 bit colour
Hi, Not so that everybody gets answered, sometimes nobody just knows the answer, and after all, this is voluntary. But still, I can see from the archives that Thomas Bonfort had a try on the same day and only one and a half hours delayed :) -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta David Nugent Lähetetty: 14. toukokuuta 2009 8:01 Vastaanottaja: David Nugent Kopio: mapserver-users@lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver rendering with 24 bit colour On 06/05/2009, at 1:52 PM, David Nugent wrote: Once I completed upgrading to mapserver 5.4, I decided I'd give the new AGG renderer a try. ~ However, as a by-product of changing renderer, the metatiles produced by mapserver differ slightly in colour. Some agree exactly to the RBG colours I am providing, others are rendered with slight variations, and when viewed on the web it becomes fairly obvious where the meta tile borders are. This is to follow up on my own question to which I received no response either on the list or otherwise in case anyone else runs into the same or a similar problem. I finally found the problem in that the php mapscript had a bug, and that "AGG_Q" (AGG with quantize enabled) was being selected regardless that I was trying to tell it to do it differently. Once I correctly set it to AGG without quantize, the colour variation between tiles disappeared and all is well. One interesting aspect of this is that the average file size did not increase significantly when dropping quantize although in general the tiles rendered using AGG are around 40-50% larger than PNG8. Regards, -- David Nugent (dav...@datalinktech.com.au) Software Engineer datalink technologies pty ltd Mobile GPS/GPRS business process solutions http://www.datalinktech.com.au/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] hotspot information on point layers
hi can anybody help me to do hotspot part.i did the mapserver website usnig vs2005... - Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2888675.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