GeoEra-GIP / Project-Support-WP8

Science Project Data provider support
https://geoera-gip.github.io/support/
7 stars 2 forks source link

Import with style from geopackage #582

Open caasox opened 2 years ago

caasox commented 2 years ago

Hello,

I'm trying to import a geopackage with saved style into EGDI. However, the style seems not to be imported. It is a simple classification. The mapserver-definition is the following:

LAYER
 NAME "3dgeoeu_all_project_areas"
 GROUP "egdi"
 TYPE Polygon
 STATUS on
 METADATA
  "ows_title" "3dgeoeu_all_project_areas"
  "ows_abstract" "Auto generated data set"
  "ows_group_title" "EGDI"
  "ows_group_abstract" "EGDI"
  "gml_featureid" "ogc_fid"
  "ows_featureid" "ogc_fid"
  "ows_include_items" "all"
  "gml_include_items" "all"
  "gml_types" "auto"
  "ows_srs" "EPSG:3034"
  "gml_geometries" "msGeometry"
  "gml_msGeometry_type" "Polygon"
  "dataset_path" "/egdi/shared/datasets/3dgeoeu/3dgeoeu_new.gpkg"
  "ows_extent" "3092384.6327000037 1845014.069600001 4322621.680299997 3290623.857000001"
  "wms_style" "default"
  "wms_style_default_legendurl_href" "/egdi/get_legend.jsp?layer=11301"
  "wms_style_default_legendurl_format" "image/png"
  "wms_style_default_legendurl_height" "250"
  "wms_style_default_legendurl_width" "250"
  "ows_inspire_capabilities" "url"
  "ows_inspire_metadataurl_format" "application/xml"
  "ows_inspire_metadataurl_href" "https://egdi.geology.cz/record/basic/5fc8f3a4-1680-40ff-864c-72e00a010833"
  "ows_metadataurl_format" "text/xml"
  "ows_metadataurl_href" "https://egdi.geology.cz/record/basic/5fc8f3a4-1680-40ff-864c-72e00a010833"
  "ows_metadataurl_type" "TC211"
END
 HEADER "templates/wms_header.html" 
 TEMPLATE "templates/std_template.html"  # Otherwise not queryable
 FOOTER "templates/wms_footer.html"
 CONNECTIONTYPE POSTGIS 
 CONNECTION "host=geusmapcachedb dbname=egdi user=gis_viewer password=view2Qis port=5432"
 DATA "wkb_geometry FROM (SELECT * FROM project_3dgeoeu.x3dgeoeuallprojectareas_20211214_102739) AS t USING UNIQUE ogc_fid SRID 3034 FILTER"
 LABELCACHE on
 CLASS
  STYLE
   SYMBOL "circle"
   SIZE 2
   COLOR 255 0 0 
   OPACITY 100
  END
  TEXT "[name]"
  LABEL
   FONT arialbold
   TYPE TRUETYPE
   SIZE 8
   OUTLINECOLOR 175 175 175
   COLOR 0 0 0
   POSITION uc # upper-center
  END
 END
 PROJECTION
  "init=epsg:3034"
 END  
END

Any ideas?

Best regards,

Lars

caasox commented 2 years ago

Nothing?

nmtoken commented 2 years ago

same issue as (unresolved) https://github.com/GeoEra-GIP/Project-Support-WP8/issues/562 ?

mh-geus-dk commented 2 years ago

Hi Lars, The QGIS thematisation is not converted to Mapserver thematisation bot stored in a separate field in the database. Right now the thematisataion cannot be changed from the administration module. If you want to change it, you must do it in QGIS and re-upload the data. Cheers, Martin