Let $\mathcal{F}$ be a locally free sheaf of rank $n$ on an $n$ dimensional complex manifold $X$. If the zero locus of a generic global section of $\mathcal{F}$ is $0$ dimensional, then its cycle class is equal to $c\_n(\mathcal{F})$. What can be said if the generic section has a zero locus of positive dimension?



Cycle class of zeroes of a global section
Let $V = H^0(X,\mathcal{F})$ be the space of global sections of $\mathcal{F}$ and let
$$
V \otimes \mathcal{O}\_X \to \mathcal{F}
$$
be the evaluation morphism. If it is surjective (i.e., $\mathcal{F}$ is globally generated), then the zero locus of a general section is zero-dimensional, and has class $c\_n(\mathcal{F})$. 


So, assume that the evaluation map is not surjective. Assume, moreover, it has a constant rank, so that its image $\mathcal{F}' \subset \mathcal{F}$ is a vector subbundle of rank $r$. Then any global section of $\mathcal{F}$ comes from a global section of a globally generated vector bundle $\mathcal{F}'$, and their zero loci coincide. Therefore, the class of the zero locus of a general section of $\mathcal{F}$ is equal to $c\_r(\mathcal{F}')$.


When the rank of the evaluation morphism is non-constant, the class of a general zero locus is not so easy to find. To sketch a possible approach, one can first blowup $X$ in such a way that the rank is constant on the blowup, and then pushforward $c\_r(\mathcal{F}')$ with respect to this map.


