Jump to content
Sign in to follow this  
Guest Loke

Autogen bridge exclude

Recommended Posts

Guys,After doing some searches throughout the forums, am I correct in thinking that in order to learn how to exclude an autogen bridge I will need to study and learn how to use the Shp2Vec tool?I've tried excluding a bridge over a river using an exclusion rectangle and the "excludeExtrusionBridgeObjects = "TRUE" " statement in an Xml file; but this does not work for the bridge in question.The Shp2Vec tool looks awfully complicated to learn but if it's the only way to get what I want I guess I'll dive in.Thanks for your input.


Ken

Share this post


Link to post
Share on other sites

>Guys,>>After doing some searches throughout the forums, am I correct>in thinking that in order to learn how to exclude an autogen>bridge I will need to study and learn how to use the Shp2Vec>tool?>>I've tried excluding a bridge over a river using an exclusion>rectangle and the "excludeExtrusionBridgeObjects = "TRUE" ">statement in an Xml file; but this does not work for the>bridge in question.>>The Shp2Vec tool looks awfully complicated to learn but if>it's the only way to get what I want I guess I'll dive in.>>Thanks for your input.Assuming it is an ExtrusionBridge, ExclusionRectangle with the excludeExtrusionBridgeObjects flag is the correct mechanism. Got a screenshot of the bridge and an XML sample?-Doug

Share this post


Link to post
Share on other sites

Thanks for the reply Doug. Here is the XML data:<?xml version="1.0" encoding="UTF-8"?>As you can see I'm trying to exclude 2 different bridges in this one exclude file. The file compiles OK and a BGL file is created, but as you can see from the screenshot below the bridge is still there, so obviously I'm making some kind of mistake.Here is a screenshot of one of the bridges I'm trying to exclude (the autogen bridge on the bottom) and I'm replacing it with the bridge "on top":http://forums.avsim.net/user_files/166371.jpg


Ken

Share this post


Link to post
Share on other sites

>Thanks for the reply Doug. Here is the XML data:>><?xml version="1.0" encoding="UTF-8"?>>> latitudeMinimum = "38 15.68"> latitudeMaximum = "38 16.09"> longitudeMinimum = "85 44.49"> longitudeMaximum = "85 44.74"> excludeExtrusionBridgeObjects = "TRUE"> />> latitudeMinimum = "38 16.60"> latitudeMaximum = "38 16.84"> longitudeMinimum = "85 49.16"> longitudeMaximum = "85 49.48"> excludeExtrusionBridgeObjects = "TRUE"> />>>>As you can see I'm trying to exclude 2 different bridges in>this one exclude file. The file compiles OK and a BGL file is>created, but as you can see from the screenshot below the>bridge is still there, so obviously I'm making some kind of>mistake.>>Here is a screenshot of one of the bridges I'm trying to>exclude (the autogen bridge on the bottom) and I'm replacing>it with the bridge "on top":>You are in west longitude territory. Swap your longitudeMinimum and longitudeMaximum values (and place a "W" before each).-Doug

Share this post


Link to post
Share on other sites

Thanks Doug. That did the trick all right. However, swapping the west longitude min and max values throws me; longitude values increase as you move west, do they not? Reversing the values I'm not getting, unless the northern hemisphere western values are negative values. Is that it?


Ken

Share this post


Link to post
Share on other sites

>Thanks Doug. That did the trick all right. However, swapping>the west longitude min and max values throws me; longitude>values increase as you move west, do they not? Reversing the>values I'm not getting, unless the northern hemisphere western>values are negative values. Is that it?Think of it as a cartesian coordinate system centered at 0 lat, 0 lon. As you move west of (0,0) the magnitude of longitude increases, but the value is negative. Similarly, as you move south of (0,0) the magnitude of latitude increases, but the value is negative.Good to hear your scenery is working.-Doug

Share this post


Link to post
Share on other sites
Guest Loke

Doug,I cant get this to work for the Eastern hemisphere. What am I doing wrong in my xml file?<?xml version="1.0" encoding="UTF-8"?>Cheers,Andrew

Share this post


Link to post
Share on other sites

Try removing the N and E.George

Share this post


Link to post
Share on other sites

>Doug,>>I cant get this to work for the Eastern hemisphere. What am I>doing wrong in my xml file?>><?xml version="1.0" encoding="UTF-8"?>>> latitudeMinimum = "N60 22.16"> latitudeMaximum = "N60 22.24"> longitudeMinimum = "E5 09.18"> longitudeMaximum = "E5 10.34"> excludeExtrusionBridgeObjects = "TRUE"> />>>>Cheers,>AndrewYour bridge is at approximately N60 22.35 Try increasing your latitudeMinimum and latitudeMaximum each by 0.15 minutes.-Doug

Share this post


Link to post
Share on other sites
Guest Loke

Terrific, thx, Doug!Posting a working xml that places my bridge and excludes the autogen bridge:<?xml version="1.0"?>Nice to have the exclude built into the model bgl :-hah Cheers,Andrew

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...