Skip to main content

Hi,

I am exporting a contour featureclass into AutoCAD, Geopackage, and shapefiles using the FeatureWriter transformer by exporting by contour grid.

 

My contour featureclass is in 1km2 grids (255 grids) and is set up in the FeatureWriter to write out

$(External_Location)\\Contours\\@Value(GRID)_DWG.zip where @value(grid) is the contour grid and "_DWG.zip" allows me to easily search/select from within the folder each format (the others being "_SHP.zip" and "_GEO.zip").

The setting under General--> Layer Name: @value(GRID)

For shapefiles the shapefile is just the grid name (ie.50-75.shp within folder 50-75_SHP.zip) but for geopackage and autocad the folder naming schema extends to the layer within despite the general layer name being set to @value(GRID) (ie. 50-75_DWG.dwg within folder 50-75_DWG.zip).

 

Am I missing a setting?

 

Do you have an example of the data in its final form, and/or have you tried opening the GeoPackage in Data Inspector? Doing so can show you all of the feature types in your dataset.

One difference between GeoPackage and SHAPE is that GeoPackage can have many tables (feature types) in one dataset, whereas SHAPE only has one.

My suspicion is that you are trying to use a file name as a table name, or that the table name(s) in your GeoPackage might be different from the file name.

Alternatively, maybe the problem is that you are trying to write into a .zip archive? If that's the case, maybe consider writing to a normal file first, and then zipping afterwards?


@jakemolnar

Your suspicions are correct regarding the file name as a table name. Once changed the data became recognizable to data inspector.

 

Thanks!
@jakemolnar

Your suspicions are correct regarding the file name as a table name. Once changed the data became recognizable to data inspector.

 

Thanks!
No problem, glad I could help!

 


Reply