Opened 3 years ago
Last modified 6 months ago
#2342 new task
Some OpenLayers examples shows "XML Parsing Error: not well-formed" when loading GeoJSON file
Reported by: | sanak | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | OSGeoLive17.0 |
Component: | OSGeoLive | Keywords: | |
Cc: | osgeolive@… |
Description
I confirmed this issue on some OpenLayers examples on OSGeoLive 14.0 official release version (with ISO => VirtualBox setup).
Attachments (2)
Change History (7)
by , 3 years ago
Attachment: | openlayers-examples-extent-interaction01.png added |
---|
by , 3 years ago
Attachment: | openlayers-examples-extent-interaction02.png added |
---|
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Cc: | added |
---|
comment:3 by , 2 years ago
This issue seems to be solved on OSGeoLive 15 alpha1 by checking the following example.
I confirmed that /etc/mime.types
now includes the following geo (or 3d) related formats,
: application/geo+json geojson application/geo+json-seq application/geopackage+sqlite3 gpkg application/geoxacml+xml : application/gltf-buffer glbin glbuf application/gml+xml gml :
and I guess that those seem to be supported from debian bullseye media-types.
(Because previous debian buster mime-support - mime.types
doesn't include above formats.)
Each type definitions seem to come from iana.org.
- application/geo+json
- application/geo+json-seq
- application/geopackage+sqlite3
- application/geoxacml+xml
- application/gltf-buffer
- application/gml+xml
Currently, bin/install_desktop.sh
appends some entries to /etc/mime.types
,
https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_desktop.sh#L193-L235
so, it may be better to adjust the part. (For example, .sqlite
and .osm
seem to be duplicate.)
comment:4 by , 23 months ago
Milestone: | OSGeoLive15.0 → OSGeoLive16.0 |
---|
Ticket retargeted after milestone closed
comment:5 by , 6 months ago
Milestone: | OSGeoLive16.0 → OSGeoLive17.0 |
---|
Ticket retargeted after milestone closed
Adding
AddType application/json .geojson
line to/etc/apache2/mods-available/mime.conf
on the VM guest and restarting apache bysudo systemctl restart apache2
seems to solve the issue locally.