EVOLUTION-MANAGER
Edit File: drv_ili.html
<html> <head> <title>INTERLIS</title> </head> <body bgcolor="#ffffff"> <h1>INTERLIS</h1> OGR has support for INTERLIS reading and writing.<br> <a href="http://www.interlis.ch/">INTERLIS</a> is a standard which has been especially composed in order to fulfill the requirements of modeling and the integration of geodata into contemporary and future geographic information systems. With the usage of unified, documented geodata and the flexible exchange possibilities the following advantage may occur: <ul> <li>the standardized documentation</li> <li>the compatible data exchange</li> <li>the comprehensive integration of geodata e.g. from different data owners.</li> <li>the quality proofing</li> <li>the long term data storage</li> <li>the contract-proof security and the availability of the software</li> </ul> OGR supports INTERLIS 1 and INTERLIS 2 (2.2 and 2.3) with the following limitations: <ul> <li>Curves in Interlis 1 area polygons are converted to line segments</li> <li>Interlis 1 Surface geometries with non-numeric IDENT field are not included in the attribute layer</li> <li>Embedded INTERLIS 2 structures and line attributes are not supported</li> <li>Incremental transfer is not supported</li> <li>Transfer id (TID) is used as feature id</li> </ul> <h2>Model support</h2> Data is read and written into transfer files which have different formats in INTERLIS 1 (.itf) and INTERLIS 2 (.xtf). Models are passed in IlisMeta format by using "a_filename.xtf,models.imd" as a connection string.<p> IlisMeta files can be be generated with the ili2c compiler. Command line example: <pre> java -jar ili2c.jar --ilidirs '%ILI_DIR;http://models.interlis.ch/;%JAR_DIR' -oIMD --out models.imd model1.ili [model2.ili ...] </pre> Some possible transformations using <a href="http://www.gdal.org/ogr2ogr.html">ogr2ogr</a>.<p> <ul> <li> Interlis 1 -> Shape: <pre> ogr2ogr -f "ESRI Shapefile" shpdir ili-bsp.itf,Beispiel.imd </pre> </li> <li> Interlis 2 -> Shape: <pre> ogr2ogr -f "ESRI Shapefile" shpdir RoadsExdm2ien.xml,RoadsExdm2ien.imd </pre> or without model: <pre> ogr2ogr -f "ESRI Shapefile" shpdir RoadsExdm2ien.xml </pre> Example with curves and multiple geometries: <pre> ogr2ogr --config OGR_STROKE_CURVE TRUE -SQL 'SELECT Rechtsstatus,publiziertAb,MetadatenGeobasisdaten,Eigentumsbeschraenkung,ZustaendigeStelle,Flaeche FROM "OeREBKRM09trsfr.Transferstruktur.Geometrie"' shpdir ch.bazl.sicherheitszonenplan.oereb_20131118.xtf,OeREBKRM09vs.imd OeREBKRM09trsfr.Transferstruktur.Geometrie </pre> </li> <li> Shape -> Interlis 2: <pre> ogr2ogr -f "Interlis 2" LandCover.xml,RoadsExdm2ien.imd RoadsExdm2ben.Roads.LandCover.shp </pre> </li> <li> Importing multiple Interlis 1 files into PostGIS: <pre> ogr2ogr -f PostgreSQL PG:dbname=warmerda av_fixpunkte_ohne_LFPNachfuehrung.itf,av.imd -lco OVERWRITE=yes ogr2ogr -f PostgreSQL PG:dbname=warmerda av_fixpunkte_mit_LFPNachfuehrung.itf,av.imd -append </pre> </li> </ul> <p> <h3>Arc interpolation</h3> Converting INTERLIS arc geometries to line segments can be forced by setting the configuration variable OGR_STROKE_CURVE to TRUE.<br></br> The approximation of arcs as linestrings is done by splitting the arcs into subarcs of no more than a threshold angle. This angle is the OGR_ARC_STEPSIZE. This defaults to one degree, but may be overridden by setting the configuration variable OGR_ARC_STEPSIZE.<br></br> <h3>OGR versions prior to 2.0</h3> Arcs are always interpolated and the interpolation angle can be configured with the environment variable ARC_DEGREES.<p> <h3>OGR versions prior to 1.11</h3> For using the INTERLIS model (.ili) a Java interpreter is needed at runtime and ili2c.jar (included in the <a href="http://interlis.ch/interlis2/download23_e.php#outils">Compiler for INTERLIS 2</a>) must be in the Java path.<p> <h2>Other Notes</h2> <ul> <li><a href="https://github.com/sourcepole/ogrtools">ogrtools</a> library includes extensions for the OGR Interlis driver</li> <li>Development of the OGR INTERLIS driver was supported by <a href="http://www.kogis.ch/">Swiss Federal Administration</a>, <a href="http://www.sogis.ch/">Canton Solothurn</a> and <a href="http://www.geoinformation.tg.ch/">Canton Thurgovia</a>.</li> </ul> </body> </html>