[MS4W-Users] DrawQuery with Oracle Spatial -RFC 52(?)

Pano Voudouris pvoudouris at gaiocorp.com
Sat Apr 24 06:03:31 EST 2010


All, (and Jeff),
I sent this a couple of weeks back but didn't get any replies? With the beta
11 out and the final release looming, I thought I should resend it. Is this
a bug? Me doing something wrong? Should I raise a ticket?

Thanks,
Pano

-----Original Message-----
From: ms4w-users-bounces at lists.maptools.org
[mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Pano Voudouris
Sent: 08 April 2010 14:05
To: ms4w-users at lists.maptools.org
Subject: [MS4W-Users] DrawQuery with Oracle Spatial -RFC 52(?)

Hi All,
I have just upgraded my app to use the v3.0 Beta 10 binaries and seem to
have a problem with DrawQuery request on oracle spatial layers (native
oracle connection). 
The error is: 

msDrawMap(): Image handling error. Failed to draw layer named
'STREETS'.;msOracleSpatialLayerResultGetShape(): OracleSpatial error.
msOracleSpatialLayerResultGetShape record out of range

The bit of code that gives the error is:

layerObj active_layer = aMapObj.getLayer(active_layer_index);
active_layer.open();
resultCacheObj results = active_layer.getResults();
imageObj image=aMapObj.drawQuery(); // This throws the error

I also tried using the layerObj.DrawQuery but this gives a different error:

msOracleSpatialLayerResultGetShape(): OracleSpatial error.
msOracleSpatialLayerResultGetShape called on unopened layer (layerinfo)
 although the layer IS opened!

Code is:
layerObj active_layer = aMapObj.getLayer(active_layer_index);
active_layer.open();
resultCacheObj results = active_layer.getResults();
imageObj image = aMapObj.draw();
active_layer.drawQuery(aMapObj, image); //This throws the error

Does this have to do with the RFC 52? And is there a workaround?

BTW, the open/close layer methods seemed to be required on the v3 version? I
didn't have to open the layer in  v2.3.1. If I don't open the layers I was
getting the unopened layer error even on shapefiles.

Thanks,
Pano

_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users



More information about the MS4W-Users mailing list