Skip to main content

Hi Darren. I'm a new user of FME and am interested in your 2014 post about translating to DWG as 1km grid squares. Do you have anything you could share that would help. I see in the post you say you got it working.

 

Thanks

Chris Dickinson

North Yorkshire County Council

Hi Chris,

 

No problem with sharing what I have and whilst this workspace has been made for my specific requirements it can easily be amended to work for other datasets.

 

You can read in any dataset, I've then added an attribute that will generate layernames within the DWG file, these can be switched on or off within AutoCad as required. A tiler is then used to cut the incoming dataset into tiles, 1000 metres in this case but that can be changed. The bottom left corner of each tile is then calculated in order to generate a unique filename, the results are then saved using a DWG writer.

 

I've attached my workspace, feel free to amend it to your own use case.

 

Darren Fennell


Hi Chris,

 

No problem with sharing what I have and whilst this workspace has been made for my specific requirements it can easily be amended to work for other datasets.

 

You can read in any dataset, I've then added an attribute that will generate layernames within the DWG file, these can be switched on or off within AutoCad as required. A tiler is then used to cut the incoming dataset into tiles, 1000 metres in this case but that can be changed. The bottom left corner of each tile is then calculated in order to generate a unique filename, the results are then saved using a DWG writer.

 

I've attached my workspace, feel free to amend it to your own use case.

 

Darren Fennell

Superb, thanks very much Darren


Hi Chris, just wondering whether you managed to get that DWG workspace working?


Hi Darren. Not yet as this piece of work has been side-lined due another urgent task unfortunately. I hope to pick it up next week though so if I need any help I will shout. And thanks for asking. Cheers, Chris


Hi Darren

 

Ok, so I have edited the workspace you kindly shared, to read data directly from the Ordnance Survey GML 5km MM Topo download we get. I have a reader for topoline and another for cartotext. The workspace (attached) runs with no errors and chops up the 5km chunk to 1km tiles which is great. There are a couple of things I am struggling with though. Firstly, when I inspect the text layer, instead of seeing text strings with various rotations, font colours etc I just see points. Secondly, there is no styling for different features in the line layer e.g. blue line for water feature. I assume all of the required info is in the source GML but I'm not sure how to pull it out so it appears styled in the DWG files. Any pointers on how to do that?

 

Thanks

Chris


Hi Chris,

This DWG conversion is actually the end point of a larger conversion process that takes the OS GZ files and converts them into MapInfo Professional TAB files. In these earlier stages I've applied OS's schema 9 styling as well as generated MapInfo text objects out of the point/label data that is contained within the original data. There are 24 additional FME workspaces involved in this process 😀

 

I'm happy to share these workspaces but they are quite specific to my setup and the way I handle files.

 

Many thanks

Darren


Hi Darren.

 

Crikey! That sounds exactly like what I am trying to do so I would be very grateful if you could share. A while back our old database administrator left the organisation and we currently have no way of producing a tab file for text so we are using the latest line and area in Mapinfo but text dating back to 2021 which is obviously not ideal. It sounds as though what you have created is just the job to fix this issue too.

 

Thanks again, much appreciated

 

Cheers

Chris


Hi Chris,

 

No problem, just bear in mind that these will probably need quite a lot of editing to get working and I have to give you a disclaimer of, they work fine for me but I can't be responsible if they overwrite anything on your end 😀

 

It would probably easier to send these direct to you rather than via this portal, if you send me an email (my address should be in my community profile) I'll reply to you and try to come up with some basic instructions.

 

Many thanks

Darren


Thanks Darren, I will ping you an email now

 

Cheers

Chris


Hi. Doesn't look like your email is there

 

image 

mine is chris.dickinson@northyorks.gov.uk


Reply