Generating links nodes

I have a large table of links (road network) and I'm trying to generate a new one for the matching nodes. In addition, I need to present existing links, the start_node and the end_node. I create new nodes by taking SDO_LRS. GEOM_SEGMENT_START_PT and SDO_LRS. GEOM_SEGMENT_END_PT of links.

However, at the crossroads (where 4 links meet) are a 4 generated distinct nodes, instead of a single, which would be shared between all 4 links. To solve it, I could use the function of the distance to each node a to find and remove other nodes with the same geometry, leaving only one, but it's too expensive.

Are there other ways to generate the nodes more quickly?

see you soon

Hello
Suppose you have a table node with node_id, geometry (sdo_geometry)
You can create a spatial index on node_geometry.

Create a table of node mapping: node_id, target_node_id.

Then, to find all nodes that are a given distance WRT a given node. (using operator sdo_within_cost)

select a.node_id node_id, min(b.node_id) target_node_id
from node_table a, node_table b
where sdo_within_distance (b.geometry,a.geometry,'distance = 0.001') = 'TRUE'
group by a.node_id;

For the Group of the intersection of 4 knots (1,2,3,4)
you get:

target_node_id node_id
1 1
6 5
1 of 3
4 1

To the node table, remove those whose node_id is greater than his target_node_id. This command removes the redundant nodes.

For the table of links: link_id, start_node_id, end_node_id...
You can update the start_node_id and end_node_id with their target_node_id in the node_mapping table.

It is more efficient that you use the spatial operator.

I hope that helps!

Jack

Tags: Database

