Solved

DWG to raster (GeoTIFF)


Badge

I am tryintg rasterize one dwg. I am using this scheme that can be seen on screenshot but unfortunately I am getting blank result. Does anybody have an idea what could be the problem?

icon

Best answer by pratap 29 January 2018, 09:26

View original

15 replies

Badge +22

We would need to see the settings on your MapnikRasterizer. Though I am curious why you have a Tester with both ports going to the same GeometryCoercer.

Badge

We would need to see the settings on your MapnikRasterizer. Though I am curious why you have a Tester with both ports going to the same GeometryCoercer.

 

Here it is. I forgot to disable and delete tester because I was trying to find a solution but it didn't work.

 

 

Badge +22

Do you need an alpha channel?

 

Are you aware that the layers will be rendered in the order of the table? So potentially the points could be overwritten by the lines and polygons (not that there are any currently connected).

 

What style settings do you have on the Point?
Badge

Do you need an alpha channel?

 

Are you aware that the layers will be rendered in the order of the table? So potentially the points could be overwritten by the lines and polygons (not that there are any currently connected).

 

What style settings do you have on the Point?
I would like alpha channel because I want my image to be transparent, so I can overlay it with some other images. My problem is that I get as a result empty image, no lines visible but when I click on img it gives me an informations about points and everything but I don't see anything.

 

Do You have an idea what could be the problem?

 

 

Badge +22
I would like alpha channel because I want my image to be transparent, so I can overlay it with some other images. My problem is that I get as a result empty image, no lines visible but when I click on img it gives me an informations about points and everything but I don't see anything.

 

Do You have an idea what could be the problem?

 

 

Not from just the screen capture, sorry. Could you create a small sample of the source data, and upload the workspace here?

 

 

 

Badge
Not from just the screen capture, sorry. Could you create a small sample of the source data, and upload the workspace here?

 

 

 

example-data.dwg

 

example-data.fmw

 

Here is small area example and also my workbench.

 

Badge +22

So a lot of your fme_color attributes are set to 0,0,0 so they are being drawn as black, and indistinguishable from the background.

 

 

You also have a stray point in the upper right corner of your universe, which will cause the majority of the features to be less than 1 pixel in size when your ground extents are "use inputs"
Badge

So a lot of your fme_color attributes are set to 0,0,0 so they are being drawn as black, and indistinguishable from the background.

 

 

You also have a stray point in the upper right corner of your universe, which will cause the majority of the features to be less than 1 pixel in size when your ground extents are "use inputs"
Well, I have made background black and I need only lines and points and text, I don't know why I don't get them as result? Do You have an idea how could I solve it?

 

 

Badge +22
Well, I have made background black and I need only lines and points and text, I don't know why I don't get them as result? Do You have an idea how could I solve it?

 

 

Either specify explicitly the ground extents, or clip your data to get rid of the stray data

 

Use a background colour other than black, or change the feature fme_color to not be black.

 

 

Badge
Either specify explicitly the ground extents, or clip your data to get rid of the stray data

 

Use a background colour other than black, or change the feature fme_color to not be black.

 

 

I have tried already to change to any other color, but nothing is changing, I keep getting the same result, I can't get everything in raster, just blank picture.

 

Badge +22
I have tried already to change to any other color, but nothing is changing, I keep getting the same result, I can't get everything in raster, just blank picture.

 

Did you clip your data, or define your AOI? If not, then the stray data will cause the pixels to cover such a large ground area that your entire "real" data will be less than a single pixel.

 

 

Badge +3

@maliodpalube

dwg2mapnik.fmw

You have objects spread all over the place in the acad.

If you use groundextent it will create a extent with objects far apart.

I removed for instance D_TACKE_KOTE and then extracted bounds using BoundsExtractor after aggregating. Then deaggregate.

Used Specify ground extents to create the Raster.

Now u see the objects, but still somewhat small, because there are some remote (but less then with

D_TACKE_KOTE)

Best to clean you DWG first, or use tester to or bounding box to select the objects u want.

Badge +3

@maliodpalube

some pics

after removing far away objects..

after boundingobx..

Badge

@maliodpalube

dwg2mapnik.fmw

You have objects spread all over the place in the acad.

If you use groundextent it will create a extent with objects far apart.

I removed for instance D_TACKE_KOTE and then extracted bounds using BoundsExtractor after aggregating. Then deaggregate.

Used Specify ground extents to create the Raster.

Now u see the objects, but still somewhat small, because there are some remote (but less then with

D_TACKE_KOTE)

Best to clean you DWG first, or use tester to or bounding box to select the objects u want.

Sorry but I couldn't download this workbench it gives me an error. Can You publish it again?
Badge +2

Hi,

Could you please check the workbench attached.

Place one rectangle in AutoCAD by covering all the features

Pratap

14341-acad2geotiff.fmw

Reply