![]() ![]() Si convierto INFO_FORMAT en texto / html, funciona bien. Si ejecuto la URL en mi navegador: GetFeatureInfo results: To configure this we create an HTML file (the template), with placeholders for values that will be filled in by MapServer. In this example we will be returning HTML. ![]() "wms_feature_info_mime_type" "application/json" There is no set format for what is returned by a GetFeatureInfo query (for example it could be text, XML, JSON). Sección de metadatos: "wms_feature_info_mime_type" "text/plain" Me gustaría consultar MapServer y me gustaría que me devolviera un archivo JSON:Įn mi página, generé una URL dinámica como: MAP/MAP.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=TANK&FORMAT=image/png&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=15.256938,38.195583,15.293846,38.210523&WIDTH=1720&HEIGHT=886&QUERY_LAYERS=TANK&INFO_FORMAT=text/plain&X=762&Y=685Įn el archivo MAP.map (mi Mapserver) que definí: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |