Shape-decode problem
"Rob Oates" <[email protected]> Sun, 16 Apr 2006 04:40:14 -0400
| Newsgroups | gmane.games.flightgear.terragear.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0951140772== Content-Type: multipart/alternative; boundary="----=_Part_12579_4443419.1145176814214" ------=_Part_12579_4443419.1145176814214 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I was trying to get Terragear's shape-decode program to assign my own user defined area type to the vector file output. e.g. ./shape-decode landcover_drycroppasture /shapefile_output_directory Europe_DryCropPasture produces shape file records =3D 46994 Processing record =3D 0 rings =3D 2 total vertices =3D 55 unknown area =3D 'Europe_DryCropPasture' unknown area =3D 'Europe_DryCropPasture' contour 0 =3D area contour 1 =3D area polygon spans tile boundaries unknown area code =3D 53 Aborted Unfortunately, I was misunderstanding how the <area_string> option works. I= t appears that it only accepts the hardcoded alias in load_noaa_area_codes() in shape-decode.cxx. If you want to create your own userdefined area, you'll have to edit attributes on this list and recompile the shape-decode program. ...too bad I didn't discovered this earlier :p -Rob ------=_Part_12579_4443419.1145176814214 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <div>Hi,</div> <div> </div> <div>I was trying to get Terragear's shape-decode progr= am to assign my own user defined area type to the vector file out= put. </div> <div> </div> <div>e.g.</div> <div> </div> <div>./shape-decode landcover_drycroppasture /shapefile_output_= directory Europe_DryCropPasture</div> <div> </div> <div>produces</div> <div>shape file records =3D 46994</div> <div> <p>Processing record =3D 0 rings =3D 2 total vertices =3D 55<br= >unknown area =3D 'Europe_DryCropPasture'<br>unknown area =3D 'Europe_DryCr= opPasture'<br>contour 0 =3D area<br>contour 1 =3D area<br> polygon sp= ans tile boundaries<br>unknown area code =3D 53 <br>Aborted<br></p> </div> <div> </div> <div>Unfortunately, I was misunderstanding how the <area_string> opti= on works. It appears that it only accepts the hardcoded alias in load_= noaa_area_codes() in shape-decode.cxx. If you want to create your own= userdefined area, you'll have to edit attributes on this li= st and recompile the shape-decode program. </div> <div> </div> <div>...too bad I didn't discovered this earlier :p &n= bsp; </div> <div> </div> <div>-Rob </div> <div> </div> <div> </div> ------=_Part_12579_4443419.1145176814214-- --===============0951140772== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Terragear-devel mailing list [email protected] http://mail.flightgear.org/mailman/listinfo/terragear-devel 2f585eeea02e2c79d7b1d8c4963bae2d --===============0951140772==--