Closed mondeja closed 5 years ago
Yes:
admin_6c82896a=# \dx;
Installed Extensions
Name | Version | Schema | Description
------------------+---------+------------+---------------------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
postgis | 2.4.4 | public | PostGIS geometry, geography, and raster spatial types and functions
postgis_topology | 2.4.4 | topology | PostGIS topology spatial types and functions
It's working with layers uploaded on another formats, It's very strange...
ERROR: no existe la función st_srid(character varying)
For some reason, the column type seems to be incorrect.
You can try to set the srid on the datasource.
<Datasource>
<Parameter name="srid">900913</Parameter>
</Datasource>
I'm concerned this is a problem of creator of the table not a problem with Mapnik.
It's possible so I'm closing this for now. If I found something related to I will reopen this issue. Thanks!
I'm a layer uploaded to PostGIS with
ogr2ogr
from a CSV file. The command that does that is:When I try to create a map from a XML file loading this layer i get this error:
If I load the layer from another format like GeoJSON o Shapefile works properly.
I've tryed executing
SELECT ST_SRID("the_geom") AS srid FROM "mataro"."masa";
and I get tthe same error, but if I cast the geometry column togeometry
type executingSELECT ST_SRID("the_geom"::geometry) AS srid FROM "mataro"."masa";
it works.So, It's possible that trying to get SRID casting to geometry type in
mapnik.load_map()
it this error can be solved, or I'm missing something? Thanks for this library.PD: