Re: [Qgis-user] Problems with showing gml file EPSG 3044 in QGIS

2023-12-02 Thread Ivano Giuliano via QGIS-User
Hi Andrea.
What source do the gml files come from? How were they generated?
To avoid copy and paste, can you attach the files?

Ivano

Ivano

Il giorno gio 30 nov 2023 alle 14:37 Andrea De Felici via QGIS-User <
qgis-user@lists.osgeo.org> ha scritto:

> Hallo, everybody
>
> I cannot visualize correctly a gml file in QGIS (last LTR version 3.28.13
> Firenze).
>
> The .gml file contains 1 linear feature (Administrative Buondary) and 1
> areal feature (Administrative Unit), all georeferenced EPSG 3044 (ETRS89 /
> UTM ZONE 32N (N-E))
>
> When I open that file with QGIS (I set the correct 3044 EPSG when QGIS
> asks me), the linear feature is correctly georeferenced, while the areal
> feature is georeferenced with inverted coordinate X and Y, so the polygons
> are in placed in Somalia instead of Italy.
>
> The same result I obtain with a gml 3044 file with the only areal feature:
> coordinates are inverted only in case of areal feature, but some other
> other areal features are displayed correctly…
>
> I tried to open  the gml file with a text editor and it seems to be
> correct: both for areal and linear features the first coordinate is Y (7
> integer digits) and the second is X (6 integer digits); here is a short
> snippet:
>
>
> --
>
> gml:FeatureCollection xmlns:au="http://inspire.ec.europa.eu/schemas/au/4.0;
> xmlns:gml="http://www.opengis.net/gml/3.2; xmlns:gn="
> http://inspire.ec.europa.eu/schemas/gn/4.0; xmlns:base="
> http://inspire.ec.europa.eu/schemas/base/3.3; xmlns:gmd="
> http://www.isotc211.org/2005/gmd; xmlns:xlink="
> http://www.w3.org/1999/xlink; xmlns:gco="http://www.isotc211.org/2005/gco;
> xmlns:ns1="http://www.w3.org/1999/xhtml; xmlns:gss="
> http://www.isotc211.org/2005/gss; xmlns:gsr="
> http://www.isotc211.org/2005/gsr; xmlns:gts="
> http://www.isotc211.org/2005/gts; xmlns:hfp="
> http://www.w3.org/2001/XMLSchema-hasFacetAndProperty; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance; 
> xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/au/4.0
> https://inspire.ec.europa.eu/schemas/au/4.0/AdministrativeUnits.xsd
> http://www.opengis.net/gml/3.2
> http://schemas.opengis.net/gml/3.2.1/deprecatedTypes.xsd
> 
> ">
>
>   
>
>  gml:id="AdministrativeUnit_id_385577a9-d267-41ef-a9bb-3ca71c56b955">
>
>   IMPERIA
>
>   
>
> 
>
>   
>
> http://www.opengis.net/def/crs/EPSG/0/3044; srsDimension="2">
>
>   
>
> 
>
>   4856196.982872699 379221.4296809618
> 4856153.012608033 379288.4400786731 4856101.092710585 379308.25983894855
> 4855992.103140529 379319.1789686257 4855970.63314184 379333.2989412164
> 4855938.893374141 379321.1185031719 4855803.6838102685 379348.71759441256
> 4855780.623492267 379409.9181218235 4855775.263461644 379417.9181693339
> 4855761.003115882 379477.2687556814 4855720.332499044 379593.489778
> 4855699.152067357 379670.010521323 4855389.701225213 380002.14175060584
> 4855354.410952511 380065.8722090269 4855293.321618781 380011.0409913284
> 4855282.411717165 380004.2308100543 4855236.491942137 380003.03038199147
> 4855207.772282108 379973.2997601987 4855179.582498212 379961.1993582745
> 4855072.002978952 379965.04843585216 4855059.623013855 379968.46836620884
> 4855008.863297664 379961.97782922763 4854977.903487933 379955.50747079897
> 4854947.173628453 379956.13720157446 4854931.493636088 379965.8171792209
> 4854910.743755877 379962.6069528013 4854880.523763171 379982.3669236042
> 4854848.283871256 379988.7967124407 4854835.123858148 37.79672941327
> 4854805.853881814 380016.546672364 4854784.883930116 380023.96657519136
> 4854754.044075761 380023.9562977112 4854670.144294579 380049.95586446853
> 4854597.034550153 380063.1353706411 4854586.074327666 380103.43577101553
> 4854558.744095516 380156.5661838027 4854477.884803961 380163.515877593
> 4854455.885183744 380159.38584979327 4854420.485619669 380177.77611025586
> 4854329.676822398 380212.88662970375 4854293.80736602 380216.95671528607
> 4854255.657993287 380214.26672104455 4854221.90853463 380213.8267496932
> 4854126.360021846 380219.06690918776 4854014.241745526 380228.2771326841
>
>
>
> When I open the gml file with QGIS, the software creates a .gfs file, that
> is the following:
>
>
>
>
> 

[Qgis-user] trigger action in qgis2web

2023-12-02 Thread Stephen Sacks via QGIS-User
In my desktop QGIS I have a short Python script that opens an HTML page 
including arguments (attributes of the selected feature).  When I use 
QGIS2web to put the  project on the web, I would like the user to 
trigger that action when he/she clicks on a feature.  I would be 
grateful for advice on how to do that.

=
#This is the script for Action "showPhoto"
import webbrowser
host = "promPics.rf.gd"
cName = "[%"common name"%]"
lName = "[%"latin name"%]"
picture = "[%"picture"%]"
theURL = "http://; + host + "/?"
theURL = theURL + "cName=" + cName + "&"
theURL = theURL + "lName=" + lName + "&"
theURL = theURL + "photo=" + picture
webbrowser.open(theURL)
=
If you're interested, you can see an older, two-click, approach at
   BrooklynProm.epizy.com
    [Garden B only]


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user