state of sd...
if a dog was wandering without a owner.. its up to a city ordinance..
however.. from sidewalk to the street is consider city property, from sidewalk to house is private. if your dog of that age... and that dog was from sidewalk to house, then that officer is violating his probable cause to issue a ticket. he has no right to issue a ticket if the dog was not threatening the public, or to the officer. if the dog was merely laying down or sitting and not barking. its not violation.
id say fight it, and then counter sue for that officer for tresspassing but take it to a civil court. youd win some money.
troopers do this when they are extremely bored and want to write some tickets. he was bored.
look at it this way.
a garbage bin sitting from sidewalk to house is considered still on private property, a cop or anyone CAN NOT dig in your garbage.. however if the garbage bin was sitting on sidewalk to street, then its public. anyone, including a cop can dig in your garbage and you cant do anything about it unless you move it back on private property.