<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I apologize please ignore my mention of EPSG 4326. My end result is a WMS map in Web Mercator 3857. My underlying data is stored in a shapefile that is in WKID 103749 which is a projection has already been
included in proj.db as ESRI as the authority . The underlying map application is using javascript. I know that my map is finding proj.db because it MapServer does not complain when I convert UTM 14 to Web Mercator… but that does not help because the underlying
data is not in UTM 14.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Here is how I have the projections of my map is set up:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">MAP<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> PROJECTION<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> "init=epsg:3857"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> END #end map projection<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> LAYER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> DATA 'ParcelsLyon.shp'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> PROJECTION<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> "init=epsg:103749" #Error: proj_create: cannot expand init=espg:103749 type=crs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> "init=crs:103749" #</span>
<span style="color:#1F497D">Error: proj_create: cannot expand init=crs:103749 type=crs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> "init=ESRI:103749" #Error: proj_create: cannot expand init=esri:103749 type=crs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> "init=epsg:26914" #MapServer does not warn about any errors, but of course nothing draws because my data is in a different projection<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> END #layer projection<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> END #end layer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">END #end map<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Example request<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="http://localhost/cgi-bin/mapserv.exe?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=parcels%2CCityLimits%2CTownships&MAP=%2Fms4w%2Fapps%2Flyondata%2F.%2Fmaps%2Falllayers%2FAllLayers.map&SRS=EPSG%3A3857&STYLES=&WIDTH=1569&HEIGHT=912&BBOX=-10678090.52943604%2C5544408.3738651555%2C-10668156.653791208%2C5550182.55779638">http://localhost/cgi-bin/mapserv.exe?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=parcels%2CCityLimits%2CTownships&MAP=%2Fms4w%2Fapps%2Flyondata%2F.%2Fmaps%2Falllayers%2FAllLayers.map&SRS=EPSG%3A3857&STYLES=&WIDTH=1569&HEIGHT=912&BBOX=-10678090.52943604%2C5544408.3738651555%2C-10668156.653791208%2C5550182.55779638</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">@Bob<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I could project my shapefile into any projection. However, I will hit a wall with my raster layers which I prefer not to project at this time.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> artclifford@gmail.com <artclifford@gmail.com> <br>
<b>Sent:</b> Thursday, January 6, 2022 7:19 PM<br>
<b>To:</b> Mark Volz <MarkVolz@co.lyon.mn.us><br>
<b>Subject:</b> RE: [mapserver-users] working with ESRI coordinate systems in proj.db<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">It’s a little unclear to me what you are attempting.<o:p></o:p></p>
<p class="MsoNormal">A mapfile can be defined where the map’s projection is EPSG:3857 (web mercator) set in a projection block at the map level, and your layer definition can have a projection block set to whatever projection you are using. That tells the map
to render in web Mercator but says what projection your layer is stored in so that map server knows when to reproject stuff. I think you know that, but I’m just covering the “is it plugged in” issues and to suggest making sure the right projections are in
the right projection blocks. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Although not quite the problem you are having yet, epsg:4326 is wgs84 lat/lon. Web Mercator is: EPSG:3857.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I remember correctly the projection can be defined for a mapfile projection block using the proj code definition if not the ESPG/numeric code. If that works, it might mean that MapServer isn’t using the proj.db file like you expect.
Or if it is using a proj.db file it may be located elsewhere. Whether putting the whole proj definition is viable for your ultimate use it would at least identify the problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Then there’s a question of access. How are you “accessing” things? Are you using WFS? Or are you using a python/php/other script? Are things stored in a shp file or postgis or other database?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you are using wfs are you passing the desired projection on the request? Also, are you defining the allowed wms/wfs projections?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m not sure how much I personally can be of help, but any further context on your setup and what you are attempting that you are free and willing to provide will help folks here narrow down the possibilities.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Mark Volz<br>
<b>Sent:</b> Thursday, January 6, 2022 9:19 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] working with ESRI coordinate systems in proj.db<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could someone help me with setting up MapServer to use a non ESRI projection that is already stored in proj.db? The coordinate system is for Lyon County, MN #103749 and is stored with ESRI as the authority. I know that we can set up MapServer
to use Web Mercator by setting the adding "init=epsg:4326" to a projection block. Unfortunately I cannot access my counties coordinate system by setting the projection with “init=esri:103749”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you for any help!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Sincerely,<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D">Mark Volz, GISP</span></b><b><span style="font-size:12.0pt;color:#1F497D"><o:p></o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>