Skip to content
Snippets Groups Projects

Resolve "Create a rule that gets the construction date from cadaster data for Tabula dataset."

All threads resolved!
Compare and Show latest version
3 files
+ 84
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -13,13 +13,13 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
from databaselib import PostGISDatabase
from rulelib import AbstractRule
class DateFromValencianCadasterRule(AbstractRule):
def __call__(self, database: PostGISDatabase, geometry: str, *args, **kwargs):
from databaselib import AbstractDatabase
def __call__(self, database: AbstractDatabase, geometry: str, *args, **kwargs):
"""
A building's geometry is tested for intersection with a cadastral parcel in the source
database, if there is cadaster data for this location. There is currently only
@@ -34,7 +34,7 @@ class DateFromValencianCadasterRule(AbstractRule):
tables `parcels` and `cadaster_buildings`.
geometry (str):
Geometry of the building being currently processed. The geometry is a WKT
formatted string wrapped in th `ST_GeomFromText()` function.
formatted string wrapped in the `ST_GeomFromText()` function.
Returns:
Integer that represents the building's construction year.
Loading