[mapserver-users] Postgis schema and query by point
Hello everybody, I am experiencing some troubles running a query by point using mapscript: the problem is that if the table is in public schema, the query goes fine, instead, using another schema, got an error. The only change i made in the mapfile is to add schema in the DATA line. Looking at the table, I noticed that there's not a gid or oid column, but then I don't understand why it works in public and not in other ones. Thank you very much Luca ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
AW: [MAPSERVER-USERS] Hiding overviews
Ok guys. I examined the situation and came to the conclusion that it is a bug in MapServer. In the source of mapserver v5.0.2, file mapwms.c, line 1071: msOWSPrintEncodeParam(stdout, LAYER.NAME, lp-name, OWS_WARN, Name%s/Name\n, NULL); should really be msOWSPrintEncodeMetadata(stdout, (lp-metadata), MO, name, OWS_NOERR, Name%s/Name\n, NULL); since the code conflicts with the comment in the code on line 1747 in the same file which states: Layer Name is optional but title is mandatory. Which exactly agrees with the specs which states at page 25 of v1.3.0: 7.2.4.6.2 Title A Title is mandatory for all layers; ... and 7.2.4.6.3 Name If, and only if, a layer has a Name, then it is a map layer that can be requested by using that Name in the LAYERS parameter of a GetMap request. A Layer that contains a Name element is referred to as a named layer in this International Standard. If the layer has a Title but no Name, then that layer is only a category title for all the layers nested within. A server that advertises a Layer containing a Name element shall be able to accept that Name as the value of LAYERS argument in a GetMap request and return the corresponding map. A client shall not attempt to request a layer that has a Title but no Name. IMHO this means you can ommit the Name but have to provide the Title. And if the layer has no name it can simply not be requested in a GetMap-Request. If I change the code like above I have to provide a wms_name in the METADATA part of the MAP file to make the layer queryable. If I ommit wms_name then the layer get's no Name and can therefore not be requested by the client. IMHO it's then up to the server whether or not to render that layer which is exactly what I want. For overviews I want multiple layers where only one is active for a given scale but which one is up to the server. Therefore a client should not be able to explicitly request one of them. Instead I group those layers in a named layer by a GROUP clause. So please check this out. May be we should file a bug report on that. But I think someone else should confirm this... Best regards, Andreas Eichner ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapfile EMPTY Statement
Len Kne wrote: Greetings I am trying to use the EMPTY command in WEB section of a mapfile with no luck. Running the GetFeatureInfo below, the mapfile HEADER and FOOTER are read and added to the page, but in this case, it should go to the EMPTY url as there are no features. If this is executed with INFO_FORMAT=text/plain, it shows no results. Does the EMPTY statement not work with GetFeatureInfo? Len, No, the EMPTY statement does not work with GetFeatureInfo. There was already a ticket about this: http://trac.osgeo.org/mapserver/ticket/546 I have implemented a fix for this and committed to SVN trunk a few minutes ago. You'll find all the details in the ticket. 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] No updates
vishal nagpal wrote: Hello everybody, The webpage of Mapserver user list is not showing any mail of the month of march 08. Is there a problem? Vishal Maybe you're looking at the old archives? The list has moved to OSGeo servers in February, you'll find the link to the new archives, etc at: http://mapserver.gis.umn.edu/community/mailinglists/mapserver-users/ If there are still links to the old list or the old archives on the MapServer website then please let us know where they are so that we can update them. 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] Which OS for Mapserver?
A major consideration is that MrSID exists mainly for Windows. For 64-bit Linux, the only option for MrSID at this point is their precompiled utilities, extracting the data out into rasters in some other format more GDAL-friendly. For 32-bit Linux, you can contrive to build GDAL with MrSID support. Personally, I have found that the runtime performance of wavelet compression (ECW, MrSID, JPEG2000?) to be so poor as to not be worth the trouble, and prefer to decompress into fast and space-hogging TIFFs. And if you have a spare PC, have VMWare, or are willing to partition your disk, you can always try it out yourself, run your own tests. I always recommend our own free/oss product HostGIS Linux, especially for someone who wants to avoid a lot of the learning curve of a new Linux and skip to the maps. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic 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
[mapserver-users] removeLayer() in PHP MapScript
Hello I'd have a question for the PHP Mapscript developers: are there any plans to implement the removeLayer() method (that exists for SWIG Mapscript versions) also in PHP Mapscript? Setting the layer status to MS_DELETE is in most cases not an alternative since it seems to have effects only for writing the map object to a map file. Best regards Armin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users