Similar Questions

  • Why ADF links node is not displayed in the generator Expression window?

    Hello

    I use Oracle JDeveloper Studio Edition Version 11.1.1.1.0and I created a Web Application from merger and I configured ADF authentication and security for my web project, using the provided Wizard.

    On a specific page, I placed a component link to go, and I'm trying to edit the text and the Destination property using Expressions of EL. When I open the expression builder window all I can see are the following nodes: ADF controller objects, ADF Managed Beans, JSF managed Beans and JSP objects, but no links ADF. I need to access the properties of securityContext , and what I read in B31974-03, I need links to the ADF.

    Also, I have tryied using the search field from the windows of generator expressions, without a bit of luck.

    It's probably a problem of beginner, but I really can't understand it. Help, please.

    Bogdan.

    Hello

    Maybe your problem is that you have not created pageDef in connection with your page. Try to right click on your page and go to the Page definition. It will create the related pageDef, if it does not exist.

    Hope this helps

    Joseba

  • Generate tiny nodes in XML

    Hello

    In my PL/SQL procedures, I generate XML files based on SQL queries like this:

    SELECT XMLELEMENT ("web_vpreparations",
    XMLAGG)
    XMLELEMENT ("web_vpreparation",
    XMLFOREST (CODE "Code",
    COMMERCIAL_NAME as "commercial_name."
    ............................................

    As you can see, I rename my column names to their lowercase equivalents, because the application client that treats the XML file expects they are tiny.

    Now, I have a great view with hundreds of columns and I would like to avoid having to rename all of them. Is there a chance I can tell PL/SQL or SQL to return the XML nodes in tiny?

    I'll appreciate any help on this problem.

    Chris.

    Is there a chance I can tell PL/SQL or SQL to return the XML nodes in tiny?

    "You can try to ' switch ' to xmltable instead:

    SQL>  select trim(column_value) cv from xmltable('for $i in ora:view("emp")/ROW[EMPNO=7788]/* return element {lower-case($i/name())} {$i/text()}')
    /
    CV
    ----------------------------------------
    7788
    SCOTT
    ANALYST
    7566
    1987-04-19
    3000
    20                     
    
    7 rows selected.
    
  • Generate links to a file

    Hi, I'm trying to dynamically create connections between data in a JSON file.

    I can load the JSON file and extract the data, but I don't know how to keep track of the URLs going to what are the titles.

    For example, I create a text box and put the words 'AOL Homepage' in it and another that says "Google Homepage". I know that their respective URLs are http://www.aol.com and http://www.google.com, but how do I keep this information so that when someone clicks on "AOL Homepage" he knows he needs to bring to aol.com?

    I have considered the creation of a dictionary that stores the titles and the URLS so that whenever someone clicks on «AOL Homepage» he who looks into the dictionary and sees " " http://www.AOL.com ". However, if there are two equal titles, this method will not work.

    It would be useful if I could attach a URL to a specific text box, but I don't know how to do it.

    Any suggestions?

    Matt

    create a movieclip that contains a textfield.  for each title, add a movieclip, set the text to the textfield property, assign a URL property to the movieclip that points to this URL and a mouse for the movieclip listener.

  • Eloqua reporting: what is the difference between 'Link clicks' and 'interactive generated query string value "?

    clicks.png

    Sometimes, I need to look at the link clicks in order to determine what link they clicked and sometimes the value of query string. What is the difference?

    Redirect link is the actual URL that redirects to a specific Web site location.

    Value of query string of clicks is what follows after the "?" in the link. These query strings do not change the location where the user is directed to but is for information purposes.

    If you were to combine interactive generated link and the value of clicks query string, you will get the full link following the user.

    Example: In your screenshot, for the first row in the report, the user would have followed this link:

    https://play.Google.com/store/apps/details?ID=no.osloby.app

    The report broke it into 2 parts: clicks link (https://play.google.com/store/apps/details) and the value of query string of clicks (? id = no.osloby.app).

    You can create custom query strings under configuration > site: query strings. This can be useful if you want to create your own way to mark up and view metrics on clicks for links. When you define a query string parameter, you can add this setting with different values at the end of the links to follow only those (ex: "?") QueryStringParam = value1'). I used this is to differentiate between separate instances of identical links in the same email (ex: a link is a banner image and text) to see who is the most useful and results in the most traffic. You can then view a breakdown of clicks by each query string under Insight > reports and dashboards > site > overview of Query String parameters.

    Hope this helps... Let me know if you have any other questions.

  • Display a link generated inside a window through the bean

    Hello

    I'm showing a link generated inside my popup.

    My popup up should show a whole database PL/SQL function result.

    Now I can't get a link within the popup window so my contextual text looks like this:

    Number of files: xyz

    And users must enter this number to download the file.

    http://example.com/download/file_nr=XYZ

    But I don't want to give them a generated link that will appear inside the popup.

    I tried to insert something like this inside the popup text variable.

    popupText = "< text af:link = 'Click here' destination =" " http://example.com/download/file_nr= ' ' + file_nr + ' "targetFrame ="_blank"/ > to download the file '; '.

    But it does not work. In JDeveloper 12 c.

    Can someone help me?

    Thank you

    DestinatioN

    I tried to insert something like this inside the popup text variable.

    popupText = "" http://example.com/download/file_nr=" +file_nr+""="" targetframe="_blank"> to download the file ";"

    You cannot generate user interface components like this.

    Instead of putting af:link in your popup and bind the property to a string variable destination, for example: destination = "#{yourBean.someLink} '"

    Or, if by 'popup' you actually talk FacesMessage, then build URLs with the tag html (text link)

    (you can probably use the same approach with af:outputText but you must set escape = "false" to this topic)

    Dario

  • Provide the Webservice not generating corresponding WSDL URL link based on the service operation.

    Hi all

    The webservice to provide link generates the corresponding WSDL URL based on the Service operation.

    For example, we currently have two service operations namely creating and updating. We use the e-mail of lines. Provide the Webservice correct WSDL URL generated link to the create operation, but it provides the same URL for the update operation as well. kindly share your knowledge if you guys ever faced similar problem.

    Concerning

    Lherault

    Hakan,

    I agree with you that service operations are childs of Services. I am trying to create URLS for the operations of specific service because of the requirement. So if this is the case, then the URL must be different, I think. I tried your logic of selection of all service operations and generate a unique URL for this service. But when I tried to open the URL in Internet explorer all I could find under the label of operation name is a Service operation and not any other selected. I went and checked under the UTILITIES SERVICE--> Service of Directors. Under the WSDL of the Service operation generaed I deleted the existing generated WSDL and then recreated the URL of the web service to provide and the problem is solved. Thanks for your time and effort Hakan... Very much appreciated.

    Concerning

    Lherault

  • Configuration of VLAN 6248 - link IP subnet to the VLAN

    We have 200 node network with no VLAN (small private company that developed quickly)

    All nodes / devices / etc. of PCs spread evenly over 6 Dell 5448 switches with no regard for the Department, location or usage.

    (1) L3 is 6248 - we've added 6248 route VLANs (everything is on VLAN 1 still - i.e. without marking)

    (2) L2 several VLANS by switch - the best of cases, 2 VLANS by 5448

    (3) trunk / general uplink L2 s 5448 using LAG (44, 45 ports) - should be labelled all traffic, but since it will be a conversion / migration on an e-commerce network 24 x 7, we thought that we would have to do uplink between 5548 s and 6248 General and changes to the trunk later

    (4) for the conversion, all uplinks of trunk/general will have several VLANs marked as vlan1 untagged traffic

    (5) we know fixed us every VLAN gateway IP to the IP address of 6248 maintenance the VLAN, but can't decide how to proceed with no one-to-one correspondence of VLAN LAG uplink

    Questions on 6248

    Q1: we would use "bind the IP subnet to the VLAN ' the 6248 to configure routing between VLANS or do we define the belonging to a VLAN by LAG?

    Q2: would we be able to ping the IP of the bridge VLAN configured in the 6248 a down host link / node / PC marked for the same VLAN?

    Any suggestions would be most appreciated.

    On the 6248 allowing to the VLAN routing you must just ensure each VLAN has an IP address assigned to it:

    Console (config) #interface vlan 5

    Console (config - vlan) #ip address 192.105.1.1 255.255.255.0

    Then enable routing on the switch:

    Console (config) #ip Routing

    That's all that needs to be configured on the 6248 for VLAN routing to work. One thing to take steps, is that on the 6248 the management VLAN is not routable. By default, the management VLAN is VLAN 1. Two options are to move the management VLAN a VLAN different:

    Console # configure

    Console (config) #ip address vlan 99

    Or not use VLAN 1 at all. Place traffic on other VLANs.

    The answer to your second question is Yes. With the VLAN routing enabled a customer to any what VLAN should be able to ping the gateway of the 6248.

    When it comes to generals and trunk mode. General mode is like a combination of access and trunk, you can send several VLANS not identified. General mode is most commonly used on the 6200 switches when connecting with the new switches, trunk sometimes doesn't connect when it is connected to a most recent switch. I suggest using the general mode on the 6248 and if it works, leave it in general mode.

    Here is a list of various white papers which all have some good info to have.

    http://en.community.Dell.com/TechCenter/networking/w/wiki/2580.networking-whitepapers.aspx

    6248 user's Guide

    FTP://FTP.Dell.com/manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/PowerConnect-6248_User%27s%20Guide2_en-us.PDF

    6248 cli guide

    FTP://FTP.Dell.com/manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/PowerConnect-6248_Reference%20Guide_en-us.PDF

    5548 user's Guide

    FTP://FTP.Dell.com/manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/PowerConnect-5524p_User%27s%20Guide_en-us.PDF

    5548 cli guide

    FTP://FTP.Dell.com/manuals/all-products/esuprt_ser_stor_net/esuprt_powerconnect/PowerConnect-5524_Reference%20Guide_en-us.PDF

    Having to update firmware of the switch can help with interoperability.

    6248

    http://www.Dell.com/support/home/us/en/04/product-support/product/PowerConnect-6248/drivers

    5548

    http://www.Dell.com/support/home/us/en/04/product-support/product/PowerConnect-5548/drivers

    See you soon

  • No nested extensible XML nodes

    Nice day

    I am new to Oracle, working on a project for a client, from a .NET/MSSQL environment. Initially the project was intended for MSSQL, but it was decided, a week before the deadline, we should migrate database and all the functions and procedures in Oracle. Most of this had progressed relatively smoothly, until today.

    The idea is to query the database and return the XML as follows (Simplified):

    < document >

    < id > 1 < /ID >

    cheeses from < name > < / name >

    < owner >

    < name > bert < / name >

    < identification >

    Passport < type > < / type >

    < number > 12345 < / number >

    < / identification >

    < identification >

    travel document < type > < / type >

    < number > 98765 < / number >

    < / identification >

    < / owner >

    < / document >

    The structure of the XML has been implemented by an international organization and is 100% out of my control.

    As you can see it the 'identification' node repeats without being nested, and that's what I need. So far I've been able to get the repeat nested under some other node ( Redmark), as follows:

    < document >

    < id > 1 < /ID >

    cheeses from < name > < / name >

    < owner >

    < name > bert < / name >

    < identification >

    < identification >

    Passport < type > < / type >

    < number > 12345 < / number >

    < / identification >

    < identification >

    travel document < type > < / type >

    < number > 98765 < / number >

    < / identification >

    < / identifications >

    < / owner >

    < / document >

    Currently I use a function to generate the nodes 'identification', and I call this function to a query, as follows:

    -Function

    CREATE FUNCTION IDENTIFICATIONDETAILS

    .....

    SELECT

    XMLAGG

    (

    XMLELEMENT

    (

    "identification."

    XMLFOREST

    (

    type 'TYPE '.

    number such AS 'number '.

    )

    )

    )

    Of...

    ;/

    -Query

    SELECT

    XMLFOREST

    (

    p.NAME AS 'name',

    IDENTIFICATIONDETAILS (p.ID) AS 'identification'

    )

    Of

    NO p

    This is how I understand it. XMLFOREST function generates a list of nodes such as specified by its parameters. XMLELEMENT nests, then the nodes generated by the XMLFOREST function under a single node as shown by it first parameter; If this is not done, all the results will be simply sent together not the outer query specifies as follows (not the repetition of type and number):

    < document >

    < id > 1 < /ID >

    cheeses from < name > < / name >

    < owner >

    < name > bert < / name >

    < identification >

    Passport < type > < / type >

    < number > 12345 < / number >

    travel document < type > < / type >

    < number > 98765 < / number >

    < / identification >

    < / owner >

    < / document >

    Function XMLAGG the then consolidates the collection of items returned by the XMLELEMENT function into a single object, otherwise I get the error "several rows returned" (paraphrase). Then, the result of the function is nested under a node of 'identification' (marked Green) that I am obliged to alias parameter XMLFOREST.


    So I need to get rid of the external nesting; This alias 'identifier', it's causing me a headache.

    It's probably something simple, but I've been struggling with this every day now and I think I need the eyes of certain fees, not biased on check it out and point out my flaws. also, some with experiences more eyes go top will also be a bonus.

    Thanks in advance for your time, assistance, and to respond to my problem.

    Best!

    What about

    Select

    XmlElement ("owner",

    XMLAGG)

    XmlElement ('identification',

    XmlElement ("type", e.ename)

    XmlElement ("number", e.empno)

    )

    )

    ) d

    from emp e, Dept. d

    where e.deptno = d.deptn

    Smith

    7369

    Allen

    7499

    ...

  • Is it possible to add a link to a column based on a data variable in another column?

    For example, colonne_1 is A, B, C. I would like to add a link to column_2 but only if colonne_1 = has in fact no connection. Is this possible?

    Hello

    Yes, you can, but for this you generate links in your query itself

    select COL2
    ,COL3
    ....
    ....
    , case
          when COL1 = 'A' then
            ''||COL1||''
          else
            COL1
          end as "col_heading"
    from table_name
    

    Kind regards

    Jitendra

  • Do not click on the node button

    I can't click on the node generating the button to generate a node. This is on top of the movement up/down numbers (see photo). Does anyone else have this problem?

    Screen Shot 2016-06-14 at 1.10.41 PM.png

    You move cursor to side and slightly to the right of the triangle on the Video Effects line. It will be two lines with arrows on each side. When this happens, click down and drag to the right to expose tools.

    MtD

  • Adobe Animate CC - link to js

    Hello

    Animate automate the link to this file" ", "https://code.createjs.com/createjs-2015.11.26.min.js"

    I want to auto generate link to an another js when pres ctrl + enter

    How to set the parameters in Animate?

    Changing HTML editing model.

    1. publication settings > Advanced > export selected model HTML

    2. open exported HTML template in for example Notepad and change $CREATEJS_SCRIPTS with your custom script , for example Google hosted CreateJS

    3. publication settings > Advanced > new import... Select the custom HTML code template

  • repeating nodes using loop but when XML string concating then concating only last iteration of the loop FOr?

    I stuck with a problem that I use FOR loop to generate expandable nodes.
    Now when I concat the node generated in the primary node and then I only last iteration of the loop FOR.
    can someone suggest me a way to manage this error...
    BECAUSE me IN 1.pl_phone_tab. County
    LOOP
    SELECT xmlelement ("phone"
    , xmlelement ("PHONETYPE", xmlattributes ('01' AS "dmnADRP_PHONETYPE"), pl_phone_tab (i) .p_phtype_tab)
    , xmlelement ("PHONENUM", pl_phone_tab (i) .p_phnum_tab)
    , xmlelement ("PRIMARY_CONTACT", pl_phone_tab (i) .p_prcon_tab)
    )
    IN p_phone_xml
    DOUBLE; END LOOP;
    SELECT xmlelement ("PhoneInfo"
    xmlconcat (p_phone_xml))
    IN p_phone_info_xml
    DOUBLE;
    Here, I'm a single node, but there must be two nodes for node of PHONE
  • Tree: Missing '+' on the upper level nodes

    Version: 4.2.0.00.27

    Good Morning-

    I hope it's an easy question... I searched around, but impossible to find the solution.

    Model tree: Classic

    Using the parameter enable the link node with: "click".

    I have a tree discovered with active links on the nodes.  When you click on a node, the link is followed as you wish.  When you double-click on a node, the branch node is expanded (of your choice), but the link is ALSO followed (unwanted).

    It would be really nice if there was an expansion / collapse symbol for each node in the tree, at all levels.  In CLASSIC view, I get this symbol for the child nodes of the parent branch, but the direction of the mother has nothing.  I can't find any way to expand / collapse the nodes at a higher level without double click.

    Is there a template parameter?

    Thank you

    Scott

    the missing node expansion is caused by some CSS and can be fixed with this:

    body .tree > .ltr > li {}

    display: block;

    }

    By their top 5, at least ai2, component tree is still largely obsolete in version 0.9.9a2. I have a plugin that brings jstree 1.0.0 to apex to my github. It is very functional, but may still need a few minor features. My demo page is still rudimentary, but it all works. jsTree version 3 was released at the same time, and once I'm satisfied with what I have now I would switch to v3. https://github.com/tompetrus/Oracle-Apex-AJAX-tree However, I consider the strength of the tree to be on the side of javascript, and many implementations in the tree is to do with javascript. I am considering not coding in a lot more than what I have at the moment.

  • Generated PDF file... TOC items not related

    Been racking my brain all day trying to figure what the hell, I created a PDF document table of contents with hyperlinks to pages of document from FM 9... and now all of a sudden when I save as PDF from the 9 FM my PDF TOC document is not related to the document.  FM 9 help is not very useful.  I use 9 FM, structured.  Help please.

    Thank you

    Eric G.

    OK, it is essential that we were looking for.

    It hyperlinks are there in the table of contents, but faulty - they are not pointing to the correct file of source FM/anchor, they obviously don't work in the PDF file either.

    As you build the links in an external application, this would be the place to look for a solution, because the generated links do not have the correct destination information.

Maybe you are looking for

  • Why some models of laptops was interrupted?

    Why some Toshiba laptop A660 as has Toshiba shut down production and another laptop model has stopped its production?Because there is a problem in these models, because stop manufacturing them... ? Anyone knows it please help me because it frightens

  • Enumeration assimilating types?

    Hi, in C, you can define enumerations for different types of say base16, I have a need to create an enumeration %valeurs hexa% against only the basic base10 values. Is this possible with labview somehow. I relize I can pump the enumeration of basic i

  • Error 633: the modem (or other connecting device) is already in use or is not configured correctly. Any solution?

    I have Microsoft Vista Home Premium edition. I use the data card (broadband +, model - HUAWEI EC1262) to connect to the internet.I get error 633 whenever I try to use the data card to connect to the internet on my laptop. He says that "the modem (or

  • How to open ports for the connection opened on Xbox 360 on WRT160N V2.

    I have the port numbers but do not know how to go from there.  Step by step instructions and help would be most appreciated.  Router is a WRT160N V2.  Thank you

  • My driver uninstall

    I uninstall the driver from my CD-DVD-ROM and restart my computer and once it is restarted, a message pops up saying "driver install", but as soon as it starts to install guard saying cannot install, I need help.