error 1 on virtual point layer

Mark Adams Mark.Adams at DPRA.COM
Wed May 10 16:37:43 PDT 2006


Frank, what configuration details do you need to know? 
 
We're using IIS on Windows 2003 server, Oracle 9.x client, 9.2 database on a 2003 server.
We're using sde, shapefiles, virtual points and virtual polygons via ogr OVF configuration, geotiff display and output. 
We need support for proj, geos, wms client, and fastcgi.
 
Cheers.
 
------------------------------
Mark Adams
Senior Analyst & Project Manager
Cuesta Systems (DPRA Canada)
5230 South Service Road
Burlington, ON L7L 5K2
Phone: 905-333-4544 x14
Fax: 905-333-0455
Email: mark.adams at dpra.com
 

________________________________

From: Frank Warmerdam on behalf of Frank Warmerdam
Sent: Wed 5/10/2006 7:28 PM
To: Mark Adams
Cc: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] error 1 on virtual point layer



Mark Adams wrote:
> What is interesting is this: prior to going back to the earlier
> mapserver executable, I tried to simply swap out the gdal13.dll for the
> earlier version. This resulted in the same errors ("[MapServer Error]:
> msOGRFileNextShape(): SetAttributeFilter() not supported on ExecuteSQL()
> results."), so no change. It was when I swapped out the
> mapserver/mapscript executables that I was able to get the virtual layer
> to work. So does that imply that it's not gdal itself that is causing
> the problem, but in how mapserver/mapscript is using it? (Apologies if
> that's an egghead question.)

Mark,

I suspect this is the change that is trigging problems:

  * $Log: mapogr.cpp,v $
  * Revision 1.96  2006/04/08 03:36:48  frank
  * Ensure that an error in GetNextFeature() will be properly translated
  * into a MapServer error in GetNextShape().

This is the OGR interface code from MapServer.  Basically, in the past,
errors were getting ignored and people couldn't figure out what was
going wrong. On the other hand, some errors were not really fatal (such
as yours) and ignoring them works out well.

I think I need to go into the OGR ODBC driver and not have it issue
that driver.  Instead it should actually implement the attribute filtering
as a post processing step.   I believe I did this for one of the other
underlying non-spatial drivers.

If you can indicate the detailed configuration you are using, I might
be able to prepare some fixes for you.  I'm not sure how easy it will
be for you to try and use them though.   Perhaps you will need an updated
build from Assefa.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060510/e1052aba/attachment.htm>


More information about the MapServer-users mailing list