Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-users] Importing custom project config

Dear uDIG users/developers,

I am looking for some advice please on how to go about writing a
"Project Importer" to import a standard format configuration file (which
points to other files) we have created for ArcView 3 projects into a
uDIG project. Users within an office share access to several INI files
(a variation on the APR type file). The relevant INI files (and hence
the subsequent uDIG projects) are not changed when the user interacts
with the data (ensuring consistency and robustness between uses). Below
is an example of our configuration file (an INI). The format consists of
a set of "general" settings, followed by four critical theme definitions
and then the remaining themes. Implicit in the Critical Themes is a
default legend (AVL) file, and this would preferably need to be imported
as well (to SLD). An AVL2SLD importer might be ideal, and although I
know Deegree has one, I am yet to be able to use it. I have had minimal
success with the ArcMap2SLD as well. I see there is also an APR parser,
but we are after something 
Apart from SHP files there are also a number of image formats to import
such as TIF, IMG, ECW, SID (and/or convert to a "standard" format).

Any advice on how I should approach this ?

Kind regards,
Shaun

INI File example

[general]
name=A Park Name
code=9999ABC123
win_origin=0,0
win_size=1610,1095
toc_width=219
app_origin=0,0
app_size=1608,1207
units_map=UNITS_LINEAR_METERS
units_distance=UNITS_LINEAR_METERS
extent=455399,6.95583e+006,499908,6.99002e+006
version=1.2
fire_display=10

[CT1 - Spot Location]
source=C:\path\to\critical\9999ABC123_ct1_location.shp
legend=
minimum=0
maximum=999999999
auto_show=false
label_name=Report_ID
label_visible=false
label_font=arial
label_style=normal
label_size=10
label_colour=0,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[CT2 - Areas]
source=C:\path\to\critical\9999ABC123_ct2_area.shp
legend=
minimum=0
maximum=999999999
auto_show=false
label_name=Report_ID
label_visible=false
label_font=arial
label_style=normal
label_size=10
label_colour=0,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[CT3 - Report Areas]
source=C:\path\to\critical\9999ABC123_ct3_report.shp
legend=
minimum=0
maximum=999999999
auto_show=false
label_name=Report_ID
label_visible=false
label_font=arial
label_style=normal
label_size=10
label_colour=0,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[CT4 - Proposal Area]
source=C:\path\to\critical\9999ABC123_ct4_proposal.shp
legend=
minimum=0
maximum=999999999
auto_show=false
label_name=Prop_ID
label_visible=false
label_font=arial
label_style=normal
label_size=10
label_colour=0,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[Park Boundary]
source=C:\path\to\instance\instance_bdy.shp
legend=C:\path\to\instance\instance_bdy.avl
minimum=0
maximum=1e+009
auto_show=false
label_name=instname
label_visible=false
label_font=arial
label_style=normal
label_size=10
label_colour=0,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[Reference Grid]
source=C:\path\to\instance\ref_grid.shp
legend=C:\path\to\instance\ref_grid.avl
minimum=0
maximum=1e+009
auto_show=false
label_name=Grid_ref
label_visible=false
label_font=Arial
label_style=Normal
label_size=9
label_colour=225,0,0
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

[Place Names]
source=C:\path\to\instance\plcnames.shp
legend=C:\path\to\instance\plcnames.avl
minimum=0
maximum=1e+009
auto_show=false
label_name=Name
label_visible=false
label_font=Arial
label_style=Normal
label_size=9
label_colour=145,145,145
hot_field=
hot_script=
remove_duplicates=false
allow_overlapping=false
legend_visible=true

etc...



As of 26 March 2009 the Department of Natural Resources and Water/Environmental Protection Agency integrated to form the Department of Environment and Resource Management 

+----------------------------------------------------------------+
Think B4U Print
1 ream of paper = 6% of a tree and 5.4kg CO2 in the atmosphere
3 sheets of A4 paper = 1 litre of water
+----------------------------------------------------------------+




Back to the top