Example #1
0
def selfRegister():
    try:
      manager = TopologyLocator.getTopologyManager()
      manager.addRuleFactories(MustNotHaveDanglesLineRuleFactory())
      print "added rule"
    except Exception as ex:
      logger("Can't register topology rule from MustNotHaveDanglesLineRuleFactory."+str(ex), LOGGER_WARN)
def selfRegister():
    try:
        manager = TopologyLocator.getTopologyManager()
        manager.addRuleFactories(PointsMustBeCoveredByLinePointRuleFactory())
    except:
        ex = sys.exc_info()[1]
        gvsig.logger("Can't register rule. Class Name: " + ex.__class__.__name__ + ". Exception: " + str(ex), gvsig.LOGGER_ERROR)
Example #3
0
def main(*args):
    # testing class m = MustNotOverlapPolygonRule(None, None, 3, None)
    print "* Executing MustNotOverlapPolygon RULE main."
    tm = TopologyLocator.getTopologyManager()

    from mustNotOverlapPolygonRuleFactory import MustNotOverlapPolygonRuleFactory
    a = MustNotOverlapPolygonRuleFactory()
    tm.addRuleFactories(a)
def selfRegister():
    try:
        manager = TopologyLocator.getTopologyManager()
        manager.addRuleFactories(MustNotHaveGapsPolygonRuleFactory())
    except:
        ex = sys.exc_info()[1]
        gvsig.logger(
            "Can't register rule. Class Name: " + ex.__class__.__name__ +
            ". Exception: " + str(ex), gvsig.LOGGER_ERROR)
Example #5
0
def selfRegister():
    try:
        manager = TopologyLocator.getTopologyManager()
        manager.addRuleFactories(
            MustBeLargerThanClusterTolerancePolygonRuleFactory())
        print "added rule"
    except Exception as ex:
        logger(
            "Can't register topology rule from MustBeLargerThanClusterTolerancePolygonRuleFactory."
            + str(ex), LOGGER_WARN)
def main(*args):
  print "* Executing MustBeLargerThanClusterTolerance RULE main."
  tm = TopologyLocator.getTopologyManager()
  
  from mustBeLargerThanClusterToleranceLineRuleFactory import MustBeLargerThanClusterToleranceLineRuleFactory
  from mustBeLargerThanClusterTolerancePolygonRuleFactory import MustBeLargerThanClusterTolerancePolygonRuleFactory
  a = MustBeLargerThanClusterToleranceLineRuleFactory()
  b = MustBeLargerThanClusterTolerancePolygonRuleFactory()
  tm.addRuleFactories(a)
  tm.addRuleFactories(b)
def selfRegister():
    try:
      manager = TopologyLocator.getTopologyManager()
      manager.addRuleFactories(MustNotOverlapPolygonRuleFactory())
    except Exception as ex:
      logger("Can't register topology rule from MustNotOverlapPolygonRuleFactory."+str(ex), LOGGER_WARN)