[ka-Map-users] ka-Map-users Digest, Vol 47, Issue 16
Bistrais, Bob
Bob.Bistrais at maine.gov
Fri Mar 20 14:20:00 EST 2009
Thanks everyone,
Still not clear on installing the proj4js scripts. I downloaded the zip
file. Where should this be installed to work with Ka-Map? Also, I
don't see my projection def file (EPSG 26919) in there. What parameters
do I need to put in to make my own def file?
-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
ka-map-users-request at lists.maptools.org
Sent: Friday, March 20, 2009 1:00 PM
To: ka-map-users at lists.maptools.org
Subject: ka-Map-users Digest, Vol 47, Issue 16
Send ka-Map-users mailing list submissions to
ka-map-users at lists.maptools.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.maptools.org/mailman/listinfo/ka-map-users
or, via email, send a message with subject or body 'help' to
ka-map-users-request at lists.maptools.org
You can reach the person managing the list at
ka-map-users-owner at lists.maptools.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of ka-Map-users digest..."
Today's Topics:
1. Re: queryByAttributes and projection (Mike Adair)
2. Re: queryByAttributes and projection (Bistrais, Bob)
3. queryByAttributes and projection (TC Haddad)
4. Re: queryByAttributes and projection (Mike Adair)
5. Multiple layers (Mohammed Rashad)
----------------------------------------------------------------------
Message: 1
Date: Thu, 19 Mar 2009 13:24:11 -0400
From: Mike Adair <madair at dmsolutions.ca>
Subject: Re: [ka-Map-users] queryByAttributes and projection
To: "Bistrais, Bob" <Bob.Bistrais at maine.gov>
Cc: ka-map-users at lists.maptools.org
Message-ID: <49C27FBB.90103 at dmsolutions.ca>
Content-Type: text/plain; charset=windows-1252; format=flowed
You can also re-project the coordinates on the client using Proj4js
(http://trac.osgeo.org/proj4js/).
Mike
Bistrais, Bob wrote:
>
> (Cross-posted to the Mapserver list)?
>
> I have a modified ka-map application with some customized search
> tools. One of these tools allows the user to pick a town from a
> dropdown and zoom to it. This uses a queryByAttributes process and it
> was working well.
>
>
> The data for the project is projected in UTM in its native format. The
> customer asked if we could display the data in lat/long (EPSG:4326).
> If I change the projection and extent in the .Map files, the map
> displays properly, but the search tools no longer function, I get a
> "no matching results" error.
>
> This seems pretty strange, as I am only querying by attributes, not
> spatially. So I wouldn't think projection would be an issue. But
> apparently it is. Does anyone have some insight as to how I can
> correct this (other than reprojecting the data)?
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
------------------------------
Message: 2
Date: Thu, 19 Mar 2009 13:41:51 -0400
From: "Bistrais, Bob" <Bob.Bistrais at maine.gov>
Subject: Re: [ka-Map-users] queryByAttributes and projection
To: "Mike Adair" <madair at dmsolutions.ca>
Cc: ka-map-users at lists.maptools.org
Message-ID:
<4EFF8BB964547748A07CA32961810C0412C484F5 at SOM-TEAQASMAIL1.som.w2k.state.
me.us>
Content-Type: text/plain; charset="US-ASCII"
Hi Mike,
This looks interesting. I'm looking at the user guide, but don't see
where to place it in Ka-Map. Do I include it in one of the .php files?
Or the main html file?
-----Original Message-----
From: Mike Adair [mailto:madair at dmsolutions.ca]
Sent: Thursday, March 19, 2009 1:24 PM
To: Bistrais, Bob
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] queryByAttributes and projection
You can also re-project the coordinates on the client using Proj4js
(http://trac.osgeo.org/proj4js/).
Mike
Bistrais, Bob wrote:
>
> (Cross-posted to the Mapserver list)...
>
> I have a modified ka-map application with some customized search
> tools. One of these tools allows the user to pick a town from a
> dropdown and zoom to it. This uses a queryByAttributes process and it
> was working well.
>
>
> The data for the project is projected in UTM in its native format. The
> customer asked if we could display the data in lat/long (EPSG:4326).
> If I change the projection and extent in the .Map files, the map
> displays properly, but the search tools no longer function, I get a
> "no matching results" error.
>
> This seems pretty strange, as I am only querying by attributes, not
> spatially. So I wouldn't think projection would be an issue. But
> apparently it is. Does anyone have some insight as to how I can
> correct this (other than reprojecting the data)?
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
------------------------------
Message: 3
Date: Thu, 19 Mar 2009 11:07:29 -0700
From: TC Haddad <tchaddad at gmail.com>
Subject: [ka-Map-users] queryByAttributes and projection
To: ka-map-users at lists.maptools.org
Message-ID:
<25de2c7c0903191107i27f1f5daw9fa90f86241f357f at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi Bob,
I have a similar drop down in our ka-map application that does a zoom
to location. And in our case, the javascript just uses a list of
spatial bookmarks, so no attribute queries are involved at all. This
seemed like it would work fastest, though I never needed to try your
way.
Anyhow, if you wanted to try that method I can send you the script.
It's fairly straightforward - just feed in a list of locations and
coordinates, and it builds the list. In your case I guess the coords
you would want to feed it are in lat/long (since that is the display
coordinates of you map now).
As to you original question - my guess is that it is failing because
when the queryByAttributes happens it uses the extent of the found
shape as the "zoom to coords", and since your data is really still in
UTM, it is trying to zoom to UTM coords on a Lat/Long map, which won't
work. To make this approach work you would have to reproject the
found extent on the fly, before allowing the view extent to refresh.
If your drop down list is static and not very long, I think a basic
list of spatial bookmarks will still be quicker.
Tanya
Date: Thu, 19 Mar 2009 12:30:50 -0400
From: "Bistrais, Bob" <Bob.Bistrais at maine.gov>
Subject: [ka-Map-users] queryByAttributes and projection
(Cross-posted to the Mapserver list)...
I have a modified ka-map application with some customized search tools.
One of these tools allows the user to pick a town from a dropdown and
zoom to it. This uses a queryByAttributes process and it was working
well.
The data for the project is projected in UTM in its native format. The
customer asked if we could display the data in lat/long (EPSG:4326). If
I change the projection and extent in the .Map files, the map displays
properly, but the search tools no longer function, I get a "no matching
results" error.
This seems pretty strange, as I am only querying by attributes, not
spatially. So I wouldn't think projection would be an issue. But
apparently it is. Does anyone have some insight as to how I can correct
this (other than reprojecting the data)?
------------------------------
Message: 4
Date: Thu, 19 Mar 2009 14:24:40 -0400
From: Mike Adair <madair at dmsolutions.ca>
Subject: Re: [ka-Map-users] queryByAttributes and projection
To: "Bistrais, Bob" <Bob.Bistrais at maine.gov>
Cc: ka-map-users at lists.maptools.org
Message-ID: <49C28DE8.9050400 at dmsolutions.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Include proj4js-compressed.js in a script tag in your HTML file. You
probably also want to include projection definition file for your UTM
projection such as:
<script src="lib/defs/EPSG27563.js"></script>
(substitute the correct EPSG file for you map though) The contents of
that file is just the PROJ4 init string as a json object.
Mike
Bistrais, Bob wrote:
> Hi Mike,
>
> This looks interesting. I'm looking at the user guide, but don't see
> where to place it in Ka-Map. Do I include it in one of the .php
files?
> Or the main html file?
>
> -----Original Message-----
> From: Mike Adair [mailto:madair at dmsolutions.ca]
> Sent: Thursday, March 19, 2009 1:24 PM
> To: Bistrais, Bob
> Cc: ka-map-users at lists.maptools.org
> Subject: Re: [ka-Map-users] queryByAttributes and projection
>
> You can also re-project the coordinates on the client using Proj4js
> (http://trac.osgeo.org/proj4js/).
>
> Mike
>
> Bistrais, Bob wrote:
>
>> (Cross-posted to the Mapserver list)...
>>
>> I have a modified ka-map application with some customized search
>> tools. One of these tools allows the user to pick a town from a
>> dropdown and zoom to it. This uses a queryByAttributes process and it
>> was working well.
>>
>>
>> The data for the project is projected in UTM in its native format.
The
>>
>
>
>> customer asked if we could display the data in lat/long (EPSG:4326).
>> If I change the projection and extent in the .Map files, the map
>> displays properly, but the search tools no longer function, I get a
>> "no matching results" error.
>>
>> This seems pretty strange, as I am only querying by attributes, not
>> spatially. So I wouldn't think projection would be an issue. But
>> apparently it is. Does anyone have some insight as to how I can
>> correct this (other than reprojecting the data)?
>>
>>
----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/ka-map-users
>>
>>
>
>
--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
madair at dmsolutions.ca
http://www.dmsolutions.ca
http://research.dmsolutions.ca
------------------------------
Message: 5
Date: Fri, 20 Mar 2009 20:28:54 +0530
From: Mohammed Rashad <rashadkm at gmail.com>
Subject: [ka-Map-users] Multiple layers
To: ka-map-users at lists.maptools.org
Message-ID:
<50c7e3a0903200758tc9a8a2cr6cb79e131c6cddaa at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
i have two vector files named vector1 and vector2
how to display both inside a single group and making layer status on and
off. the interface should look like this
+--Layers
..........
+--Vector
+--vector1
+--vector2
........
any help is welcome
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.maptools.org/pipermail/ka-map-users/attachments/20090320/84
d5fa57/attachment-0001.htm
------------------------------
_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users
End of ka-Map-users Digest, Vol 47, Issue 16
********************************************
More information about the ka-Map-users
mailing list