RE: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results
Sorry, just got back into work today and as most Mondays seem to go I had a lot to take care of first. I'll try to provide more details tomorrow. I can say this, that this is partly being setup and called by the MapGuide Fusion framework. There is a PHP script being called with the query parameters, this uses PHP MapScript to generate a .qry file. This .qry file is being used in the call to the mapserv CGI. The PHP MapScript process is returning list results for the objects selected, however the map image is failing to generate. The MODE that is being requested of the CGI is 'map'. I will send an example of the full URL as well as the contents of the .qry file. I don't currently have a similar data set in Shapefile format, only within the Oracle database. Also, the 3 layers in question are Oracle VIEWS and not direct table-based layers. The layers work just fine in all cases but this. - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -Original Message- From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] Sent: Mon 12/14/2009 5:35 PM To: Lime, Steve D (DNR); Nolte, Tim; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] MapServer CGI + Oracle + Query,msQueryByShape no results Tim: Any more on this? I looked into the source over the weekend but didn't see any logic errors that would cause what you're seeing. Not that they aren't there, it's that nothing was obvious... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Friday, December 11, 2009 3:50 PM To: Nolte, Tim; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results Does the behavior hold true with shapefiles or is this just Oracle, or can't you test that. The queryfile (foo.qf) caches the query parameters itself, not the results. The pre-5.6 cached the results but it was really expensive to retrieve them with certain types of data providers, primarily databases. Are you using query files? A sample query or two would help. Also, how are you presenting the results (template, querymap or ???) Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Friday, December 11, 2009 1:12 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results I have a web client that makes calls to the MapServer (5.6.0rc1) CGI. I'm requesting the results of a query. The issue I am having is that if one of the layers specified has no results the whole process fails with: msQueryByShape(): Search returned no results. No matching record(s) found. If I run the same query but only pass a single layer that does have results then it works. Additionally if I run the same query again and have results in both of say 2 layers searched, I only get the layer that is searched first to be highlighted rather than all of the results of all layers. It seems like the logic that is used for querying is flawed. Was the design of using a query file only designed to be used with 1 layer at a time? I really need help as this is breaking the web client and causing users to get unexpected results. Thanks. - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer Sprint Nextel 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results
Tim: Any more on this? I looked into the source over the weekend but didn't see any logic errors that would cause what you're seeing. Not that they aren't there, it's that nothing was obvious... Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) Sent: Friday, December 11, 2009 3:50 PM To: Nolte, Tim; mapserver-users@lists.osgeo.org Subject: RE: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results Does the behavior hold true with shapefiles or is this just Oracle, or can't you test that. The queryfile (foo.qf) caches the query parameters itself, not the results. The pre-5.6 cached the results but it was really expensive to retrieve them with certain types of data providers, primarily databases. Are you using query files? A sample query or two would help. Also, how are you presenting the results (template, querymap or ???) Steve -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nolte, Tim Sent: Friday, December 11, 2009 1:12 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] MapServer CGI + Oracle + Query, msQueryByShape no results I have a web client that makes calls to the MapServer (5.6.0rc1) CGI. I'm requesting the results of a query. The issue I am having is that if one of the layers specified has no results the whole process fails with: msQueryByShape(): Search returned no results. No matching record(s) found. If I run the same query but only pass a single layer that does have results then it works. Additionally if I run the same query again and have results in both of say 2 layers searched, I only get the layer that is searched first to be highlighted rather than all of the results of all layers. It seems like the logic that is used for querying is flawed. Was the design of using a query file only designed to be used with 1 layer at a time? I really need help as this is breaking the web client and causing users to get unexpected results. Thanks. - Tim Timothy J Nolte - tno...@ilpcs.com Network Planning Engineer Sprint Nextel 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How do I use ASRP maps in mapserver?
Alans wrote: Even Rouault wrote: Alan, SRP driver has been added into GDAL SVN trunk a few months ago, so it will be part of the GDAL 1.7.0 release. It does not seem to matter which version of GDAL I try, gdalinfo MyFile.IMG always reports 'MyFile.IMG not recognised as a supported format'. The most recent version of GDAL that I tried was gdal-svn-trunk-2009.12.14. 'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where does this strange date come from? 'gdalinfo --formats' does list SRP as a supported format. srpdataset.cpp is present in the frmts/adrg directory. Just in case it is important, I had to configure GDAL with '--without -libtool' to get it to build on my system (SLES 10). Alan, I suspect there is something particular about your file(s) that is causing problems for the driver, or perhaps you are missing some associated files. Running gdalinfo with the --debug on switch might give some additional information. eg. gdalinfo --debug on A2976101.IMG If that doesn't give any help, I would be willing to look into the problem if you can provide the data to me. I would appreciate an opportunity to examine the data if it may reflect an issue with the driver. Best regards, -- ---+-- 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
Re: [mapserver-users] How do I use ASRP maps in mapserver?
Even Rouault wrote: > > Alan, > > SRP driver has been added into GDAL SVN trunk a few months ago, so it > will be part of the GDAL 1.7.0 release. > > It does not seem to matter which version of GDAL I try, gdalinfo MyFile.IMG always reports 'MyFile.IMG not recognised as a supported format'. The most recent version of GDAL that I tried was gdal-svn-trunk-2009.12.14. 'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where does this strange date come from? 'gdalinfo --formats' does list SRP as a supported format. srpdataset.cpp is present in the frmts/adrg directory. Just in case it is important, I had to configure GDAL with '--without -libtool' to get it to build on my system (SLES 10). Any ideas anyone? -- View this message in context: http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4165318.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] increase timeout limit
You can try setting the time using *“wms_connectiontimeout” (*http://www.mapserver.org/ogc/wms_client.html) regards, Holger Porath wrote: Hi list, I am trying to render a big WMS map with mapserver 5.0 but I am encountering the following issue: msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'abc' (Status -28: TIMEOUT of 30 seconds exceeded.). Does anyone know how I can increase the timeout limit. 30 seconds doesn't seem to be enough for my map. Thanks in advance. Cheers Holger Porath ___ 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
[mapserver-users] bad legend graphic from keyimage in Mapserv 5.6.0
Hi, I encountered a problem with WMS GetLegendGraphic requests when configured with KEYIMAGE + KEYSIZE. The image size is ok but the 'content' is scaled to ~50%, thus huge white border. MapServ 5.2.1 worked fine, 5.6.0 doesn’t. Shortened configuration: MAP RESOLUTION 96 DEFRESOLUTION 96 LEGEND KEYSIZE 330 1018 END LAYER CLASS KEYIMAGE '/…/legend.gif' # size 330x1018 END END END Do I miss some new configurations directives? Martin ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users