<div dir="ltr">Hello Jim,<br><br><i>"</i><span style="font-style:italic;font-family:arial,sans-serif;font-size:13px">In the current form this would require GetMapbook.php be customized to use MapScript to parse the mapfiles. There is a provision to support different mapbooks based on the URL (...geomoose.html?mapbook=). If you didn't mind writing the mapbooks, you could use that. Traditionally, we use a mapfile per layer to try and isolate faults (it is assumed that different layers are maintained by different people).</span><i>"</i><br>
<br>I was thinking at something similar: <br>..geomoose.html?f1=chicago&f2=chicago (this would form the <map-source> <file>data/testing/chicago/chicago.map</file> to be read, and load all the layers from that mapfile - to pars the mapfile like you said )<div>
or</div><div>..geomoose.html?f1=dakota&f2=dakota (this would form the <map-source> <file>data/testing/dakota/dakota.map</file> to be read, and load all the layers from that mapfile - to pars the mapfile like you said )<br>
<br>The script would populate on the fly the mapbook.xml by parsing the map file and bringing in it all the necessary data, so I will always have one mapbook (rewritten each time I change the params in the nav bar) with the contents of the corresponding map file (in this way, I can extract all the local params I need from the .map file and avoid adding them manually in the mapbook).<br>
<br>Assuming that this works, I will only have to modify the params in the nav bar to see the area of interest. This is what I had in mind. Any thoughts on this idea?<br><br><span style="font-family:arial,sans-serif;font-size:13px"><i>"Thanks. We can always use help with docs and testing too."<br>
</i></span><br>Anytime, just ask and I will be glad to help.<br><br><i>"<span style="font-family:arial,sans-serif;font-size:13px">The GeoMoose community in Minnesota was rather swamped this spring with helping put together the FOSS4G-NA conference in Minneapolis. It looks like we missed the deadlines for abstract submission.</span>"<br>
<br></i>Understood! :)<i><br></i></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 5:59 PM, Jim Klassen <span dir="ltr"><<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class="im"><div>On Jun 26, 2013, at 8:07 AM, Robert R. Raiz wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hello,<br><br>The idea is to create an environment which should allow the use of a specific map file based on user input (useful if one has several projects which are not connected). My goal is to use GeoMoose in an environment which will have a mapfile for each project. These mapfiles will be in local projection and will have all the data 'to be' added in the mapbook.xml file.<br>
<br>So, let's say I have my map files city-based (each using its own local projection, the epsg code of the county):<br><br>data/testing/dakota/dakota.map<br>data/testing/commerce/commerce.map<br>data/testing/chicago/chicago.map<br clear="all">
<div><br>My goal is to populate (on the fly, using a script) the mapbook based on what I enter in the navigation bar.<br><br>Two questions:<br>1. Do I have to create a .js file of all the epsg codes I use and add them in the geomoose.html file?<br>
I noticed that it also works without doing this. What am I gaining by creating these .js files?<br></div></div></blockquote></div><div>I think Proj4JS checks <a href="http://spatialreference.org" target="_blank">spatialreference.org</a> if it can't find the projection locally. If it didn't work the lat/lon at the bottom of the window would be wrong and anything else requiring re-projection would fail.</div>
<div class="im"><div><br></div><blockquote type="cite"><div dir="ltr"><div><br>2. Can I "read" the status of a layer (on, off) from the .map file instead of declaring the layer status in the mapbook?<br>
I already have the status of every layer stated in the corresponding map file. The ones I do not want to load (to have them checked) by default are set to OFF. It would be great if I could keep the status without having to specify them for each layer in the mapbook.<br>
</div></div></blockquote></div><div>In the current form this would require GetMapbook.php be customized to use MapScript to parse the mapfiles. There is a provision to support different mapbooks based on the URL (...geomoose.html?mapbook=). If you didn't mind writing the mapbooks, you could use that. Traditionally, we use a mapfile per layer to try and isolate faults (it is assumed that different layers are maintained by different people).</div>
<div class="im"><br><blockquote type="cite"><div dir="ltr"><div>
<br>Furthermore, I will be digging into GeoMoose 24/7 so if I can help the community with something, I will, gladly. The setback is that I am not a programmer so probably my options are limited. <br></div></div></blockquote>
</div><div>Thanks. We can always use help with docs and testing too.</div><div class="im"><div><br></div><br><blockquote type="cite"><div dir="ltr"><div><br>It would be great to meet some of the developers at FOSS4G Nottingham, at the Code Sprint or GeoHack days, although I did not see any presentation about GeoMoose in the schedule.</div>
</div></blockquote></div>The GeoMoose community in Minnesota was rather swamped this spring with helping put together the FOSS4G-NA conference in Minneapolis. It looks like we missed the deadlines for abstract submission.<br>
<br><blockquote type="cite"><div class="im"><div dir="ltr"><div>
<br>Many thanks,</div>-- <br><b><i>Raiz Roland Robert</i></b><br><br><br>
</div></div>
_______________________________________________<br>Geomoose-users mailing list<br><a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</blockquote></div><br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><b><i>Raiz Roland Robert</i></b><br><br><br>
</div>