44 |
44 |
*
|
45 |
45 |
* $Id$
|
46 |
46 |
* $Log$
|
47 |
|
* Revision 1.4 2006-10-18 07:56:56 dagilgon
|
|
47 |
* Revision 1.5 2006-11-13 08:25:04 dagilgon
|
|
48 |
* a?adidas "etiquetas" CLASS (completada) y JOIN
|
|
49 |
*
|
|
50 |
* Revision 1.4 2006/10/18 07:56:56 dagilgon
|
48 |
51 |
* a?adidos los outputformats
|
49 |
52 |
*
|
50 |
53 |
* Revision 1.3 2006/10/17 11:51:09 dagilgon
|
... | ... | |
589 |
592 |
toMapln("END");
|
590 |
593 |
}
|
591 |
594 |
}
|
|
595 |
public static class JoinMap extends MapServerConfiguration{
|
|
596 |
|
|
597 |
public String connection=null;
|
|
598 |
public String connectiontype=null;
|
|
599 |
public String from=null;
|
|
600 |
public String name=null;
|
|
601 |
public String table=null;
|
|
602 |
public String template=null;
|
|
603 |
public String to=null;
|
|
604 |
public String type=null;
|
|
605 |
|
|
606 |
void tomap(){
|
|
607 |
toMapln("JOIN");
|
|
608 |
tabIn();
|
|
609 |
if (connection != null)
|
|
610 |
toMapln("CONNECTION \"" + connection+"\"");
|
|
611 |
if (connectiontype != null)
|
|
612 |
toMapln("CONNECTIONTYPE \"" + connectiontype+"\"");
|
|
613 |
if (from != null)
|
|
614 |
toMapln("FROM \"" + from+"\"");
|
|
615 |
if (name != null)
|
|
616 |
toMapln("NAME \"" + name+"\"");
|
|
617 |
if (table != null)
|
|
618 |
toMapln("TABLE \"" + table+"\"");
|
|
619 |
if (to != null)
|
|
620 |
toMapln("TO \"" + to+"\"");
|
|
621 |
if (type != null)
|
|
622 |
toMapln("TYPE \"" + type+"\"");
|
|
623 |
tabOut();
|
|
624 |
toMapln("END");
|
|
625 |
|
|
626 |
}
|
|
627 |
}
|
592 |
628 |
|
593 |
629 |
public static class MapClass extends MapServerConfiguration {
|
|
630 |
public RGB backgroundcolor=null;
|
|
631 |
public RGB color=null;
|
|
632 |
public String debug=null;
|
|
633 |
public String expression=null;
|
|
634 |
public JoinMap join=null;
|
|
635 |
public String keyimage=null;
|
|
636 |
public Label etiqueta = null;
|
|
637 |
public String maxscale =null;
|
|
638 |
public String maxsize=null;
|
|
639 |
public String minscale=null;
|
|
640 |
public String minsize=null;
|
594 |
641 |
public String name;
|
|
642 |
public RGB outlinecolor=null;
|
|
643 |
public int size=-1;
|
595 |
644 |
public StyleMap estilo = null;
|
|
645 |
public String symbol=null;
|
596 |
646 |
public String template = null;
|
597 |
|
public String expression = null;
|
598 |
|
public Label etiqueta = null;
|
599 |
|
public int size = -1;
|
|
647 |
public String text=null;
|
600 |
648 |
public MapClass(String n) {
|
601 |
649 |
name = n;
|
602 |
650 |
}
|
603 |
651 |
public void classToMap(){
|
604 |
652 |
toMapln("CLASS");
|
605 |
653 |
tabIn();
|
|
654 |
if (backgroundcolor != null)
|
|
655 |
toMapln("BACKGROUND \"" + backgroundcolor.toString()+"\"");
|
|
656 |
if (color != null)
|
|
657 |
toMapln("COLOR \"" + color.toString()+"\"");
|
|
658 |
if (debug != null)
|
|
659 |
toMapln("DEBUG \"" + debug+"\"");
|
|
660 |
if (expression != null)
|
|
661 |
toMapln("EXPRESSION \"" + expression+"\"");
|
|
662 |
if (join != null)
|
|
663 |
join.tomap();
|
|
664 |
if (keyimage != null)
|
|
665 |
toMapln("KEYIMAGE \"" + keyimage+"\"");
|
|
666 |
if (maxscale != null)
|
|
667 |
toMapln("MAXSCALE \"" + maxscale+"\"");
|
|
668 |
if (maxsize != null)
|
|
669 |
toMapln("MAXSIZE \"" + maxsize+"\"");
|
|
670 |
if (minscale != null)
|
|
671 |
toMapln("MINSCALE \"" + minscale+"\"");
|
|
672 |
if (minsize != null)
|
|
673 |
toMapln("MINSIZE \"" + minsize+"\"");
|
|
674 |
if (outlinecolor != null)
|
|
675 |
toMapln("OUTLINECOLOR \"" + outlinecolor.toString()+"\"");
|
|
676 |
if (size > -1)
|
|
677 |
toMapln("SIZE \""+size+"\"");
|
|
678 |
if (estilo != null)
|
|
679 |
estilo.styleToMap();
|
|
680 |
if (symbol != null)
|
|
681 |
toMapln("SYMBOL \"" + symbol+"\"");
|
|
682 |
if (template != null)
|
|
683 |
toMapln("TEMPLATE \"" + template+"\"");
|
|
684 |
if (text != null)
|
|
685 |
toMapln("TEXT \"" + text+"\"");
|
606 |
686 |
if (expression != null){
|
607 |
|
toMapln("EXPRESSION " + expression);
|
|
687 |
toMapln("EXPRESSION \"" + expression+"\"");
|
608 |
688 |
}
|
609 |
689 |
toMapln("NAME \""+name+"\"");
|
610 |
|
if (estilo != null)
|
611 |
|
estilo.styleToMap();
|
612 |
|
if (size > -1)
|
613 |
|
toMapln("SIZE "+size);
|
614 |
690 |
if (template != null)
|
615 |
|
toMapln("TEMPLATE "+template);
|
|
691 |
toMapln("TEMPLATE \""+template+"\"");
|
616 |
692 |
if (etiqueta != null)
|
617 |
693 |
etiqueta.tomap();
|
618 |
694 |
tabOut();
|