Thanks!

Begin forwarded message:

> From: Michael Newman <[email protected]>
> Date: September 9, 2009 12:14:57 AM CEDT
> To: Sean Gillies <[email protected]>
> Subject: Re: shapely manual updates
>
> Sean,
>
> I finally had a chance to put up my examples. See:
> http://trac.gispython.org/lab/wiki/Examples
>
> -Mike
>
> On Tue, Sep 1, 2009 at 4:12 AM, Sean Gillies<[email protected]>  
> wrote:
>> Hi Mike,
>>
>> Feel free to add to the wiki here:
>>
>>  http://trac.gispython.org/lab/wiki/Examples
>>
>> And then I'll crib from there for the manual.
>>
>> Cheers,
>> Sean
>>
>> On Aug 30, 2009, at 7:14 PM, Michael Newman wrote:
>>
>>> Sean,
>>>
>>> I recently went through the entire Shapely manual at:
>>> http://gispython.org/shapely/manual.html
>>>
>>> I've created a number of new examples and text that you might be
>>> interested. For example, Section 2.7.4 Equals could use some  
>>> examples:
>>>
>>> # Points
>>>>>>
>>>>>> pointA = shapely.wkt.loads("POINT (-72.0 41.0)")
>>>>>> pointD = shapely.wkt.loads("POINT (-110.0 45.0)")
>>>>>> pointA.equals(pointA)
>>>
>>> True
>>>>>>
>>>>>> pointA.equals(pointD)
>>>
>>> False
>>>
>>> # Flipped line
>>>>>>
>>>>>> import shapely.wkt
>>>>>> lineA = shapely.wkt.loads("LINESTRING (-72.0 41.0, -72.5 41.5)")
>>>>>> lineA_flipped = shapely.wkt.loads("LINESTRING (-72.5 41.5, -72.0
>>>>>> 41.0)")
>>>>>> lineF = shapely.wkt.loads("LINESTRING (-72.0 45.0, -72.5 46.0)")
>>>>>> lineA.equals(lineA_flipped)
>>>
>>> True
>>>>>>
>>>>>> lineA_flipped.equals(lineA)
>>>
>>> True
>>>>>>
>>>>>> lineA.equals(lineF)
>>>
>>> False
>>>
>>> # Polygon with different initial point
>>>>>>
>>>>>> import shapely.wkt
>>>>>> polygonA = shapely.wkt.loads("POLYGON ((-111.5 46.0,-103.5  
>>>>>> 46.0,-103.5
>>>>>> 40.0,-111.5 40.0,-111.5 46.0))")
>>>>>> polygonA2 = shapely.wkt.loads("POLYGON ((-103.5 46.0,-103.5  
>>>>>> 40.0,-111.5
>>>>>> 40.0,-111.5 46.0,-103.5 46.0))")
>>>>>> polygonB = shapely.wkt.loads("POLYGON ((-110.5 45.0,-104.5  
>>>>>> 45.0,-104.5
>>>>>> 41.0,-110.5 41.0,-110.5 45.0))")
>>>>>> polygonA.equals(polygonA2)
>>>
>>> True
>>>>>>
>>>>>> polygonA2.equals(polygonA)
>>>
>>> True
>>>>>>
>>>>>> polygonA.equals(polygonB)
>>>
>>> False
>>>
>>> I have various other examples for different sections (especially
>>> asMultiPoint example for Section 4.3 Numpy Array Interface). Are you
>>> interested in me sending them in? If so, should I submit them as a
>>> ticket on the trac page?
>>> http://trac.gispython.org/lab/wiki/Shapely
>>> Or just e-mail them to you?
>>> Alternatively, I can post my own version of the updated manual  
>>> onto my
>>> website and you can take whatever pieces you want. (I have KML
>>> examples that demonstrate the different methods).
>>>
>>> Let me know how I can help/contribute! :-)
>>>
>>> -Mike Newman
>>
>>
>>
>> --
>> Sean
>>
>>

--
Sean Gillies
Programmer
Institute for the Study of the Ancient World
New York University

--
Sean

_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to