fileFormat

Identifier:
net.refractions.udig.catalog.ui.fileFormat

Since:
1.0

Description:
Used to teach uDig about new file extensions suitable for use in the File wizard page.

Configuration Markup:

<!ELEMENT extension ((fileService | provider)*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT fileService EMPTY>

<!ATTLIST fileService

name          CDATA #IMPLIED

fileExtension CDATA #REQUIRED

>

Used to register a static file extension (such as "*.txt" or "*.shp) for use.



<!ELEMENT provider EMPTY>

<!ATTLIST provider

class CDATA #REQUIRED

>

Dynamically generate a list of supported file formats. Used to communicate the capabilieis of an external library such as GDAL, ImageIO-Ext or GeoTools.



Examples:
net.refractions.udig.catalog.shp contrinutes the "*.shp" format; and provides a service connection factory capable of working with "*.shp" files.

API Information:
Implement a FormatProvider to list your supported file extensions (along with their format names).

Supplied Implementation:
Day 4 tutorial materials cover the addition of a "*.csv" file; you may review this source code in the tutorials directory.


uDig - User Friendly Desktop Internet GIS client