Skip to main content

I'm translating dwgs into Esri file geodatabases. I am aware that i can set a search envelope on the reader but this is only useful if I know the extents of the the dwg. In my case I have 100's of dwgs with different extents and in many cases completely incorrect extents for the projection they are in (they could also be in one of 3 projections).The majority of the data in the dwgs is in the correct spatial location but there are spurious points, lines and polygons way off in areas outside of the project bound. This results in feature classes with inconsistent extents. Is there a way to filter the extent prior to processing so that only features in an extent containing at least 90% of the data is processed? I have started with a few things like counting the features and getting the coords and creating a bounding box....but i was wondering where to go from there?

Any suggestions would be most appreciated.

Hello @wunderkind, I have done a similar test to check data outside paperspace and outside model space.

If this sounds like what you are trying to do I will put some better documentation together around thje above to see if it is useful :)


Thanks for the response @deanhowell. I'm actually only working in model space and that is where the problems are. I'm toying with generating merged areas for all vectors and then assigning the count number to the bounding box to get an area for the 'majority' of the vectors. If you could share you workbench, I will do the same as I progress this.


Thanks for the response @deanhowell. I'm actually only working in model space and that is where the problems are. I'm toying with generating merged areas for all vectors and then assigning the count number to the bounding box to get an area for the 'majority' of the vectors. If you could share you workbench, I will do the same as I progress this.

Hello @wunderkind, unfortunately I can't send the workbench as it has a lot of commercial information in it plus it would probably just be confusing as the are close to 400 transformers in the model.

Basically my approach takes the extent of the viewports in paperspace and intersects that with the model space features and anything outside of that is considered an error in the drawing.

If you have a sample drawing that you are trying to process then let me know and I would be more than happy to see what I can do from here.


Reply