-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherrors.html
More file actions
626 lines (576 loc) · 41 KB
/
errors.html
File metadata and controls
626 lines (576 loc) · 41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Errors — MapServer 8.6.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="_static/sphinx.css?v=48f05237" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/custom.css?v=dd298242" />
<link rel="stylesheet" type="text/css" href="_static/ribbon.css?v=ea091bf4" />
<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=09ed50dd"></script>
<script src="_static/doctools.js?v=fd6eb6e6"></script>
<script src="_static/sphinx_highlight.js?v=6ffebe34"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
<script src="_static/copybutton.js?v=f281be69"></script>
<link rel="icon" href="_static/mapserver.ico"/>
<link rel="author" title="About these documents" href="about.html" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="copyright" title="Copyright" href="copyright.html" />
<link rel="next" title="FAQ" href="faq.html" />
<link rel="prev" title="Glossary" href="glossary.html" />
</head><body>
<!-- for main branch only, do not backport this -->
<table width="100%" style="width: 100%; background-color: white;">
<tr>
<td rowspan="2" style="padding: 10px 0px 10px 10px;">
<a href="index.html" title="Home"><img src="_static/banner.png" alt="MapServer banner" border="0" /></a>
</td>
<td style="padding: 10px 10px 0px 0px; text-align: right; vertical-align: top;">
<a href="index.html" title="Home">Home</a> |
<a href="products.html" title="Products (MapServer core, MapCache, TinyOWS">Products</a> |
<a href="https://github.com/mapserver/mapserver/issues/" title="Issue Tracker (MapServer core)">Issue Tracker</a> |
<a href="community/service_providers.html" title="Professional Service Providers">Service Providers</a> |
<a href="faq.html" title="Frequently Asked Questions">FAQ</a> |
<a href="https://fosstodon.org/@mapserver" title="Mastodon" target="_blank">Mastodon</a> |
<a href="download.html" title="Download Source or Binaries">Download </a> |
<a class="badge" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KRJ2X44N3HA6U&source=url" target="_blank">
<img src="https://img.shields.io/badge/donate-%E2%9D%A4%C2%A0-ff69b4.svg?style=flat" alt="Donate to MapServer">
</a>
</td>
</tr>
<tr>
<td style="padding: 0px 10px 0px 0px; text-align: right; vertical-align: bottom;">
<img src="_static/flagicons/en.png" alt="en" title="en" border="0" width="18px" height="13px"/>
<a href="ar/errors.html"><img src="_static/flagicons/ar.png" alt="ar" title="ar" border="0" /></a>
<a href="de/errors.html"><img src="_static/flagicons/de.png" alt="de" title="de" border="0" /></a>
<a href="el/errors.html"><img src="_static/flagicons/el.png" alt="el" title="el" border="0" /></a>
<a href="es/errors.html"><img src="_static/flagicons/es.png" alt="es" title="es" border="0" /></a>
<a href="fr/errors.html"><img src="_static/flagicons/fr.png" alt="fr" title="fr" border="0" /></a>
<a href="id/errors.html"><img src="_static/flagicons/id.png" alt="id" title="id" border="0" /></a>
<a href="it/errors.html"><img src="_static/flagicons/it.png" alt="it" title="it" border="0" /></a>
<a href="ja/errors.html"><img src="_static/flagicons/ja.png" alt="ja" title="ja" border="0" /></a>
<a href="nl_NL/errors.html"><img src="_static/flagicons/nl_NL.png" alt="nl_NL" title="nl_NL" border="0" /></a>
<a href="pl/errors.html"><img src="_static/flagicons/pl.png" alt="pl" title="pl" border="0" /></a>
<a href="ru/errors.html"><img src="_static/flagicons/ru.png" alt="ru" title="ru" border="0" /></a>
<a href="sq/errors.html"><img src="_static/flagicons/sq.png" alt="sq" title="sq" border="0" /></a>
<a href="tr/errors.html"><img src="_static/flagicons/tr.png" alt="tr" title="tr" border="0" /></a>
</td>
</tr>
</table>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="faq.html" title="FAQ"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="glossary.html" title="Glossary"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Home</a> »</li>
<li class="nav-item nav-item-1"><a href="documentation.html" accesskey="U">MapServer 8.6.0 Documentation</a> »</li>
<li class="nav-item nav-item-this"><a href="">Errors</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="errors">
<span id="index-0"></span><span id="id1"></span><h1><a class="toc-backref" href="#contents" role="doc-backlink">Errors</a><a class="headerlink" href="#errors" title="Link to this heading">¶</a></h1>
<nav class="contents" id="contents">
<p class="topic-title">Contents</p>
<ul class="simple">
<li><p><a class="reference internal" href="#errors" id="id2">Errors</a></p>
<ul>
<li><p><a class="reference internal" href="#drawepp-eppl7-support-is-not-available" id="id3">drawEPP(): EPPL7 support is not available</a></p></li>
<li><p><a class="reference internal" href="#loadlayer-unknown-identifier-maximum-number-of-classes-reached" id="id4">loadLayer(): Unknown identifier. Maximum number of classes reached</a></p></li>
<li><p><a class="reference internal" href="#loadmapinternal-given-map-extent-is-invalid" id="id5">loadMapInternal(): Given map extent is invalid</a></p></li>
<li><p><a class="reference internal" href="#msgetlabelsize-requested-font-not-found" id="id6">msGetLabelSize(): Requested font not found</a></p></li>
<li><p><a class="reference internal" href="#msloadfontset-error-opening-fontset" id="id7">msLoadFontset(): Error opening fontset</a></p></li>
<li><p><a class="reference internal" href="#msloadmap-failed-to-open-map-file" id="id8">msLoadMap(): Failed to open map file</a></p></li>
<li><p><a class="reference internal" href="#msprocessprojection-no-options-found-in-init-file" id="id9">msProcessProjection(): no options found in ‘init’ file</a></p></li>
<li><p><a class="reference internal" href="#msprocessprojection-no-such-file-or-directory" id="id10">msProcessProjection(): No such file or directory</a></p></li>
<li><p><a class="reference internal" href="#msprocessprojection-projection-library-error-proj-error-cannot-find-proj-db-when-instantiating-init-epsg-xxxx" id="id11">msProcessProjection(): Projection library error. PROJ error “Cannot find proj.db” when instantiating “init=epsg:XXXX”</a></p></li>
<li><p><a class="reference internal" href="#msprocessprojection-projection-library-error-major-axis-or-radius-0-not-given" id="id12">msProcessProjection(): Projection library error.major axis or radius = 0 not given</a></p></li>
<li><p><a class="reference internal" href="#msquerybypoint-search-returned-no-results" id="id13">msQueryByPoint: search returned no results</a></p></li>
<li><p><a class="reference internal" href="#msreturnpage-web-application-error-malformed-template-name" id="id14">msReturnPage(): Web application error. Malformed template name</a></p></li>
<li><p><a class="reference internal" href="#mssaveimagegd-unable-to-access-file" id="id15">msSaveImageGD(): Unable to access file</a></p></li>
<li><p><a class="reference internal" href="#mswmsloadgetmapparams-wms-server-error-image-size-out-of-range-width-and-height-must-be-between-1-and-2048-pixels" id="id16">msWMSLoadGetMapParams(): WMS server error. Image Size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels</a></p></li>
<li><p><a class="reference internal" href="#unable-to-load-dll-mapscript" id="id17">Unable to load dll (MapScript)</a></p></li>
</ul>
</li>
</ul>
</nav>
<section id="drawepp-eppl7-support-is-not-available">
<span id="index-1"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">drawEPP(): EPPL7 support is not available</a><a class="headerlink" href="#drawepp-eppl7-support-is-not-available" title="Link to this heading">¶</a></h2>
<p>Error displayed when not using EPPL7 data.</p>
<p>This is a confusing error for users who are not even trying to view EPPL7
layers (EPPL7 is a raster format). The full error displayed may appear as
follows:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">msDrawRaster</span><span class="p">():</span> <span class="n">Unrecognized</span> <span class="ow">or</span> <span class="n">unsupported</span> <span class="n">image</span> <span class="nb">format</span> <span class="o">...</span>
<span class="n">drawEPP</span><span class="p">():</span> <span class="n">EPPL7</span> <span class="n">support</span> <span class="ow">is</span> <span class="ow">not</span> <span class="n">available</span><span class="o">.</span>
</pre></div>
</div>
<section id="explanation">
<h3>Explanation<a class="headerlink" href="#explanation" title="Link to this heading">¶</a></h3>
<p>When MapServer tries to draw a layer, it will attempt to use all of the
drivers it knows about, and the EPPL7 driver is the very last driver it will
try. This means that if a layer fails to draw for any reason, you will see
this error message.</p>
<p>There are other possible instances when this error can appear however, here
are a few:</p>
<ul class="simple">
<li><p>the server is returning either a ServiceException (which MapServer does not
yet detect and parse into a reasonable error message) or it is returning an
image in an unrecognized format … for instance it is returning a GIF image
and MapServer is not built to support GIF images.</p></li>
<li><p>WMS servers often advertise multiple image formats but don’t respect them in
the getmap request.</p></li>
</ul>
</section>
</section>
<section id="loadlayer-unknown-identifier-maximum-number-of-classes-reached">
<span id="index-2"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">loadLayer(): Unknown identifier. Maximum number of classes reached</a><a class="headerlink" href="#loadlayer-unknown-identifier-maximum-number-of-classes-reached" title="Link to this heading">¶</a></h2>
<p>Error displayed when attempting to draw a layer with a large number of classes.</p>
<p>This error states that MapServer has reached its limit for the maximum number
of classes for the layer. This maximum can be modified in the MapServer
source, and can then be re-compiled. <em>map.h</em> contains the default values, and
below are the defaults for MapServer 4.10 and 4.8:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1">#define MS_MAXCLASSES 250</span>
<span class="c1">#define MS_MAXSTYLES 5</span>
<span class="c1">#define MS_MAXLAYERS 200</span>
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>This limitation was corrected in MapServer 5.0 and should no longer be a
problem.</p>
</div>
</section>
<section id="loadmapinternal-given-map-extent-is-invalid">
<span id="index-3"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">loadMapInternal(): Given map extent is invalid</a><a class="headerlink" href="#loadmapinternal-given-map-extent-is-invalid" title="Link to this heading">¶</a></h2>
<p>When loading your mapfile or one of your layers, MapServer complains about an
invalid extent.</p>
<p>Beginning in MapServer 4.6, MapServer got more strict about LAYER and MAP
extents. If minx is greater than maxx, or miny is greater than maxy, this
error will be generated. Check your MAP’s EXTENT, LAYER’s EXTENT, or
wms_extent setting to make sure this is not the case. MapServer <strong>always</strong>
takes in extents in the form of:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">EXTENT</span> <span class="n">minx</span> <span class="n">miny</span> <span class="n">maxx</span> <span class="n">maxy</span>
</pre></div>
</div>
<section id="how-to-get-a-file-s-extent-values">
<h3>How to get a file’s EXTENT values?<a class="headerlink" href="#how-to-get-a-file-s-extent-values" title="Link to this heading">¶</a></h3>
<p>The easiest way to get a vector file’s EXTENT is to use the <a class="reference external" href="https://gdal.org/programs/ogrinfo.html">ogrinfo</a>
utility, that is part of the GDAL/OGR library (for raster files you would use
the <a class="reference external" href="https://gdal.org/programs/gdalinfo.html">gdalinfo</a> utility). Windows users can download the <a class="reference external" href="https://ms4w.com">MS4W</a> package,
which includes all of the GDAL and OGR commandline utilities (in <em>/ms4w/tools/gdal-ogr/</em>).
Linux users will probably already have the GDAL libraries.</p>
<p>For example, here is the results of the ogrinfo command on a shapefile (notice
the “Extent” line):</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ ogrinfo province.shp province -summary
INFO: Open of `province.shp'
using driver `ESRI Shapefile' successful.
Layer name: province
Geometry: Polygon
Feature Count: 1071
Extent: (-2340603.750000, -719746.062500) - (3009430.500000, 3836605.250000)
Layer SRS WKT:
(unknown)
AREA: Real (16.0)
PERIMETER: Real (16.0)
PROVINCE_: Real (16.0)
PROVINCE_I: Real (16.0)
STATUS: String (64.0)
NAME: String (64.0)
NAME_E: String (64.0)
NAME_F: String (64.0)
REG_CODE: Real (16.0)
POLY_FEATU: Real (16.0)
ISLAND: String (64.0)
ISLAND_E: String (64.0)
ISLAND_F: String (64.0)
YYY: Real (16.0)
SIZE: Real (16.0)
ANGLE: Real (16.0)
</pre></div>
</div>
<p>Ogrinfo gives the file’s extent in the form of (minx, miny),(maxx, maxy),
therefore the EXTENT in a mapfile would be:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">EXTENT</span> <span class="o">-</span><span class="mf">2340603.750000</span> <span class="o">-</span><span class="mf">719746.062500</span> <span class="mf">3009430.500000</span> <span class="mf">3836605.250000</span>
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>The EXTENT in a mapfile must be in the same units
as the <a class="reference internal" href="mapfile/map.html#map"><span class="std std-ref">MAP</span></a> -level <a class="reference internal" href="mapfile/projection.html#projection"><span class="std std-ref">PROJECTION</span></a>.</p>
</div>
</section>
</section>
<section id="msgetlabelsize-requested-font-not-found">
<span id="index-4"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msGetLabelSize(): Requested font not found</a><a class="headerlink" href="#msgetlabelsize-requested-font-not-found" title="Link to this heading">¶</a></h2>
<p>Error displayed when attempting to display a specific font.</p>
<p>This message tells you that MapServer cannot find specified font.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Make</span> <span class="n">sure</span> <span class="n">that</span> <span class="n">the</span> <span class="n">font</span> <span class="ow">is</span> <span class="n">properly</span> <span class="n">referenced</span> <span class="ow">in</span> <span class="n">the</span> <span class="n">FONTSET</span> <span class="n">lookup</span> <span class="n">file</span><span class="o">.</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/fontset.html#fontset"><span class="std std-ref">FONTSET</span></a></p>
</div>
</section>
<section id="msloadfontset-error-opening-fontset">
<span id="index-5"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msLoadFontset(): Error opening fontset</a><a class="headerlink" href="#msloadfontset-error-opening-fontset" title="Link to this heading">¶</a></h2>
<p>Error when attempting to display a label.</p>
<p>This message tells you that MapServer cannot find the <a class="reference internal" href="mapfile/fontset.html#fontset"><span class="std std-ref">FONTSET</span></a> specified
in the <a class="reference internal" href="mapfile/index.html#mapfile"><span class="std std-ref">Mapfile</span></a>.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">The</span> <span class="n">FONTSET</span> <span class="n">path</span> <span class="ow">is</span> <span class="n">relative</span> <span class="n">to</span> <span class="n">the</span> <span class="n">mapfile</span> <span class="n">location</span><span class="o">.</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/fontset.html#fontset"><span class="std std-ref">FONTSET</span></a></p>
</div>
</section>
<section id="msloadmap-failed-to-open-map-file">
<span id="index-6"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msLoadMap(): Failed to open map file</a><a class="headerlink" href="#msloadmap-failed-to-open-map-file" title="Link to this heading">¶</a></h2>
<p>Error displayed when trying to display map image.</p>
<p>The message tells you that MapServer cannot find map file or has
problems with the map file. Verify that you have specified the
correct path to the mapfile. Linux/Unix users should make sure that
the web user has access permissions to the mapfile path as well.
Verify that the map file using map2img to make sure that the
syntax is correct.</p>
<p>The error message states where MapServer thinks the mapfile is:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">MapServer</span> <span class="n">Error</span><span class="p">]:</span> <span class="n">msLoadMap</span><span class="p">():</span> <span class="p">(</span><span class="n">D</span><span class="p">:</span><span class="o">/</span><span class="n">ms4w</span><span class="o">/</span><span class="n">apps</span><span class="o">/</span><span class="n">blah</span><span class="o">/</span><span class="n">blah</span><span class="o">.</span><span class="n">map</span><span class="p">)</span>
<span class="n">Failed</span> <span class="n">to</span> <span class="nb">open</span> <span class="nb">map</span> <span class="n">file</span> <span class="n">D</span><span class="p">:</span><span class="o">/</span><span class="n">ms4w</span><span class="o">/</span><span class="n">apps</span><span class="o">/</span><span class="n">blah</span><span class="o">/</span><span class="n">blah</span><span class="o">.</span><span class="n">map</span>
</pre></div>
</div>
</section>
<section id="msprocessprojection-no-options-found-in-init-file">
<span id="index-7"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msProcessProjection(): no options found in ‘init’ file</a><a class="headerlink" href="#msprocessprojection-no-options-found-in-init-file" title="Link to this heading">¶</a></h2>
<p>Error displayed when attempting to use a specific projection.</p>
<p>The message tells you that the projection you’re trying to use isn’t defined
in the PROJ library’s <cite>proj.db</cite> SQLite database file. (if you are using PROJ < 6,
the projections are stored in an <cite>epsg</cite> file instead, that you can open a text editor and
search for your projection to make sure that it exists)</p>
<p>On Windows, with MS4W versions >= 5 users will find the <cite>proj.db</cite> file in <em>/ms4w/share/proj/</em>.</p>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/projection.html#projection"><span class="std std-ref">PROJECTION</span></a> and <a class="reference external" href="https://spatialreference.org">https://spatialreference.org</a> (<a class="reference external" href="https://epsg.io/">https://epsg.io/</a> may
also be useful)</p>
</div>
</section>
<section id="msprocessprojection-no-such-file-or-directory">
<span id="index-8"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msProcessProjection(): No such file or directory</a><a class="headerlink" href="#msprocessprojection-no-such-file-or-directory" title="Link to this heading">¶</a></h2>
<p>Error displayed when trying to refer to an <cite>epsg</cite> file.</p>
<p>The message tells you that MapServer cannot find the <cite>epsg</cite> file (when using
PROJ < 6).</p>
<p>On Windows, the default location of the epsg file is <em>c:\proj\nad</em>. MS4W
(versions < 5) users will find the epsg file in <em>/ms4w/proj/nad</em>.</p>
<p>Linux/Unix users should be careful to <strong>specify the correct case</strong> when
referring to the epsg file, since filenames are case sensitive on Linux/Unix.
“init=epsg:4326” refers to the epsg filename, and therefore “init=EPSG:4326”
will not work because it will be looking for an <em>EPSG</em> file in uppercase.</p>
</section>
<section id="msprocessprojection-projection-library-error-proj-error-cannot-find-proj-db-when-instantiating-init-epsg-xxxx">
<h2><a class="toc-backref" href="#contents" role="doc-backlink">msProcessProjection(): Projection library error. PROJ error “Cannot find proj.db” when instantiating “init=epsg:XXXX”</a><a class="headerlink" href="#msprocessprojection-projection-library-error-proj-error-cannot-find-proj-db-when-instantiating-init-epsg-xxxx" title="Link to this heading">¶</a></h2>
<p>Error displayed when PROJ cannot find the <cite>proj.db</cite> SQLite file.</p>
<p>The message tells you that MapServer cannot find the <cite>proj.db</cite> file (when using
PROJ >= 6). You can specify the location of the PROJ files by setting the
<cite>PROJ_DATA</cite> variable, as described below.</p>
<p>On Windows, MS4W (versions >= 5) users will find the <cite>proj.db</cite> file in <em>/ms4w/share/proj/</em>.</p>
<section id="setting-the-location-of-proj-files">
<h3>Setting the location of PROJ files<a class="headerlink" href="#setting-the-location-of-proj-files" title="Link to this heading">¶</a></h3>
<p>There are a few options available if you need to set the <cite>proj.db</cite> location:</p>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>Since the PROJ 9.1 release, the former <cite>PROJ_LIB</cite> variable has
been replaced with <cite>PROJ_DATA</cite></p>
</div>
<ol class="arabic">
<li><p>Use MapServer’s global configuration file, available since the MapServer 8.0
release, to set the “PROJ_DATA” environment variable. The default name of
the config file is <cite>mapserver.conf</cite> (for MS4W users, the file is <cite>/ms4w/ms4w.conf</cite>).
Your config file could contain an <cite>ENV</cite> section such as:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">CONFIG</span>
<span class="n">ENV</span>
<span class="n">PROJ_DATA</span> <span class="s2">"/ms4w/share/proj"</span>
<span class="n">END</span> <span class="c1">#env</span>
<span class="n">END</span> <span class="c1">#config</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/config.html#config"><span class="std std-ref">CONFIG</span></a></p>
</div>
</li>
<li><p>Use the mapfile parameter CONFIG to force the location of the <cite>proj.db</cite>
file. This parameter is specified at the MAP level</p>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/index.html#mapfile"><span class="std std-ref">Mapfile</span></a></p>
</div>
<div class="highlight-mapfile notranslate"><div class="highlight"><pre><span></span><span class="k">MAP</span>
<span class="p">...</span>
<span class="k">CONFIG</span> <span class="s">"PROJ_DATA"</span> <span class="s">"/ms4w/share/proj"</span>
<span class="p">...</span>
<span class="k">END</span>
</pre></div>
</div>
</li>
<li><p>Set a system variable (“environment variable” on windows) called
“PROJ_DATA” and point it to your proj directory.</p></li>
<li><p>Set an environment variable through your web server. Apache has a
SetEnv directive that can set environment variables. Add something
like the following to your Apache <em>httpd.conf</em> file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">SetEnv</span> <span class="n">PROJ_DATA</span> <span class="s2">"/ms4w/share/proj"</span>
</pre></div>
</div>
</li>
</ol>
</section>
</section>
<section id="msprocessprojection-projection-library-error-major-axis-or-radius-0-not-given">
<span id="index-9"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msProcessProjection(): Projection library error.major axis or radius = 0 not given</a><a class="headerlink" href="#msprocessprojection-projection-library-error-major-axis-or-radius-0-not-given" title="Link to this heading">¶</a></h2>
<p>Error displayed when attempting to specify projection parameters.</p>
<p>Since MapServer 4.0, you are required to specify the ellipsoid for the
projection. Omitting this ellipsoid parameter in later MapServer
versions will cause this error.</p>
<section id="valid-examples">
<h3>Valid Examples<a class="headerlink" href="#valid-examples" title="Link to this heading">¶</a></h3>
<p>4.0 and newer:</p>
<div class="highlight-mapfile notranslate"><div class="highlight"><pre><span></span><span class="k">PROJECTION</span>
<span class="s">"proj=latlong"</span>
<span class="s">"ellps=WGS84"</span>
<span class="k">END</span>
</pre></div>
</div>
<p>before MapServer 4.0:</p>
<div class="highlight-mapfile notranslate"><div class="highlight"><pre><span></span><span class="k">PROJECTION</span>
<span class="s">"proj=latlong"</span>
<span class="k">END</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="mapfile/projection.html#projection"><span class="std std-ref">PROJECTION</span></a> and <a class="reference external" href="https://spatialreference.org">https://spatialreference.org</a> (<a class="reference external" href="https://epsg.io/">https://epsg.io/</a> may
also be useful)</p>
</div>
</section>
</section>
<section id="msquerybypoint-search-returned-no-results">
<span id="index-10"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msQueryByPoint: search returned no results</a><a class="headerlink" href="#msquerybypoint-search-returned-no-results" title="Link to this heading">¶</a></h2>
<p>Why do I get the message “msQueryByPoint(): Search returned no
results. No matching record(s) found” when I query a feature known to
exists?</p>
<p>The query feature requires a TEMPLATE object in the CLASS object of
your LAYER definition. The value points to a html fragment using
MapServer template syntax.</p>
<p>Example MapFile fragment:</p>
<div class="highlight-mapfile notranslate"><div class="highlight"><pre><span></span><span class="k">LAYER</span>
<span class="k">NAME</span> <span class="s">"Parcel9"</span>
<span class="k">TYPE</span> <span class="nb">POLYGON</span>
<span class="k">STATUS</span> <span class="nb">OFF</span>
<span class="k">DATA</span> <span class="s">"Parcels/area09_parcels.shp"</span>
<span class="k">CLASS</span>
<span class="k">STYLE</span>
<span class="k">OUTLINECOLOR</span> <span class="mi">128</span> <span class="mi">128</span> <span class="mi">128</span>
<span class="k">COLOR</span> <span class="mi">153</span> <span class="mi">205</span> <span class="mi">255</span>
<span class="k">END</span>
<span class="k">TEMPLATE</span> <span class="s">"templates/Parcels/area09_parcels.html"</span>
<span class="k">END</span>
<span class="k">HEADER</span> <span class="s">"templates/Parcels/area09_parcels_header.html"</span>
<span class="k">FOOTER</span> <span class="s">"templates/Parcels/area09_parcels_footer.html"</span>
<span class="k">END</span>
</pre></div>
</div>
<p>Example Template:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o"><</span><span class="n">tr</span><span class="o">></span>
<span class="o"><</span><span class="n">td</span><span class="o">></span><span class="p">[</span><span class="n">lrn</span><span class="p">]</span><span class="o"></</span><span class="n">td</span><span class="o">></span>
<span class="o"><</span><span class="n">td</span><span class="o">></span><span class="p">[</span><span class="n">PIN</span><span class="p">]</span><span class="o"></</span><span class="n">td</span><span class="o">></span>
<span class="o"></</span><span class="n">tr</span><span class="o">></span>
</pre></div>
</div>
<p>The [lrn] is a special keyword that indicates the resulting line
number which starts at 1. [PIN] is the name of a feature attribute.</p>
</section>
<section id="msreturnpage-web-application-error-malformed-template-name">
<span id="index-11"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msReturnPage(): Web application error. Malformed template name</a><a class="headerlink" href="#msreturnpage-web-application-error-malformed-template-name" title="Link to this heading">¶</a></h2>
<p>This error may occur if you try to access a template file with a file extension
that is not recognized by MapServer. Valid file extensions for templates are:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">.</span><span class="n">gml</span>
<span class="o">.</span><span class="n">html</span>
<span class="o">.</span><span class="n">htm</span>
<span class="o">.</span><span class="n">js</span>
<span class="o">.</span><span class="n">kml</span>
<span class="o">.</span><span class="n">svg</span>
<span class="o">.</span><span class="n">tmpl</span>
<span class="o">.</span><span class="n">wml</span>
<span class="o">.</span><span class="n">xml</span>
</pre></div>
</div>
<p>This error may also occur when you are attempting to use a URL template for a
query. The issue is that URL templates are only allowed for query modes that
return only one result (e.g. query or itemquery)</p>
<p>You can only use a URL template for a query in mode=query or mode=itemquery.
If you try it with mode=nquery or mode=itemnquery, you will get the error:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Content</span><span class="o">-</span><span class="nb">type</span><span class="p">:</span> <span class="n">text</span><span class="o">/</span><span class="n">html</span> <span class="n">msReturnPage</span><span class="p">():</span> <span class="n">Web</span> <span class="n">application</span> <span class="n">error</span><span class="o">.</span> <span class="n">Malformed</span> <span class="n">template</span> <span class="n">name</span>
</pre></div>
</div>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p><a class="reference internal" href="cgi/controls.html#cgi-controls"><span class="std std-ref">MapServer CGI Controls</span></a></p>
</div>
</section>
<section id="mssaveimagegd-unable-to-access-file">
<span id="index-12"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msSaveImageGD(): Unable to access file</a><a class="headerlink" href="#mssaveimagegd-unable-to-access-file" title="Link to this heading">¶</a></h2>
<p>Error displayed when attempting to display map image.</p>
<p>This error is displayed if MapServer cannot display the map image. There are
several things to check:</p>
<ul class="simple">
<li><p>IMAGEPATH and IMAGEURL parameters in mapfile are valid</p></li>
<li><p>In CGI mode, any IMAGEPATH and IMAGEURL variables set in the init pages
are valid</p></li>
<li><p>Linux/Unix users should verify that the web user has permissions to
write to the IMAGEPATH</p></li>
</ul>
</section>
<section id="mswmsloadgetmapparams-wms-server-error-image-size-out-of-range-width-and-height-must-be-between-1-and-2048-pixels">
<span id="index-13"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">msWMSLoadGetMapParams(): WMS server error. Image Size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels</a><a class="headerlink" href="#mswmsloadgetmapparams-wms-server-error-image-size-out-of-range-width-and-height-must-be-between-1-and-2048-pixels" title="Link to this heading">¶</a></h2>
<p>Error that is returned / displayed when a user has requested a map
image (via WMS) that exceeds the maximum width or height that the
service allows.</p>
<p>To increase the maximum map width and height for the service, use the
MAXSIZE parameter of the <a class="reference internal" href="mapfile/map.html#map"><span class="std std-ref">MAP</span></a> object. Producing larger map
images requires more processing power and more memory, so take care.</p>
</section>
<section id="unable-to-load-dll-mapscript">
<span id="index-14"></span><h2><a class="toc-backref" href="#contents" role="doc-backlink">Unable to load dll (MapScript)</a><a class="headerlink" href="#unable-to-load-dll-mapscript" title="Link to this heading">¶</a></h2>
<p>One of the dll-s could not be loaded that mapscript.dll depends on.</p>
<p>You can get this problem on Windows and in most cases it can be dedicated to a
missing or an unloadable shared library. The error message talks about
mapscript.dll but surely one or more of the dll-s are missing that libmap.dll
depends on. So firstly you might want to check for the dependencies of your
libmap.dll in your application directory. You can use the Visual Studio
Dependency Walker to accomplish this task. You can also use a file monitoring
tool (like SysInternal’s filemon) to detect the dll-s that could not be
loaded. I propose to store all of the dll-s required by your application in
the application folder. If you can run the mapscript sample applications
properly your compilation might be correct and all of the dlls are available.</p>
<section id="c-specific-information">
<h3>C#-specific information<a class="headerlink" href="#c-specific-information" title="Link to this heading">¶</a></h3>
<p>You may find that the mapscript C# interface behaves differently for the
desktop and the ASP.NET applications. Although you can run the drawmap sample
correctly you may encounter the dll loading problem with the ASP.NET
applications. When creating an ASP.NET project your application folder will be
‘Inetpubwwwroot[YourApp]bin’ by default. The host process of the
application will aspnet_wp.exe or w3wp.exe depending on your system. The
application will run under a different security context than the interactive
user (under the context of the ASPNET user by default). When placing the dll-s
outside of your application directory you should consider that the PATH
environment variable may differ between the interactive and the ASPNET user
and/or you may not have enough permission to access a dll outside of your
application folder.</p>
</section>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
<p>
<a href="about.html" title="About">About</a><br>
<a href="products.html" title="Products">Products</a><br>
<a href="community/index.html" title="Community">Community</a><br>
<a href="development/index.html" title="Development">Development</a><br>
<a href="download.html" title="Downloads">Downloads</a><br>
<a href="documentation.html" title="Documentation">Documentation</a><br>
<a href="faq.html" title="FAQ">FAQ</a><br>
<a href="psc.html" title="PSC">PSC</a><br>
<a href="https://fosstodon.org/@mapserver" title="Mastodon">Mastodon</a>
</p>
<h3>Current Table Of Contents</h3>
<ul>
<li><a class="reference internal" href="#">Errors</a><ul>
<li><a class="reference internal" href="#drawepp-eppl7-support-is-not-available">drawEPP(): EPPL7 support is not available</a><ul>
<li><a class="reference internal" href="#explanation">Explanation</a></li>
</ul>
</li>
<li><a class="reference internal" href="#loadlayer-unknown-identifier-maximum-number-of-classes-reached">loadLayer(): Unknown identifier. Maximum number of classes reached</a></li>
<li><a class="reference internal" href="#loadmapinternal-given-map-extent-is-invalid">loadMapInternal(): Given map extent is invalid</a><ul>
<li><a class="reference internal" href="#how-to-get-a-file-s-extent-values">How to get a file’s EXTENT values?</a></li>
</ul>
</li>
<li><a class="reference internal" href="#msgetlabelsize-requested-font-not-found">msGetLabelSize(): Requested font not found</a></li>
<li><a class="reference internal" href="#msloadfontset-error-opening-fontset">msLoadFontset(): Error opening fontset</a></li>
<li><a class="reference internal" href="#msloadmap-failed-to-open-map-file">msLoadMap(): Failed to open map file</a></li>
<li><a class="reference internal" href="#msprocessprojection-no-options-found-in-init-file">msProcessProjection(): no options found in ‘init’ file</a></li>
<li><a class="reference internal" href="#msprocessprojection-no-such-file-or-directory">msProcessProjection(): No such file or directory</a></li>
<li><a class="reference internal" href="#msprocessprojection-projection-library-error-proj-error-cannot-find-proj-db-when-instantiating-init-epsg-xxxx">msProcessProjection(): Projection library error. PROJ error “Cannot find proj.db” when instantiating “init=epsg:XXXX”</a><ul>
<li><a class="reference internal" href="#setting-the-location-of-proj-files">Setting the location of PROJ files</a></li>
</ul>
</li>
<li><a class="reference internal" href="#msprocessprojection-projection-library-error-major-axis-or-radius-0-not-given">msProcessProjection(): Projection library error.major axis or radius = 0 not given</a><ul>
<li><a class="reference internal" href="#valid-examples">Valid Examples</a></li>
</ul>
</li>
<li><a class="reference internal" href="#msquerybypoint-search-returned-no-results">msQueryByPoint: search returned no results</a></li>
<li><a class="reference internal" href="#msreturnpage-web-application-error-malformed-template-name">msReturnPage(): Web application error. Malformed template name</a></li>
<li><a class="reference internal" href="#mssaveimagegd-unable-to-access-file">msSaveImageGD(): Unable to access file</a></li>
<li><a class="reference internal" href="#mswmsloadgetmapparams-wms-server-error-image-size-out-of-range-width-and-height-must-be-between-1-and-2048-pixels">msWMSLoadGetMapParams(): WMS server error. Image Size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels</a></li>
<li><a class="reference internal" href="#unable-to-load-dll-mapscript">Unable to load dll (MapScript)</a><ul>
<li><a class="reference internal" href="#c-specific-information">C#-specific information</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="faq.html" title="FAQ"
>next</a> |</li>
<li class="right" >
<a href="glossary.html" title="Glossary"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Home</a> »</li>
<li class="nav-item nav-item-1"><a href="documentation.html" >MapServer 8.6.0 Documentation</a> »</li>
<li class="nav-item nav-item-this"><a href="">Errors</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© <a href="copyright.html">Copyright</a> 2026, Open Source Geospatial Foundation.
Last updated on 2026-02-27.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 9.1.0.
</div>
</body>
</html>