Tag Info

Hot answers tagged

4

The styles are normally saved in public.layer_styles. Being in the public schema it should be accessible to every user. If not, make sure it becomes using: GRANT SELECT ON TABLE public.layer_styles TO users; -- "users" is a group with all your #normal users


4

Your problem is that you have added your data using Postgres data type Point, http://www.postgresql.org/docs/9.3/static/datatype-geometric.html Rather than the PostGIS geometry, or Geography type http://postgis.net/docs/reference.html#PostGIS_Types GeoServer has a PostGIS Data Store connector, rather than a Postgres Data Store connector. Good Luck


2

One idea would be to hide the WMSLayer entirely if the map's extent is outside the layers "valid" extent. Based on this answer, one could listen to the map's extent-change event and check if the map's current extent is acceptable: map.on("extent-change", function () { // Check if map.extent is acceptable, otherwise hide the WMSLayer. if ...


2

Yes, that is possible: rel = QgsRelation() rel.setReferencingLayer( 'child_layer_id' ) rel.setReferencedLayer( 'parent_layer_id' ) rel.addFieldPair( 'fk_field', 'pk_field' ) rel.setRelationId( 'my_relation' ) rel.setRelationName( 'Related Features' ) # rel.isValid() # It will only be added if it is valid. If not, check the ids and field names ...


1

Code looks OK to me so I guess its down to formatting of the string especially with "\" or "/" or "\\" . This line: lyr1 = arcpy.mapping.Layer("C:\ArcGis\Aerial_Imagery.lyr") should really be: lyr1 = arcpy.mapping.Layer(r"C:\ArcGis\Aerial_Imagery.lyr") or it could be: lyr1 = arcpy.mapping.Layer("C:\\ArcGis\\Aerial_Imagery.lyr") So the full path ...


1

As noted by Stoner, you are using Postgres point data type instead of PostGIS geometry(point) and geoserver doesn't work with Postgres point data type. If you are using PostGIS 2.1, a new feature introduced is casting from Postgres Type to PostGIS type. You should be able to do this with the command ALTER TABLE realestate ALTER COLUMN coords TYPE ...



Only top voted, non community-wiki answers of a minimum length are eligible