Question

Problem in City GML to Shape file conversion


Hi All.

I am having a problem while converting a CityGML file to shape file. In CityGML i have polygons in Counter Clock wise direction. After converting them in to shape file all are converted in to Clock Wise direction.

Please some body help me how avoid this.

Thanks,

Kumar.


2 replies

Userlevel 2
Badge +17

Hi @kumarbangaram, I don't think there is a way to write CCW polygons into a Shapefile dataset, because the Shapefile format specification regulates that the orientation of polygon exterior boundary should always be clock-wise, and the FME Shapefile writer follows the specifications.

See also this paper: ESRI Shapefile Technical Description

Badge +10

This is a topic that is expanded on here. A number of formats have specifications similar to this and on the whole FME will honour the spec unless there's a very specific reason to offer an alternative.

Reply