Join Segments of line (road segments) SDO_AGGR_UNION/SDO_AGGR_CONCAT_LINES

Hello

I have road segments I need join/merge in order to get the axe of full road. Unfortunately, I have some segments that are not attached and the axe of road resulting has a gap.

When I look at the road segments and the result of the join it seems to me that the aggregation does not work for roads that either have segments that are disjoint (we have a few roads where simple segments do not touch) or if a road has two or more "branches" (just take the letter 'Y' as example for this).

(1) SDO_AGGR_CONCAT_LINES

Did not work at all - I couldn't create a view using SDO_AGGR_CONCAT_LINES. As mentioned in documentation - is not suitable if you have bows (we have).

(2) SDO_AGGR_UNION

I tried SDO_AGGR_UNION also that the documentation mentions: "do not use SDO_AGGR_UNION to merge the string line or chain multiline; Instead, use the function of spatial aggregation SDO_AGGR_CONCAT_LINES . »

(3) SDO_AGGR_SET_UNION

I tried as well SDO_AGGR_SET_UNION. This seemed promising that the documentation mentions not everything related to arcs but says: «Can aggregate sets of lines...» »

2 and 3 provide the same result. Please take a look at the screenshot (HD, it looks like I can't upload a photo...)

I want to aggregate the segments - is there another function in Oracle, I could use?

Any idea, be it SDO_AGGR_UNION / SDO_AGGR_SET_UNION are / are not suitable for my dataset?

Thank you, Rob

My display definitions:

CREATE OR REPLACE FORCE VIEW AV_V_STRASSEN_2
AS
  SELECT l.fid,
    ln.location_name,
    SDO_AGGR_UNION(sdo.SDOAGGRTYPE(rs.geom, 0.005)) geom
  FROM lm_lo_location l,
    lm_lo_location_name ln,
    lm_lo_road_section rs
  WHERE l.fid = ln.fid_lo_location
  AND l.fid   = rs.fid_lo_location
  GROUP BY l.fid,
    ln.location_name;

    CREATE OR REPLACE FORCE VIEW AV_V_STRASSEN_3
AS
    SELECT l.fid,
    ln.location_name,
    sdo_aggr_set_union (get_geom_set ('lm_lo_road_section', 'geom','fid_lo_location = ', l.fid), .0005 ) geom
  FROM lm_lo_location l,
    lm_lo_location_name ln,
    lm_lo_road_section rs
  WHERE l.fid = ln.fid_lo_location
  AND l.fid   = rs.fid_lo_location
  GROUP BY l.fid,
    ln.location_name;

Hello

After some further tests, I discovered that the cause of the problem seems to be the application I used to display my road network.

I have displayed the view in SQLDeveloper and with FME and two look fine - result is expected (see for 2 and 3). But initially, I used another package to check the view visually.

Stefan - Thanks for the answer to yopur:

-J' I need the roads step road segments displaying the data in our system GIS, most users want a road not simple segments

-performance: will see, if not good, I'll create a carpet. view, the road network is fairly static and does not change often

-gaps: there are no gaps in our data set (but 'gaps' appeared when I displayed the view in a specific package).

-sdo_aggr_union / sdo_aggr_set_union seem to do what I want and seem to work with our data as well

Rob

Tags: Database

Similar Questions

  • CS4: join a zigzag line and a straight line

    I'm pretty new to Illustrator. I use CS4 on mac.

    Here's what I want: a rectangle filled in which the top and bottom line segments are straight and the line segments are two lateral zigzag. I can't find a good way to do it. It seems relatively simple during must be a method to do this, right? I apologize if this has been answered. I did a lot of research, really.

    The first thing I tried: a rectangle, then effect > distort & transform > Zig Zag. Which turns all segments of the zig zag of rectangle, and I want the top and at the bottom right.

    Next: Draw four separate lines and join them to make a form that I can fill. I can do that, right? In any case, the problem: I draw a zigzag line and a straight, perpendicular line. I select endpoints with the tool pen (right?) to join them. When they join, or both become straight and they both became zigzag. Which is not what I want or the other. Here is a picture of what I'm trying to do.Screen shot 2012-06-16 at 9.53.58 PM.jpg

    The other thing I noticed is that the effect of Zig Zag does not give me additional anchor points (at least from what I see) and does not find anchor points where I want. See in the picture above, where the left side selected line, that there is a right way so I anchor points don't line up with the line zigzag that is visible to me. Which means that when I try to attach segments, they make funny shapes around the corner. Which is also annoying. This thread seemed to indicate that Zig Zag should give me additional anchor points on every corner: http://forums.adobe.com/thread/482958. Why I not get that? It's a question of CS4/CS5?

    Essential, I just want to this form. Any method that I can use in CS4 would be much appreciated.

    Thank you!

    To draw the figure:

    1 rectangle tool: drawing a rectangular path.

    2 white pointer: select a segment (not an anchor point).

    3. cut to the Clipboard.

    4 paste in front.

    5. follow the Zig - Zag effect.

    6 expand the appearance.

    7 black pointer: select two traces.

    8 join twice.

    IE7

  • Cannot join 2 simple lines.

    Hello! I like to use flash for the design of some projects, because I like the snap-snap-in magnetic objects, as well as to work with graphic symbols and layers tool.  But recently, fought with a problem of nonsense that is not allowing me to be precise and exact all in drawing and by merging or by joining the lines, I think it's because I am too using zoom (even 1500%), but this means that accuracy is not welcome in adobe flash CC? (version 2014.2)

    Please see the next picture, it seems that in these circumstances, is impossible to this red line with the black line. Its as simple will not be aligned, regardless if I disable magnetic tool. Please note where I put the center of gravity, I need here because he had to angle align the red line, while the two black lines can be linked (red line must close the circuit). I use flash for years, never tried this level of accuracy. Any help?

    546fg.jpg

    Thanks Rob, I don't know what happened, but I opened a new project and reproduce the problem, this time, the line behaves different, that can line up where I want. I don't know what triggers the problem to my other project, but I'm going to start a new. Thank you.

  • Join the two lines into one game

    Hi all

    I have a table with 1 column and records are as below. Below I show only the first 4 records to give an idea.

    Select cn from CSGL_AD_GROUP_OP_COMP_MEM_TEMP where rownum < 5;

    CN
    -------------------------------------------------------------------------------
    CN = JZJXEEW00072305, OU = computers to office, OR = Secured_Systems, OR = Computers, OR = ZJX_ARTCC, OR
    = FL, OR = ESA, OU = ATO, OU = LOB, DC = faa, DC = gov
    CN = JI90NTW00069990, OU = computers to office, OR = Secured_Systems, OR = Computers, OR = I90_TRACO, OR
    = TX, OR = CSA, OU = ATO, OU = LOB, DC = faa, DC = gov

    Now, the requirement is to concatenate the 1st and 2nd rank, concat 3rd and 4th rank, conact 5th and 6th next row and so on and put it in a new column in the same table if its possible, if not in a new table.

    How can I do this, can someone help me.

    Thank you

    Hello

    There are numerous valid aproaches, may be the last of them is more effective than the other in some cases:

    select
     c1.key
    ,C1.cn||C2.cn cn
    from
    CSGL_AD_GROUP_OP_COMP_MEM2 C1,
    CSGL_AD_GROUP_OP_COMP_MEM2 C2
    where
    C1.key+1=C2.key
    and
    mod(c1.key,2)=1
    
    select key, cn from (
    SELECT
     cn || LEAD (cn) OVER (ORDER BY key) cn
    ,key
    FROM    CSGL_AD_GROUP_OP_COMP_MEM2
    )
    where
    mod(key,2)=1
    
    select key, cn from (
    select *
    from
    CSGL_AD_GROUP_OP_COMP_MEM2 C1
    model
    dimension by (key)
    measures (cn)
    rules(
    cn[any] order by key=cn[cv()]||cn[cv()+1]
    )
    )
    where
    mod(key,2)=1
    

    concerning

  • Is there a way to remove the segment lines from a polar grid (filled using livepaint) without join them using pathfinder (which makes it a pain should future changes it will take)?

    I use the polar grid tool to do the graphics in 'ring', but we need to develop and then join segments of same color using the pathfinder before using them in PDF files and images (and not printed, which is fine) to avoid the original grid lines are visible. Is there a way to avoid these lines which display without doing this, because if a change is made then to the table, it's a pain to redo once the segments were joined?

    Example below - the yellow area has not been reached; others have.

    Example.jpg

    I'm so sorry. Should not publish before the first coffee.

    It is a problem of anti-aliasing.

    What you can do when you export raster formats:

    -Do not extend the vectorization.

    -When optimized for 'work' antialiasing method defined export type not "optimized".

    If this does not work: try and apply the pixelation effect and set the resolution on everything that you need to export.

  • Segments of straight lines do not align with grid

    Whenever I draw a straight line segment, it is not lined up on the grid, it is slightly to the left or right side of the line of the grid. (you can see on the line down to the right in the picture).  It is annoying because I can't get a bow to align properly with the segment of the line, as you can see in the picture there is a cliff on the bow where I want to align perfectly on the line segment. I have snap to grid on passing, but I tried with him off and it still does the same thing.

    I tried object-path-join with the line and the CRA chosen, but all that is move the whole arc to the left. I tried to recover the anchor points of the line and move them to the middle and I can get one end to align with the line of sight of the grid, but as soon as I move the anchor in front on the line to straighten out, all snaps back to being slightly to the left or right.

    Someone has ideas of how to do to get my path of line to be directly on the grid, so it is aligned with the CRA?

    illustrator_issue.png

    Any chance you have snap to grid of pixels as well... Check the transformation Panel.

  • How to join lines.

    Hello.

    Could someone show me how to join two lines created with the tool online CC animate so that there is a sharp at the join point. I'm not sure to do that.

    For example if I two0 lines like this:

    line join 1.png

    I don't know how to join them so that they look like this:

    line join 2.png

    Thanks for the tips on how to achieve this.

    Just make sure that they are joined first, take the point and move it to make sure that the two lines move, if they are well hung. If this is not the case, turn on wink, view-> serpentine--> object snap. And then drag one of the points to each other, you will feel it pull the other point.

    Then, all you have to do is choose how they are joined from the line Options Panel.

    Replace your line ends Sqaure and the type of join to Mitre and then adjust the Guide tab to get the desired, desired point.

  • Oracle Spatial function to find the closest channel line according to lat/long

    Hello

    Here's my scenario. I have a table that contains the geometries of type line (road network) channels. The line geomteries are of type Ohio state South (SRID 41104) plan.
    I have a requirement - given a lat/long, find the string line that aligns with this lat/long or the nearest set of strings of line at 0.02 miles.
    It is a typical example of an attempt to identify an accident on our road network situation. Accidents reported us in lat/long through the GPS system.
    How can I achieve this through any space function?

    Thanks for the help in advance.

    Thank you
    L.

    Hello L,

    SELECT
      r.
    FROM
      roadsegments r
    WHERE SDO_NN(r.geometry,
                 sdo_geometry(2001, 41104, sdo_point_type(lat,lon,NULL), NULL, NULL),
                 'sdo_num_res=2 distance=0.02 unit=mile') = 'TRUE';
    

    This will give you the two segments of road nearest you at 0.02 miles. See [url http://docs.oracle.com/cd/E11882_01/appdev.112/e11830/sdo_operat.htm#i78067] documentation on the operator SDO_NN, especially the bit about the use of the index indicator.

    HTH,
    Stefan

  • HELP SQL (auto / full outer join with date corresponding)

    I'm having a hard time get this query nailed... hoping someone can help me sorted.

    create table tab1 (identification number,

    date of eff_date,

    Code1 varchar2 (2),

    Code2 varchar2 (2)

    )

    /

    insert into tab1 values (2, to_date('2015-01-14','YYYY-MM-DD'), 'DAT', 'AS');

    insert into tab1 values (2, to_date('2015-03-19','YYYY-MM-DD'), 'DAT', 'AS');

    insert into tab1 values (2, to_date('2015-08-28','YYYY-MM-DD'), 'DAT', 'AS');

    insert into tab1 values (2, to_date('2015-11-12','YYYY-MM-DD'), 'DAT', 'AS');

    insert into tab1 values (2, to_date('2015-01-03','YYYY-MM-DD'), "DAT", "AE");

    insert into tab1 values (2, to_date('2015-03-14','YYYY-MM-DD'), "DAT", "AE");

    insert into tab1 values (2, to_date('2015-04-18','YYYY-MM-DD'), "DAT", "AE");

    insert into tab1 values (2, to_date('2015-09-14','YYYY-MM-DD'), "DAT", "AE");

    insert into tab1 values (2, to_date('2015-01-14','YYYY-MM-DD'), "DAT", "BS");

    insert into tab1 values (2, to_date('2015-02-14','YYYY-MM-DD'), "DAT", "BS");

    insert into tab1 values (2, to_date('2015-03-14','YYYY-MM-DD'), "DAT", "BS");

    insert into tab1 values (2, to_date('2015-05-14','YYYY-MM-DD'), 'DAT', 'BE');

    insert into tab1 values (3, to_date('2015-09-16','YYYY-MM-DD'), 'DAT', 'AS');

    insert into tab1 values (3, to_date('2015-04-16','YYYY-MM-DD'), "DAT", "AE");

    tab1

    ID, date, code 1, code2

    2. DID DAT 2015-01-14

    2. DID DAT 2015-03-19

    2. DID DAT 2015-08-28

    2. DID DAT 2015-11-12

    2 AE DAT 2015-01-03

    2 AE DAT 2015-03-14

    2 AE DAT 2015-04-18

    2 AE DAT 2015-09-14

    2 BS DAT 2015-01-14

    2 BS DAT 2015-02-14

    2 BS DAT 2015-03-14

    BE DAT 2 2015-05-14

    3. DID DAT 2015-09-16

    3 AE DAT 2015-04-16

    What I need to do...

    1 auto join to match EI for each partition ID

    2. THAT the date must be less than or equal to the date of the AE and when there is more then a line corresponding to this criterion has chosen the date of closest EI of the date of the ACE.

    3. it must be a full outer join because I want to show all lines, even if it is not a match.  There is a beginning, but not record end end gold but no record of departure

    4. If there is an AE line for many AS lines (the SA date is less then equals the date of EI) then join this AE line to all 3 rows of ACE

    5. the same rules for BS and BE.

    result should look like this.

    ID, date, code 1, id_1 code2, date_1, code1_1, code2_1

    2 2015-01-14 DAT AS 2 AE DAT 2015-03-14

    2 2015-03-19 DAT AS 2 AE DAT 2015-04-18

    2 2015-08-28 DAT AS 2 AE DAT 2015-09-14

    2 2015-11-12 DAT DID ZERO ZERO ZERO ZERO

    NO NO NO NO 2 AE DAT 2015-01-03

    2015-01-2 14 DAT BS 2 BE DAT 2015-05-14

    2015-02-2 14 DAT BS 2 BE DAT 2015-05-14

    2015 03-2 14 DAT BS 2 BE DAT 2015-05-14

    3 2015-09-16 DAT DID ZERO ZERO ZERO ZERO

    NO NO NO NO 3 AE DAT 2015-04-16

    My attempt was somewhat along these lines (dealing only with SA / combos AE) but it does not manage the many scenarios one (req 4).

    Select a.*, b.* from

    (select row_number () on the rn (partition by a.id order a.eff_date), a.*)

    of tab1 where a.code2 = 'AS') a

    full outer join

    (select row_number () on the rn (b.eff_date order by b.id partition), b.*)

    tab1 b where b.code2 = 'Æ') b

    on a.id = b.id

    and a.rn = b.rn

    and a.eff_date < = b.eff_date

    Hello

    owbdev99 wrote:

    I'm having a hard time get this query nailed... hoping someone can help me sorted.

    create table tab1 (identification number,

    date of eff_date,

    Code1 varchar2 (2),

    Code2 varchar2 (2)

    )

    /

    insert into tab1 values (2, to_date('2015-01-14','YYYY-MM-DD'), 'DAT', 'AS');

    ...

    Thanks for posting the CREATE TABLE and INSERT.  I know it can be a lot of trouble.  You want to get answers that work, not you?  Make sure that the statements you post too much work.  Test (and, if necessary, attach) your statements before committing.  You said code1 be VARCHAR2, but all the instructions insertion have values of 3 characters for code1.

    You are on the right track, with an analytical function, but ROW_NUMBER solves this problem.  1 "THAT line" could correspond to the 1st, 2nd, 3rd or any other line 'AE' and vice versa.  Try to use the analytical MIN function instead or ROW_NUMBER, like this:

    WITH got_next_e_date AS

    (

    SELECT id, eff_date, code1, code2

    MIN (CASE

    WHEN SUBSTR (code2, 2) = 'E '.

    THEN eff_date

    END

    ) OVER (PARTITION BY ID.

    , SUBSTR (code2, 1, 1)

    ORDER BY eff_date DESC

    ) AS next_e_date

    OF tab1

    )

    s AS

    (

    SELECT *.

    OF got_next_e_date

    "WHERE SUBSTR (code2, 2) s ="

    )

    e

    (

    SELECT *.

    OF got_next_e_date

    WHERE SUBSTR (code2, 2) = 'E '.

    )

    SELECT s.id

    s.eff_date

    s.code1

    s.code2

    e.id AS id_1

    e.eff_date AS eff_date_1

    e.code1 AS code1_1

    e.code2 AS code2_1

    S

    FULL OUTER JOIN e ON s.id = e.id

    AND s.next_e_date = e.eff_date

    AND SUBSTR (s.code2, 1, 1) = SUBSTR (e.code2, 1, 1)

    ORDER OF NVL (s.id, e.id)

    , NVL (SUBSTR (s.code2, 1, 1)

    , SUBSTR (e.code2, 1, 1)

    )

    s.eff_date

    ;

    Out (as you asked):

    ID EFF_DATE CODE1, CODE2 ID_1 EFF_DATE_1 CODE1_1 CODE2_1

    --- ---------- ----- ----- ----- ---------- ------- -------

    2 2015-01-14 DAT AS 2 AE DAT 2015-03-14

    2 2015-03-19 DAT AS 2 AE DAT 2015-04-18

    2 2015-08-28 DAT AS 2 AE DAT 2015-09-14

    2. DID DAT 2015-11-12

    2 AE DAT 2015-01-03

    2015-01-2 14 DAT BS 2 BE DAT 2015-05-14

    2015-02-2 14 DAT BS 2 BE DAT 2015-05-14

    2015 03-2 14 DAT BS 2 BE DAT 2015-05-14

    3. DID DAT 2015-09-16

    3 AE DAT 2015-04-16

    I guess code2 is always 2 characters, and the 2nd character is always ' or 'E '.

    I assume that the combination [id, eff_date, code2] is unique.

    If these assumptions are wrong, you need a few minor changes, but nothing big.

  • left and right outer join

    Hi gurus,

    Left outer join:

    -------------------

    Select * from A LEFT OUTER JOIN B on A.col = B.col;

    by definition, a left outer join brings the rows that match the join condition and lines not corresponding to table A.

    My question here is "corresponding to B and no matching rows in A" is that nothing, but... SELECT * FROM A;

    can someone pls clarity...

    Thank you.

    Imagine that you had:

    TableA

    COLUMN1 COLUMN2

    'A'                1

    'B'                2

    'C'                3

    TABLEB

    COLUMN1 COLUMN2

    'A'                 'X1'

    'A'                 'X2'

    'B'                 'Y'

    'D'                 'Z'

    SELECT * FROM TABLEA;

    A 1

    B 2

    C 3

    Now, if you want to join (first column is either in table A or B, (deuxieme from tableA, third table B)

    SELECT * FROM TABLEA A JOIN TABLEB B ON (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    SELECT * FROM TABLE LEFT B EXTERNAL ON (A.COLUMN1 = B.COLUMN1) JOIN TABLE

    A 1 X 1

    A 1 X 2

    B 2 Y

    C 3 {null}

    SELECT * FROM TABLE A TABLE RIGHT OUTER JOIN B (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    D {null} Z

    SELECT * FROM TABLE A TABLE FULL OUTER JOIN B (A.COLUMN1 = B.COLUMN1)

    A 1 X 1

    A 1 X 2

    B 2 Y

    C 3 {null}

    D {null} Z

    HTH

  • SQL JOIN. We'RE after or before the keyword JOIN later

    Hi guys,.

    I spotted a very unusual behavior that I can't explain.

    I've isolated the problem to the following joints.

    Why the second join returns no less line? Why the first JOIN causes more lines?

    LEFT OUTER JOIN DWH.SA_BEZ_SAS_GRUPPE_V stellwerkg
    INNER JOIN DWH.SA_STELL_V stellwerk
    WE (stellwerkg.owner_fid = stellwerk.fid)
    WE (stellwerkg.member_fid = vorsignal.fid)
    -5413 lines

    LEFT OUTER JOIN DWH.SA_BEZ_SAS_GRUPPE_V stellwerkg
    WE (stellwerkg.member_fid = vorsignal.fid)
    INNER JOIN DWH.SA_STELL_V stellwerk
    WE (stellwerkg.owner_fid = stellwerk.fid)

    -5411 lines

    Thanks for any clarification.

    very strange indeed - so we have:

    SQL > select / * normal ANSI syntax * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    5 we (t3.id = t1.id)

    inner join 6 t2

    7 on (t3.id = t2.id);

    COUNT (*)

    ----------

    10

    SQL > select / * strange ANSI syntax: predicate of order 1, 2 * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    inner join t2 5

    6 we (t3.id = t1.id)

    7 on (t3.id = t2.id);

    on (t3.id = t1.id)

    *

    FEHLER in line 6:

    ORA-00904: "T1". "" Id ": ungultiger Bezeichner

    SQL > select / * strange ANSI syntax: predicate of order 2, 1 * /.

    2 count (*)

    3 from t1

    left outer join 4 t3

    inner join t2 5

    6 we (t3.id = t2.id)

    7 on (t3.id = t1.id);

    COUNT (*)

    ----------

    15

    We get:

    • a result of 10 lines with the 'normal' ANSI syntax
    • an error with the predicates separate from the FROM clause and predicate order t3 - t1, t3 - t2
    • a result of 15 lines with separated from the FROM clause predicates and predicate t3 - t2, t1 - t3 reverse order

    A look at the CBO (event 10053) trace we see for queries returning a result the following 'final request after transformations"(reformatted):

    / * the normal ANSI syntax * /.

    SELECT COUNT (*) 'COUNT (*).

    OF "C ##TEST". " T1""T1 ".

    "C ##TEST". " T3""T3 ".

    "C ##TEST". " T2""T2 ".

    WHERE "T3". ' ' ID ' = 'T2 '. "" IDENTITY CARD ".

    (AND "T3". ' ' ID ' = 'T1 '. "" IDENTITY CARD ".

    / * the strange ANSI syntax: predicate of order 2, 1 * /.

    SELECT COUNT (*) 'COUNT (*).

    OF "C ##TEST". " T1""T1 ".

    (SELECT "T3". ' ' 'ID' ID. '

    OF "C ##TEST". " T3""T3 ".

    "C ##TEST". " T2""T2 ".

    WHERE "T3". ' ' ID ' = 'T2 '. (' ' ID ') "from $_subquery$ _004.

    WHERE "from $_subquery$ _004. "ID"(+) = "T1". "" IDENTITY CARD ".

    So we see that the 'normal' ANSI version indeed remove the outer join, while the version of working with separate predicates is still an outer join - and I think that explains the different results of your initial query. Track also shows some 'ANSI architecture' (with a small I) information (since the ANSI syntax is internally converted into traditional Oracle join syntax) and the (Ouattara) on the elimination of the outer join (for the 'normal' ANSI query: "Ouattara: outer join of T3 and T1 to join inner conversion.") considered Ouattara: given the predicate "T3". ' ID '= 'T1'. » ID » »). The result of the architecture 'ANSI' is different in the two cases is not a surprise that the heuristic transformations finally also return different results.

    Basically, I think that the question is indeed the order of operations:

    • If inner join t2 t3 and then the outer join T1 with the resulting 10 lines of the first step we get 15 ranks accordingly (since t1 contains 15 lines)
    • If we join outer t1 to t3 (15 lines) and then do the inner join T2 on t3.id (i.e. NON NULL only for 10 T3 lines) we get only 10 lines in the final result

    Personally, I would try to separate these operations in subqueries (as in the final transformation for the query "strange ANSI syntax: predicate of order 2, 1") to make sure that I still understand the logic of my combinations.

  • Show ToolTips and line graph point cloud where data extracted by SQL


    I'm looking to create a scatter chart to display the results of a SQL query. The graphic appears as

    anychart.png

    I want to have the points to is joined by a line and - bubbles that appear when a single point are selected. My existing custom XML is displayed at the bottom of this post. I tried different formats between the < / tooltip_settings > tags, but nothing appears. Similarly, I tried different line format settings. Interestingly, if the string #DATA # is replaced with a block as...

    < data >

    < name of series = 'Dirty' type = 'Line' >

    < y = '1.172' point x = "1063512000" / >

    < y = '1.916' point x = "1095048000" / >

    < point y = "5.57" x = "1126584000" / >

    < point y = "15.0" x = "1158120000" / >

    < point y = "144" x = "1189656000" / >

    < / series >

    < / data >

    ... then a line and bubbles appear. It seems that all that is in the #DATA block # is not enough to create a line, and ToolTips. The data is retrieved by a query that returns the 4 columns LINK, TAG, X_VALUE, Y_VALUE

    Is there a way in which something can be configured for line and tool tips to appear?

    Existing custom XML

    <? XML version = "1.0" encoding = "UTF-8"? >

    < anychart >

    < Parameters >

    < local >

    < date_time_format >

    < format > %u < / size >

    < / date_time_format >

    < / locale >

    < / Parameter >

    < graphics >

    < graphic plot_type 'Scatter' = >

    < data_plot_settings >

    < line_series >

    < tooltip_settings enabled = "True" >

    < / tooltip_settings >

    < / line_series >

    < / data_plot_settings >

    < chart_settings >

    < title >

    Scatter line < text > < / text >

    < /title >

    < axes >

    < y_axis >

    < title >

    < text > County < / text >

    < /title >

    < scale type = "Linear" / >

    <>labels

    < format > {value %} {numDecimals:0} < / size >

    < / Label >

    < / y_axis >

    < x_axis >

    < scale type = 'DateTime' major_interval = '1' minor_interval = '3' major_interval_unit = 'Year' minor_interval_unit = 'Months' minimum_offset = '0' maximum_offset = '0' / >

    <>labels

    < format > {value %} {dateTimeFormat: % YYYY} < / size >

    < / Label >

    < title enabled = "true" >

    < text > Date < / text >

    < /title >

    < / x_axis >

    < / axis >

    < / chart_settings >

    #DATA #

    < / chart >

    < / charts >

    < / anychart >

    This is because the apex generates the series not as a type of line, but as a type of marker:

    
    
    
    
    ...
    

    You will need to provide the data yourself, in the format you want, that is to say a series of line type. You can't set it up.

  • Understanding joins

    Hi all

    I want to understand something about the join of two tables with a single column.

    When you join emp and dept of scott/tiger and write it

    Select * from EMP, dept

    where emp.deptno = dept.deptno;

    What does this mean? say I have the engine to do? , can I tell the motor to "select all the data from the two tables when you see a record in the deptno from emp table" is equivalent to "a record in the deptno in dept table?

    This is how it is done?

    and if so, how the engine to know if it has values equal or not, should be the first value in the emp.deptno and make a loop on the dept.deptno to know, or how do you?

    I want to know what I'm saying the engine 'in English' to understand, and how this is done?

    Thank you

    Hello

    ORA-01400 wrote:

    ... let's talk about what's going on.

    I think I am saying when the deptno in the main table is equal to a record in the secondary table, he gets the master record and the detail record? Yes or no?

    You don't need to have tables 'master' and 'detail '.  Whenever there is a line in the emp table, he will join every line in the dept table that has the same deptno. If there are 2 dept lines that have the same deptno as a line in emp, so that the rank of emp will join these 2 rows of Dept.

    If there are 3 rows in dept with the same deptno as a row in the EMP, so that the rank of emp will join the 3 lines of Dept.

    ...

    If there are N lines in dept with the same deptno as a row in the EMP, so that the rank of emp will join lines N of Dept.

    In a join internal (like the one you posted) that goes for N = 0, so if 0 rows in dept have the same deptno like a row of EMP, emp line will appear 0 times in the result set (that is, the row of PGE will be not in the game at all.)

  • Difference in using the join condition

    Hello

    Can someone please explain the difference between below towing queries using joins.

    First, I used additional where condition on the statement.

    Select count (*) from table1 t1

    Join external table2 t2 on t1.c1 = t2.c2 = 'ZZZ' and t2.c1 left

    In the second I used it in where condition.

    Select count (*) from table1 t1

    T1.C1 = t2.c1 left outer join table2 t2

    where t2.c2 = 'ZZZ'

    Although, in both cases using the Iam Left outer join that I get different results. Someone please you suggest on this?

    Thanks in advance

    In the first case, Oracle selects a row in the DEPT table and looking for lines in the EMP table for the same service as employees in the DEPT table and job MANAGER. If it does not find these lines it still selects lines of the DEPT table joined with the line of the EMP table where all column values are NULL. That's why first query returns with NULL ename OPERATIONS Department. Second query selects a row in the DEPT table and research lines in the EMP table employees in the same Department in Dept. Similarly it OPERATIONS Department joins with ename and use NULL NULL. But the second query is the WHERE clause is applied after the tables are joined. So now we are looking for JOB = 'MANAGER' in the already joined tables and of course will not select row to the Department of OPERATIONS. In other words, second request denies the need for external since join together there is no external attached lines will always be NULL job.

    SY.

  • Confusion about natural join

    In the HR schema, to the natural join done on employees of three tables, different places, that no row is returned and Department based on the columns in the select list

    For the query

    Select country_id, location_id, department_id as well as wages of employees
    departments of natural join
    locations of natural join

    32 rows are to be extracted.

    Time of the request

    Select the salary, department_id from employee
    departments of natural join
    locations of natural join

    736 lines are retrieved.

    Please explain how the name of column in select affect the natural join of the list

    Hello

    suchibm wrote:

    Hi frank,.

    Thanks for the advice, but it's accreditation. I use Oracle XE Databae.

    But which version?   If you are unsure, run

    SELECT *.

    SINCE the release of v$.

    The important part will be the bunch of numbers towards the end of the 1st line.

    This looks like a bug has been fixed in version 11.2.0.2.0 (or arose after that version).

    A book of preparation of certification (or something like that), said you should get different results of these 2 queries?

    If not, ignore the result 736 set line; 32 is the expected number of rows.

    Just curious, when you get 736 lines, they are 23 copies of the same 32 ranks that you get in the query on the other?  Use COUNT (*) in a GROUP BY query to find out.

    It's a shame that certification documents include such useless things as NATURAL JOIN.  While you are studying for certification, invest your time in something that you can use in real life.  There must be other subjects that you don't fully understand and do not have bugs in your version.

Maybe you are looking for