User Tools

Site Tools


arcmap

Filter Label Output

Visual Basic Script for Application

Function FindLabel ( [NAZ_CAST], [NAZ_OBEC]  )
If [NAZ_CAST] = [NAZ_OBEC] Then
  FindLabel = ""
 Else
 FindLabel = [NAZ_CAST]
End If

End Function

Python Sample

def FindLabel ( [JMENO] ):
  if [JMENO] == "":
    return "ZOO"
  else:
   return [JMENO]

Python split and show first string

def FindLabel ( [SILNICE] ):
  return [SILNICE].split(' ')[0]
def FindLabel ( [name], [popupinfo] ):
  return [name] + ' - ' +  [popupinfo].split (';')[0]
def FindLabel ( [nazev],[obec] ):
  if [nazev] == [obec]:
    return ""
  else:
   return [nazev]
   
   
def FindLabel ( [db.sde.RUIAN_CastObce.nazev] , [db.sde.ZBGD_DefinicniBodSprCelku.nazevlau2]  ):
  if [db.sde.RUIAN_CastObce.nazev]  ==  [db.sde.ZBGD_DefinicniBodSprCelku.nazevlau2]:
    return ""
  else:
   return [db.sde.RUIAN_CastObce.nazev]

SDE files location

C:\Users\%user%\AppData\Roaming\ESRI\Desktop10.x\ArcCatalog

Save LatLon

Type Precision (Length) Scale (Decimal)
Double 0 0
arcmap.txt · Last modified: 2017/05/25 21:19 by Jan Forman