Table of Contents

OSM format for ArcGIS Pro URL

https://osm.xxx.cz/{z}/{x}/{y}.png

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

Prepare data for approximation