Drawing a polygon on several maps

Hello,
I'm drawing a polygon on my map, in WPF. Everything's fine, but the problem is when i zoom out, i can see other maps, like if they're added after the principal and the polygon isn't drawn on those.
My questions are : Is it possible to draw on several maps at the same time? And how to do it?
Thanks
Max

I guess the second option is the one that i need, but it doesn't work for me. I took the exemple in the msdn page of "Adding shapes to the map". I modified it so it can do what i want, but it tells me that he can't load "Microsoft.Maps.MapControl.WPF.pdb".
I've searched everywhere but can't find any references to this error.
Here's the code:
MapTileLayer layer = new MapTileLayer();MapPolygon polygon = new MapPolygon();
polygon.Fill = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Blue);
polygon.Stroke = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Green);
polygon.StrokeThickness = 5;
polygon.Opacity = 0.7;
polygon.Locations = new LocationCollection() { new Location(47.6424,-122.3219),
new Location(47.8424,-122.1747),
new Location(47.5814,-122.1747)};
layer.Children.Add(polygon);
myMap.Children.Add(layer);

Similar Messages

  • How to draw filled polygons ?

    Hi guys,
    I would like to know how to draw filled polygons using CoreGraphics framework.
    Here is example I am trying to draw:
    I have A,B,C,D,E,F and G.
    Can you suggest me ?
    Thank in advance.

    From CGContextDrawPath:
    "Draws the current path using the provided drawing mode. [..] mode: A path drawing mode constant—kCGPathFill [etc.]"
    Apparently, the accompanying QuartzDemo shows how to use it in practice.

  • When drawing with polygon tool, a solid black rectangle appears??

    When I use the polygon tool to draw, a mysterious black rectangle appears underneath, and grows with my cursor movement, obscurring whatever is underneath. The black shape has nothing to do with the shape I'm creating. I am tracing boundary locations on a map, for example, and the black shape blocks out the lines I'm trying to trace, if my opacity is set at 100%.  It mimics the opacity I'm using to draw.  I never saw this in AA7.  Why would anyone want this function, and is there a way to turn it off?

    Hey leonieDF
    Thanks for your reply. I am exporting edited versions - export seems to work OK when exporting originals. But all my images are edited a bit, even if just simple cropping etc.
    I tried adjusting the color sync profile as you suggested but this didn't help. I also adjusted the gamma and watermark and again, no change.
    It seems like I have some kind of bug or something within Aperture, because it is doing all kind of strange things, like now eny time I edit a photo at all it appears solid black in my "browse" view (but OK when I double click it). Similarly, when I duplicate a photo it does random funky stuff to the photo in browse view (from being solid black, to solid red, to appeairng to have some random color filter, to appearing like static from static TV). These issues are all secondary though from the main issue of not being able to export images, since I have a friends wedding photos I am trying to get out to them!
    Any other ideas of what might be causing this?
    Thanks for your help!

  • Drawing a polygon

    i have a lab on this tomm and i cant figuer out how to do it.
    i just get a blank screen
    any help would really help
    and im not sure if im geting my aqrray coordnants right so that may be the problem
    import java.awt.*;
    import java.awt.event.*;
    public class Lab24ast
         public static void main(String args[])
              GfxApp gfx = new GfxApp();
              gfx.setSize(900,700);
              gfx.addWindowListener(new WindowAdapter() {public void
              windowClosing(WindowEvent e) {System.exit(0);}});
              gfx.show();
    class GfxApp extends Frame
         public void paint(Graphics g)
              RegPoly poly = new RegPoly(400,300,150,8);
              poly.drawPoly(g);
    class RegPoly
         int radius; //of the circle
         int centerx; //X-coordinate
         int centery; //Y-coordinate
         int points; //of points or sides of the polygon
         int xarray[]; //of x-coordinates
         int yarray[]; //of y-coordinates
         public RegPoly(int centerx,int centery,int radius,int points)
              centerx=centerx;
              centery=centery;
              radius=radius;
              points=points;
         public void drawPoly(Graphics g)
              xarray = new int[points];
              yarray = new int[points];
              for(int a =0;a<points;a++)
                   xarray[a] =(int)Math.round(Math.cos((2*Math.PI)*(1+a)/points)*radius)+centerx;
                   yarray[a] =(int)Math.round(Math.sin((2*Math.PI)*(1+a)/points)*radius)+centery;
              Polygon poly = new Polygon(xarray,yarray,points);
              g.fillPolygon(poly);
    }Message was edited by:
    blacklegion

    Either you use this.points = points;
    or
    You can
         public RegPoly(int tempCenterx,int tempCentery,int tempRadius,int tempPoints){
              centerx=tempCenterx;
              centery=tempCentery;
              radius=tempRadius;
              points=tempPoints;
    // the bug is caused by using the name as the class variable(shadow variable)
    class RegPoly
         int radius; //of the circle
         int centerx; //X-coordinate
         int centery; //Y-coordinate
         int points; //of points or sides of the polygon
         int xarray[]; //of x-coordinates
         int yarray[]; //of y-coordinates
         public RegPoly(int centerx,int centery,int radius,int points)
              this.centerx=centerx;
              this.centery=centery;
              this.radius=radius;
              this.points=points;
         public void drawPoly(Graphics g)
              System.out.println("hello");
              xarray = new int[points];
              yarray = new int[points];
              for(int a =0;a<points;a++)
                   System.out.println("start");
                   xarray[a] =(int)Math.round(Math.cos((2*Math.PI)*(1+a)/points)*radius)+centerx;
                   yarray[a] =(int)Math.round(Math.sin((2*Math.PI)*(1+a)/points)*radius)+centery;
                System.out.println(xarray[a]+"_"+yarray[a]);               
              Polygon poly = new Polygon(xarray,yarray,points);
              g.fillPolygon(poly);
    }

  • Several maps in the same carg, how?

    hi, I was trying to upload maps (not with nokia maps loader, by hand) for two different countries but I have the same folder structure and if i unzip the map for the second country in the cities/diskcache folder it will overwrite the first one. any solution to that? is it possible at all to have two different countries at the same time in nokia maps?
    Solved!
    Go to Solution.

    Hi gbmolina
    In Nokia Maps the folder structure is cities with a subfolder called diskcache, filled with 16 subfolders called 0 to 9 and a to f, and each of these folders have another 16 subfolders 0 to 9 and a to f. I haven't added any maps for ages but don't remember any issues as the new data just goes to the empty sub-folders already there.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • MapViewer 12 draw tile layer error with the South hole one polygon

    I use Oracle MapViewer 12. When draw the South hole land with one polygon, the map error. I use Oracle SQL Developer to view the good polygon. I give the image here:
    bad one (text draw in polygon area)
    good one with Oracle SQL Developer (text draw in polygon area)
    I want to know whether can set some parameter to draw correct image OR this is MapViewer bug.
    Thanks.

    This is a bug. It will be fixed in the next patch release.

  • How can i map a file with different structures to several deep structures?

    Hey experts,
    here is my situation. I have to build a file2file scenario. The file has a flat structure without any separators. Depending on the value of the keyfield, i have to determinate, which kind of structure in the current sequence there is. Like i wrote, there isn't any fieldseparator, but for every possible structure (overall 4 types) i know the type by the length of every field in the structure.
    My task is:
    1. Read the file into PI and transform to XML
    2. Map the flat structure depending on the keyvalue to the deep structure
    3. Transform several fields in the different structures like the requirement
    4. Write back the file via FTP as the same flat structure as before
    Do you have any approach to solve the item number 2 (the other steps are clear for me)?
    Do i need several mapping-programs? If so, how can i determinate the right mapping-program, deping on the keyvalue?
    Thanks in advance
    Tobi

    Here the inbound payload:
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_MULTI_TYPES xmlns:ns="namespace">
    - <VORSATZ>
      <ZSATA>0</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZLIEF>T</ZLIEF>
      <START>20080905</START>
      <ZFILL />
      <ZENDE>E</ZENDE>
      </VORSATZ>
    - <KOPFSATZ>
      <ZSATA>1</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <BUDAT>20080904</BUDAT>
      <BLDAT>20080904</BLDAT>
      <XBLNR />
      <WAERS />
      <HWAE2>EUR</HWAE2>
      <HWAE3 />
      <KURS2>000000000</KURS2>
      <KURS3>000000000</KURS3>
      <BKTXT />
      <ZFILK />
      <ZENDE>E</ZENDE>
      </KOPFSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>001</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>30611102</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000057576</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>009</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000021070</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AA</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000009796</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4027V63RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <NACHSATZ>
      <ZSATA>9</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZZSOL>000000000359502</ZZSOL>
      <ZZHAB>000000000359502</ZZHAB>
      <ZZBEL>0000001</ZZBEL>
      <ZZPOS>000000010</ZZPOS>
      <ZFILN />
      <ZENDE>E</ZENDE>
      </NACHSATZ>
    - <VORSATZ>
      <ZSATA>0</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZLIEF>T</ZLIEF>
      <START>20080905</START>
      <ZFILL />
      <ZENDE>E</ZENDE>
      </VORSATZ>
    - <KOPFSATZ>
      <ZSATA>1</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <BUDAT>20080904</BUDAT>
      <BLDAT>20080904</BLDAT>
      <XBLNR />
      <WAERS />
      <HWAE2>EUR</HWAE2>
      <HWAE3 />
      <KURS2>000000000</KURS2>
      <KURS3>000000000</KURS3>
      <BKTXT />
      <ZFILK />
      <ZENDE>E</ZENDE>
      </KOPFSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>001</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>30611102</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000057576</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>009</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000021070</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AA</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000009796</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4027V63RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <NACHSATZ>
      <ZSATA>9</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZZSOL>000000000359502</ZZSOL>
      <ZZHAB>000000000359502</ZZHAB>
      <ZZBEL>0000001</ZZBEL>
      <ZZPOS>000000010</ZZPOS>
      <ZFILN />
      <ZENDE>E</ZENDE>
      </NACHSATZ>
      </ns:MT_MULTI_TYPES>
    And here the outbound payload:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_MULTI_TYPES xmlns:ns0="namespace">
    - <VORSATZ>
      <ZSATA>0</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZLIEF>T</ZLIEF>
      <START>20080905</START>
      <ZFILL />
      <ZENDE>E</ZENDE>
      </VORSATZ>
    - <VORSATZ>
      <ZSATA>0</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZLIEF>T</ZLIEF>
      <START>20080905</START>
      <ZFILL />
      <ZENDE>E</ZENDE>
      </VORSATZ>
    - <KOPFSATZ>
      <ZSATA>1</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <BUDAT>20080904</BUDAT>
      <BLDAT>20080904</BLDAT>
      <XBLNR />
      <WAERS />
      <HWAE2>EUR</HWAE2>
      <HWAE3 />
      <KURS2>000000000</KURS2>
      <KURS3>000000000</KURS3>
      <BKTXT />
      <ZFILK />
      <ZENDE>E</ZENDE>
      </KOPFSATZ>
    - <KOPFSATZ>
      <ZSATA>1</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>000</BUZEI>
      <BUDAT>20080904</BUDAT>
      <BLDAT>20080904</BLDAT>
      <XBLNR />
      <WAERS />
      <HWAE2>EUR</HWAE2>
      <HWAE3 />
      <KURS2>000000000</KURS2>
      <KURS3>000000000</KURS3>
      <BKTXT />
      <ZFILK />
      <ZENDE>E</ZENDE>
      </KOPFSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>001</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>30611102</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000057576</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>009</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000021070</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AA</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000009796</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4027V63RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>001</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>30611102</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000057576</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>009</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AB</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000021070</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4025V64RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <POSITIONSSATZ>
      <ZSATA>4</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <KOART>S</KOART>
      <SHKZG>S</SHKZG>
      <NEWKO>20519109</NEWKO>
      <GSBER>17AA</GSBER>
      <ZUBUK />
      <VBUND />
      <WRBTR>0000000000000</WRBTR>
      <ZBTR1>0000000009796</ZBTR1>
      <ZBTR2>0000000000000</ZBTR2>
      <ZSTEU />
      <VALUT>20080904</VALUT>
      <KOSTL />
      <AUFNR />
      <ZUONR>X4027V63RE460XXXXX</ZUONR>
      <SGTXT>REX</SGTXT>
      <BEWAR />
      <ZFPOS />
      <ZENDE>E</ZENDE>
      </POSITIONSSATZ>
    - <NACHSATZ>
      <ZSATA>9</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZZSOL>000000000359502</ZZSOL>
      <ZZHAB>000000000359502</ZZHAB>
      <ZZBEL>0000001</ZZBEL>
      <ZZPOS>000000010</ZZPOS>
      <ZFILN />
      <ZENDE>E</ZENDE>
      </NACHSATZ>
    - <NACHSATZ>
      <ZSATA>9</ZSATA>
      <MANDT>001</MANDT>
      <BUKRS>0560</BUKRS>
      <BLART>8F</BLART>
      <BELNR>1816008128</BELNR>
      <BUZEI>010</BUZEI>
      <ERDAT>20080905</ERDAT>
      <UZEIT>000549</UZEIT>
      <ZPROG>PGRR3010</ZPROG>
      <ZZSOL>000000000359502</ZZSOL>
      <ZZHAB>000000000359502</ZZHAB>
      <ZZBEL>0000001</ZZBEL>
      <ZZPOS>000000010</ZZPOS>
      <ZFILN />
      <ZENDE>E</ZENDE>
      </NACHSATZ>
      </ns0:MT_MULTI_TYPES>

  • How to calculate the area of polygon in WPF Bing map?

    Hi everyone, I have a polygon on Bing Map WPF and want to calculate its area in square feet. I used a list contained all points of the polygon to calculate using this formula: area += (point.X * nextPoint.Y - point.Y * nextPoint.X)/2. However, the result
    is too large. For example, I calculated a rectangle of 57ft and 80ft and the result was 58000. It's supposed to be 4560. Do I need to convert points to feet? Could you help me to solve this? Thanks a lot.
    Here is my code:
    double area = 0;
    double area2 = 0;
    for (int numPoint = 0; numPoint < inputPoint.Count - 1; numPoint++)
    System.Windows.Point point = inputPoint[numPoint];
    System.Windows.Point nextPoint = inputPoint[numPoint + 1];
    area2 += point.X * nextPoint.Y - point.Y * nextPoint.X;
    area = area2 / 2;

    Calculating the area of a polygon on a map is very complicated as the world is a sphere and you are actually trying to calculate the area of a polygon stretched on the surface of a sphere. Since you are using WPF I'd suggest to make things easy and make
    use of the spatial library available in SQL server. All the spatial functionalities in SQL server are available as a dll which you can use in your WPF application. You can easily use this library to calculate the area of a polygon accurately and do a lot of
    other really powerful things as well. To start off with, if you have SQL instelled you can find the SQL Spatial Library (Microsoft.SqlServer.Types) located in the C:\Program Files (x86)\Microsoft SQL Server\110\Shared directory. If you
    don't have SQL Server installed you can download the express version for free from here:
    http://www.microsoft.com/en-us/sqlserver/editions/2012-editions/express.aspx
    Take a look at this hands on lab for information using SQL spatial tools in .NET:
    http://view.officeapps.live.com/op/view.aspx?src=http%3A%2F%2Fecn.channel9.msdn.com%2Fo9%2Flearn%2FSQL2008R2TrainingKit%2FLabs%2FUsingSpatialDataInManagedCode%2FLab.docx
    Once you have this library you can create an SQL Geography object from your polygon. Once this is done you can then use the STArea method to calculate the area of the polygon. There is a ton of other spatial methods available as well which you can use to
    create a really powerful mapping application.
    http://rbrundritt.wordpress.com

  • How to save polygon drawed on AVPageView?

    I have drawed a polygon on the page view using AVPageViewDrawPolygon.
    After polygon drawing, i need to save the polygon to an image file or save as a cos obj.
    Can i do this?

    Sure, but there are no APIs to help you with this...
    UNLESS you want to create a hidden PDF and then convert that to an image...

  • Using google map polygon without map

    Hallo
    i use a polygon ( com.google.maps.overlays.Polygon) in a value object (fieldData) besides other data, later in the programm the polygons are displayed in a google map.
    new FieldData(".....","1",new Polygon([
                        new LatLng(49.70624852,8.17595987),
                        new LatLng(49.70634712,8.17589098),
                        new LatLng(49.7063722,8.17708855),
                        new LatLng(49.70627548,8.17720608),
                        new LatLng(49.70624852,8.17595987)]
    i instantiate the value objects on programm start and i get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at com.google.maps.overlays::Polygon()
    It seems like i get this error because there isnt a google map object existing at that time on programm start. so i changed my code to call this methode on programm start before creating my value_Objects:
    protected function initMap(): void
                        var map:Map = new Map();
                        map.key = "...................";
                        map.enabled=false;
                        map.visible=false;
                        addElement( map );    
    it works! but i dont like the code, i dont need that map object at that time and not in the main component. so i made it invisible.... isnt there a better way to use polygons without having a map-object?

    sambuu wrote:
    Ok tnx again prometheuzz,You're welcome.
    Actually I am noob in google related development, Me too.
    so let me ask you the last question : Is it possible to use google map APIs from mobile applications, I believe many ppl use those APIs for developing web applications, so all I wanna know is whether it is suitable for mobile applications.
    Tnx in advanceNote that this is a Java forum, not a JavaScript forum or a Google Maps forum.
    Try to search the internet for some useful information:
    [http://www.google.com/search?q=mobile+device+google+maps]
    Good luck.

  • Draw polygon in applet

    HI,
    I want to be able to draw polygon using java applet. I have code to draw poly in an applet but I am wondering if the java tool can draw directly on html image not on image inside of applet.
    Please help
    Ying

    You can generate a gif which is displayed inside a HTML screen.
    Note: HTML does not support polygon drawing so you cannot write HTML to draw a polygon. Unless you want a rectangle (use a table :)

  • Draw polygon using iText

    hi...
    i am working on projects that create some pdf files.. and am using iText to create the pdf files..
    i am trying to draw a polygon(size-5) ..but i cant find anything in itext that help me
    to create that polygon,,,,
    so tell me some way or any tutorials ?
    Thanks & Regards
    fun_with_me

    fun_with_me wrote:
    >
    Oh dear!
    And we are still waiting for you to learn [How to Ask Questions the Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html] .
    if you dont have the answer ..just leave it..
    before suggesting others...
    i think you need to check your manner first.If you had followed the link, you would have seen that the first rule under "When You Ask" is "Choose your forum carefully" and includes the following advice:
    Be sensitive in choosing where you ask your question. You are likely to be ignored, or written off as a loser, if you:
    post your question to a forum where it's off topic
    The first step, therefore, is to find the right forum. Again, Google and other Web-searching methods are your friend. Use them to find the project webpage most closely associated with the hardware or software giving you difficulties. Usually it will have links to a FAQ (Frequently Asked Questions) list, and to project mailing lists and their archives. These mailing lists are the final places to go for help, if your own efforts (including reading those FAQs you found) do not find you a solution. The project page may also describe a bug-reporting procedure, or have a link to one; if so, follow it.Clearly you didn't read the link before writing it off as, um, whatever you wrote it off as. I'd recommend reading the manual before posting again.

  • Draw lines on an obiee 11.1.1.7.1 map.

    What is the best approach to drawing lines on an obiee 11.1.1.17 map.
    The base map is created In mapbuilder 11.1.1.7.3.
    Our data is stored in our data warehouse. Right now we have 2 million rows in the table. Each row represents an x,y point on the map.
    A typical query in the obiee analysis can return  20- 30 x,y positions on the map. We are only at this time showing points on the map. We would like to present the positions as a line (arrow) showing the direction of flow (ordered by time) from one point to the next point, etc.
    Our question – how can we  draw these lines on the obiee map?
    (For instance, is it better with User Defined FOI layers or is it better using Theme-based FOI layers).
    Best Regards
    Joel

    Hi Again!
    We have managed to get the map with line into our obiee dashboard using the Oracle Maps JS API.
    We are taking the data points in our rapport and sending them with the narrative view to the java script functions as described in the workshop examples. It works nicely.
    We are now wondering if we can draw this line onto a map that is created using the maps view in our obiee rapport. Our goal is show the line together with all the points. We could of course script this in our javascript, however we would like to show the points in our obiee map view together with a line connecting the points.
    As it is now in our "draw the line solution", we define a DIV for the map display
    <DIV id="map" style="width:400px;height:300px;padding:10px;"></DIV>
    And then in our javascript function we use the
    var mapview = new MVMapView(document.getElementById("map"), baseURL);
    We are wondering here if we can point to an obiee map view instead of the DIV “map” 
    We have tried various combinations of static text with javascript together with a map view, but can’t get a line to draw on the map.
    Does anyone have any idea how we can get our line into a map view?
    Best Regards
    Joel

  • Question about VBox/HBox and drawing things between things like a Mind Map

    Hi people!
    I'm toying with some techniques to draw something like a mind map using JavaFX. The idea was to make one HBox with two elements, left is the content node and the right element is a VBox with the child nodes.
    The problem is drawing lines between the left node and the child nodes.
    I suspect the double binding might be a problem in the lines definition, or perhaps that VBox/HBox don't actually change the x,y for the children, but rather translate them.
    Here's a working buggy example:
    package tree;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.Node;
    import javafx.scene.paint.Color;
    import javafx.scene.Scene;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class MyNode extends CustomNode {
        var children : MyNode[] = [];
        def rect = Rectangle {
            width: 20
            height: 20
            fill: Color.RED
            onMouseClicked: function( e: MouseEvent ) {
                insert MyNode { } into children;
        public def leftConnectorX = bind rect.x;
        public def leftConnectorY = bind rect.y + rect.height / 2;
        public def rightConnectorX = bind rect.x + rect.width;
        public def rightConnectorY = bind rect.y + rect.height / 2;
        // A vertical layout box of the child nodes
        def childs = VBox {
            spacing: 5
            content: bind children };
        // These are the lines between this node and its direct children
        def lines = bind for(child in children) Line {
            startX: bind rightConnectorX
            startY: bind rightConnectorY
            endX: bind child.leftConnectorX
            endY: bind child.leftConnectorY
        override function create():Node {
            return Group {
                content: bind [
                    lines,
                    HBox {
                        spacing: 15
                        content: [ rect, childs ]
    function run(args : String[]) {
        return Stage {
            title: "Tree of trees"
            width: 800
            height: 600
            scene: Scene {
                content: MyNode {
    }Any ideas why the lines aren't drawn? Or any idea of a better way to achieve mind mapping-ish tree?

    I'm sure there will be some updates soon to fix those small problems. I mean, how hard can it be? ;-)
    I got my code working, had to move the lines to outside the nested HBox/VBox'es to be able to positioning them freely.
    package tree2;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.Node;
    import javafx.scene.paint.Color;
    import javafx.scene.Scene;
    import javafx.scene.shape.Line;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    public class MyNode extends CustomNode {
        var children : MyNode[] = [];
        def rect = Rectangle {
            width: 20
            height: 20
            fill: Color.RED
            onMouseClicked: function( e: MouseEvent ) {
                insert MyNode { } into children;
        public def leftConnectorX = bind rect.boundsInScene.minX;
        public def leftConnectorY = bind rect.boundsInScene.minY + rect.height / 2;
        public def rightConnectorX = bind rect.boundsInScene.minX + rect.width;
        public def rightConnectorY = bind rect.boundsInScene.minY + rect.height / 2;
        // A vertical layout box of the child nodes
        def childs = VBox {
            spacing: 5
            content: bind children };
        // These are the lines between this node and its direct children
        public def lines : Line[] = bind
        for(child in children) [
            child.lines,
            Line {
                startX: bind rightConnectorX
                startY: bind rightConnectorY
                endX: bind child.leftConnectorX
                endY: bind child.leftConnectorY
        override function create():Node {
            return Group {
                content: bind
                    HBox {
                        spacing: 15
                        content: [ rect, childs ]
    function run(args : String[]) {
    def node = MyNode {};
    return Stage {
        title: "Tree of trees"
        width: 800
        height: 600
        scene: Scene {
            content: Group {
                content: bind [ node, node.lines ]
    }

  • Polygon and Star Tool Draw Only from Center?

    Adobe Illustrator 15.1.0 (CS 5.5) on Windows 7.
    I was attempting to draw a polygon shape with an upper left origin point, when I noticed that the polygon and star tools only draw out from the center. Modifier keys have no effect. Rectangle and Ellipse tools work normally.
    I don't remember this behaivor from previous versions.
    Is this a bug?

    I think the reason for the "off-beat" function of the star and polygon tools must be that the dimensions of regular stars or polygons  do not coincide with the dimensions of a square bounding box. This works for circles and squares but not for stars or polygons. So for example drawing a polygon in the "normal" way from the corner of its bounding box and with Shift held down would not result in a regular polygon. Drawing from the centre means that the stars and polygons are always kept regular, so you have to make special efforts if you want to distort them.

Maybe you are looking for

  • Animated GIF in Photoshop CS5

    I want to have my website and phone number rotating on the x-axis as an animated GIF.  Is there a simple way to do this in Photoshop that I'm just missing?  I'd like to be able to insert the GIF in a movie project I've started in Sony Vegas. Thanks!

  • Any suggestions/feedback on this(develeoper 2 develeoper)

    I have been developing a small tool for the last 3 weeks. This tool is intended to speed up application development by means of code generation, some re-usable class library, a framework. I am currently organizing the document for this. The tool is i

  • How can I reactivate a deactivated apple-ID ?

    I had some problems with click&buy and though i always had ceredits on my account it has bee deactivated.I don't get an answer from the support via lane. Does s.o. know the problem ?

  • IOS7 update doesn't appear :(

    Official iOS 7 doesn't appear despite 18 September has passed. I'm on beta6 now, and neither wi-fi nor itunes aint show any updates, help plz!

  • The N97 is still rubbish on v21 firmware

    After upgrading my N97 to v21 there were some improvements but the phone was still very slow and still had several bugs, stability issues, and poor reception. As I had upgraded without a reset I decided to try doing a complete rebuild of the phone to