131 |
self.error_msg = _('EPSG projection code %s not found!\n'\ |
self.error_msg = _('EPSG projection code %s not found!\n'\ |
132 |
'Setting projection to "None".\n'\ |
'Setting projection to "None".\n'\ |
133 |
'Please set an appropriate projection yourself.'\ |
'Please set an appropriate projection yourself.'\ |
134 |
% epsg_id) |
% top_srs) |
135 |
|
|
136 |
# pre-determine the used format |
# pre-determine the used format |
137 |
self.wmsformat, self.format = \ |
self.wmsformat, self.format = \ |
201 |
image/wbmp or WBMP which refers to WAP bitmap format and is |
image/wbmp or WBMP which refers to WAP bitmap format and is |
202 |
not supported by the included render engine. |
not supported by the included render engine. |
203 |
""" |
""" |
204 |
prio = ['png', 'jpeg', 'jpg', 'tif', 'gif', 'bmp'] |
prio = ['jpeg', 'bmp'] |
205 |
for p in prio: |
for p in prio: |
206 |
for f in formats: |
for f in formats: |
207 |
if f.lower().find(p) > -1: |
if f.lower().find(p) > -1: |
301 |
|
|
302 |
if dialog.ShowModal() == wxID_OK: |
if dialog.ShowModal() == wxID_OK: |
303 |
url = dialog.url |
url = dialog.url |
304 |
|
if len(url) == 0: |
305 |
|
url = None |
306 |
else: |
else: |
307 |
url = None |
url = None |
308 |
dialog.Destroy() |
dialog.Destroy() |