03-18-2019 08:44 AM
I am testing the "Summarize Related Features Operator". I have a polygon shapefile of buildings (Features) and a point shapefile (DetailFeatures). I want to count all the points that are inside each building and add this info as attribute of the building shapefile.
This is my model at the moment:
I have transformed the CRS of both data, to the same CRS.
MatchAttributeNames is empty.
This is the functional attribute:
The model fails, whit this error:
18/03/19 16:42:35 SessionMgr(12604): Object reference not set to an instance of an object.
18/03/19 16:42:35 SessionMgr(12604): Operator execution failed.
What is the problem?
Solved! Go to Solution.
03-18-2019 09:04 AM
I think you just need COUNT(*) in your Functional Attribute.
03-18-2019 09:12 AM - edited 03-18-2019 09:12 AM
Odd - it worked for me.
Try taking those Coordinate Transformations out - I'm not sure why you'd need those.
03-18-2019 09:16 AM
Thank you Ian. I remove the coordinate transformation but the problem is still there.
Maybe there is some problems with the data. Can I try with some demo data (maybe the same that you are using)? I do not know if this is possible. Thank you very much
03-18-2019 05:02 PM
Thank you Ian, it works with your shapefiles.
Now the model is working with my data, I have added again the coordinate transformation operator, because I was having this error:
19/03/19 01:01:52 SessionMgr(1124): ERROR: #1985 from HexGeo:patialModeler:perator:etErrorMessage
19/03/19 01:01:52 SessionMgr(1124): ERROR: Spatial Model failed in Summarize Related Features. The error was "Failed to create a coordinate system object.".
I am trying to understand what can be the reason of the error. My data are:
Now the model, with my data, is working if I use the coordinate transformation operator (to transform both files in 4326 or 3004).
Thank you, regards
03-18-2019 06:38 PM
I believe we have a logged bug on this operator not properly handling different CRS definitions for the primary geometry fields of the two Features involved. We'll hopefully take care of it for the next release but in the meantime you have found how to make it work. - Hal