ThinkGeo.com    |     Documentation    |     Premium Support

Error while drawing features

Hi,

We’re using TG Web Edition 9.0.0.0 with Oracle layers overlays. Tile image requests are generating errors drawing features with the following message:

Object reference not set to an instance of an object.
at xRM=.SUE=.TUE=(Byte[] wkb)
at ThinkGeo.MapSuite.Core.Feature.GetBoundingBoxCore()
at ThinkGeo.MapSuite.Core.LineStyle.uxs=(RectangleShape currentExtent, IEnumerable1 featureList) at ThinkGeo.MapSuite.Core.LineStyle.DrawCore(IEnumerable1 features, GeoCanvas canvas, Collection1 labelsInThisLayer, Collection1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Style.Draw(IEnumerable1 features, GeoCanvas canvas, Collection1 labelsInThisLayer, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.Core.ZoomLevel.DrawCore(GeoCanvas canvas, IEnumerable1 features, Collection1 currentLayerLabels, Collection1 allLayerLabels)
at ThinkGeo.MapSuite.Core.ZoomLevel.Draw(GeoCanvas canvas, IEnumerable1 features, Collection1 currentLayerLabels, Collection1 allLayerLabels) at ThinkGeo.MapSuite.Core.FeatureLayer.DrawCore(GeoCanvas canvas, Collection1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.WebEdition.LayerOverlay.DrawCore(GeoCanvas canvas, Object nativeImage, RectangleShape canvasExtent, GeographyUnit mapUnit)

Can you help us on this regard? It seems like there is no BBOX for features!

We will wait your feedback.

Best regards,
AMBISIG

Hi Bruno,

We are unable to recreate this issue by our testing data. But I guess this issue may be caused by the Invalid features. Please try the following steps to get the invalid features and modify them manually.

  1. Get all of the features by calling the oralceFeatureSource.GetAllFetures().
  2. Call the feature.IsValid() method for every feature in the features get in #1.
  3. Filter the invalid features and modify them manually.

If it’s not the cause of the issue. Could you please share some data for us and provide us a sample?

Thanks,
Peter

Hi Peter,

We’ve added a link to WeTransfer with a Visual Studio project where you can replicate the error.

Best regards,
BdaF

Hi Bruno,

Where can we get the link?

Thanks,
Peter

Hi Peter,

I’ve replied on the wrong post mistakenly.

I’m sorry for the mistake and ignore this comment.

Best regards,
BdaF

Hi BdaF,

Any question please let us know.

Regards,

Don